Parse and return the coverage from the specified FASTA comment. */
| 126 | |
| 127 | /** Parse and return the coverage from the specified FASTA comment. */ |
| 128 | static unsigned getCoverage(const string& comment) |
| 129 | { |
| 130 | istringstream ss(comment); |
| 131 | unsigned length, coverage = 0; |
| 132 | ss >> length >> coverage; |
| 133 | return coverage; |
| 134 | } |
| 135 | |
| 136 | /** Add the overlaps of vseq to the graph. */ |
| 137 | static void addOverlapsSA(Graph& g, const SuffixArray& sa, |