Sort and output the specified paths. */
| 737 | |
| 738 | /** Sort and output the specified paths. */ |
| 739 | static void |
| 740 | outputSortedPaths(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. */ |
| 764 | static void |
no test coverage detected