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

Function mergePath

MergePaths/PathConsensus.cpp:405–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static Sequence mergePath(const Graph&g, const Path& path)
406{
407 Sequence seq;
408 Path::const_iterator prev_it;
409 for (Path::const_iterator it = path.begin();
410 it != path.end(); ++it) {
411 if (seq.empty()) {
412 seq = getSequence(*it);
413 } else {
414 int d = get(edge_bundle, g, *(it-1), *it).distance;
415 assert(d < 0);
416 unsigned overlap = -d;
417 mergeContigs(g, overlap, seq,
418 getSequence(*it), *it, path);
419 }
420 prev_it = it;
421 }
422 return seq;
423}
424
425/** Calculate the ContigProperties of a path. */
426static ContigProperties calculatePathProperties(const Graph& g,

Callers 2

alignPairFunction · 0.70
alignMultiFunction · 0.70

Calls 6

getSequenceFunction · 0.70
getFunction · 0.70
mergeContigsFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected