Skip to content

Commit

Permalink
Merge pull request #10 from algbio/use_gfa_name
Browse files Browse the repository at this point in the history
Random path generated uses the gfa name
  • Loading branch information
elarielcl authored Mar 13, 2023
2 parents 5cd1512 + dd1faf2 commit d56d084
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 d56d084

Please sign in to comment.