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

Function getPath

PathOverlap/PathOverlap.cpp:205–213  ·  view source on GitHub ↗

Return a path, complemented if necessary. */

Source from the content-addressed store, hash-verified

203
204/** Return a path, complemented if necessary. */
205static ContigPath
206getPath(const Paths& paths, const ContigNode& u)
207{
208 if (isPath(u)) {
209 unsigned i = u.id() - Vertex::s_offset;
210 return u.sense() ? reverseComplement(paths[i]) : paths[i];
211 } else
212 return ContigPath(1, u);
213}
214
215/** Read contig paths from the specified file.
216 * @param g the contig adjacency graph

Callers 1

mergePathsFunction · 0.70

Calls 4

isPathFunction · 0.85
idMethod · 0.80
senseMethod · 0.80
reverseComplementFunction · 0.50

Tested by

no test coverage detected