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

Function startsWith

PathOverlap/PathOverlap.cpp:273–285  ·  view source on GitHub ↗

Check whether path starts with the sequence [first, last). */

Source from the content-addressed store, hash-verified

271
272/** Check whether path starts with the sequence [first, last). */
273static bool
274startsWith(
275 ContigPath path,
276 bool rc,
277 ContigPath::const_iterator first,
278 ContigPath::const_iterator last)
279{
280 if (rc)
281 reverseComplement(path.begin(), path.end());
282 assert(*first == path.front());
283 assert(first < last);
284 return unsigned(last - first) > path.size() ? false : equal(first, last, path.begin());
285}
286
287/** Check whether path starts with the sequence [first, last). */
288static unsigned

Callers 1

findOverlapFunction · 0.70

Calls 5

reverseComplementFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
frontMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected