MCPcopy Create free account
hub / github.com/BirolLab/abyss / getMaxLen

Function getMaxLen

Map/map.cc:269–279  ·  view source on GitHub ↗

Return the largest length of all contig in m. */

Source from the content-addressed store, hash-verified

267
268/** Return the largest length of all contig in m. */
269static 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. */

Callers 1

printDuplicatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected