Return the largest length of all contig in m. */
| 267 | |
| 268 | /** Return the largest length of all contig in m. */ |
| 269 | static size_t getMaxLen(const Match& m, const FastaIndex& faIndex, |
| 270 | const FMIndex& fmIndex) |
| 271 | { |
| 272 | size_t maxLen = 0; |
| 273 | for (size_t i = m.l; i < m.u; i++) { |
| 274 | size_t len = faIndex[fmIndex[i]].get<0>().size; |
| 275 | if (len > maxLen) |
| 276 | maxLen = len; |
| 277 | } |
| 278 | return maxLen; |
| 279 | } |
| 280 | |
| 281 | /** Print the current contig id if it is not the lartest and earliest |
| 282 | * contig in m. */ |