Skip to content

Commit

Permalink
Random path generated uses the gfa name
Browse files Browse the repository at this point in the history
  • Loading branch information
elarielcl committed Mar 13, 2023
1 parent 5cd1512 commit dd1faf2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AlignmentGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,11 @@ std::vector<size_t> AlignmentGraph::generatePath(const std::string &seq_out, con
int last_nodeID = -1; // Assumed not to be a valid ID
for (size_t i : path) {
if (nodeIDs[i] != last_nodeID) {
pout << i << ' ' << nodeIDs[i] << std::endl;
if (OriginalNodeName(nodeIDs[i]).length() == 0) {
pout << i << ' ' << nodeIDs[i] << std::endl;
} else {
pout << i << ' ' << OriginalNodeName(nodeIDs[i]) << std::endl;
}
last_nodeID = nodeIDs[i];
}
// std::cout << i << " " << nodeIDs[i] << " " << reverse[i] << " : ";
Expand Down

0 comments on commit dd1faf2

Please sign in to comment.