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

Function outputSortedPaths

MergePaths/MergePaths.cpp:739–761  ·  view source on GitHub ↗

Sort and output the specified paths. */

Source from the content-addressed store, hash-verified

737
738/** Sort and output the specified paths. */
739static void
740outputSortedPaths(const Lengths& lengths, const ContigPathMap& paths)
741{
742 // Sort the paths.
743 vector<ContigPath> sortedPaths(paths.size());
744 transform(
745 paths.begin(),
746 paths.end(),
747 sortedPaths.begin(),
748 mem_var(&ContigPathMap::value_type::second));
749 sort(sortedPaths.begin(), sortedPaths.end());
750
751 // Output the paths.
752 ofstream fout(opt::out.c_str());
753 ostream& out = opt::out.empty() ? cout : fout;
754 assert_good(out, opt::out);
755 for (vector<ContigPath>::const_iterator it = sortedPaths.begin(); it != sortedPaths.end(); ++it)
756 out << createContigName() << '\t' << *it << '\n';
757 assert_good(out, opt::out);
758
759 // Report assembly metrics.
760 reportAssemblyMetrics(lengths, sortedPaths);
761}
762
763/** Assemble the path overlap graph. */
764static void

Callers 2

assemblePathGraphFunction · 0.85
mainFunction · 0.85

Calls 9

mem_varFunction · 0.85
assert_goodFunction · 0.85
createContigNameFunction · 0.85
reportAssemblyMetricsFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected