Return a path, complemented if necessary. */
| 203 | |
| 204 | /** Return a path, complemented if necessary. */ |
| 205 | static ContigPath |
| 206 | getPath(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 |
no test coverage detected