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

Function pathToComment

MergePaths/MergeContigs.cpp:280–291  ·  view source on GitHub ↗

Return a FASTA comment for the specified path. */

Source from the content-addressed store, hash-verified

278
279/** Return a FASTA comment for the specified path. */
280static void
281pathToComment(ostream& out, const Graph& g, const ContigPath& path)
282{
283 out << get(vertex_name, g, path.front());
284 if (path.size() == 1)
285 return;
286 else if (path.size() == 3)
287 out << ',' << get(vertex_name, g, path[1]);
288 else if (path.size() > 3)
289 out << ",...";
290 out << ',' << get(vertex_name, g, path.back());
291}
292
293/** Merge the specified path. */
294static Contig

Callers 1

mergePathFunction · 0.85

Calls 4

getFunction · 0.70
frontMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected