Skip to content

Commit

Permalink
Modified PrintUnitigGfa
Browse files Browse the repository at this point in the history
  • Loading branch information
lipi0056 committed Nov 15, 2023
1 parent 0c76498 commit 2db1dfd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions RavenLib/src/graph_repr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ void PrintUnitigGfa(const Graph& graph, const std::string& path) {
<< "\t" << it->sequence.InflateData()
<< "\tLN:i:" << it->sequence.inflated_len
<< "\tRC:i:" << it->count
<< "\tCL:z:" << (it->color ? "blue" : "orange");
<< "\tCL:z:" << (it->color ? "blue" : "orange")
<< std::endl;

if (it->original_node_sequence_names.size() > 0) {
os << "\tA\t";
for(const auto& original_node_sequence_name : it->original_node_sequence_names){
os << original_node_sequence_name << "\t";
os << "A\t"
<< original_node_sequence_name
<< std::endl;
}
}
os << std::endl;
}
}
for (const auto& it : graph.edges) {
if (it == nullptr || it->is_rc()) {
Expand Down

0 comments on commit 2db1dfd

Please sign in to comment.