Return a FASTA comment for the specified path. */
| 278 | |
| 279 | /** Return a FASTA comment for the specified path. */ |
| 280 | static void |
| 281 | pathToComment(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. */ |
| 294 | static Contig |