Skip to content

Commit

Permalink
clean rgfa names in fasta output
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Oct 6, 2023
1 parent e65bfb2 commit c162ee3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/subcommand/paths_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ int main_paths(int argc, char** argv) {
// Write as a Path in a VG
chunk_to_emitter(path, *graph_emitter);
} else if (extract_as_fasta) {
write_fasta_sequence(name, path_sequence(*graph, path), cout);
write_fasta_sequence(RGFACover::revert_rgfa_path_name(name, false), path_sequence(*graph, path), cout);
}
if (list_lengths) {
cout << path.name() << "\t" << path_to_length(path) << endl;
Expand Down Expand Up @@ -831,7 +831,8 @@ int main_paths(int argc, char** argv) {
} else if (extract_as_vg) {
chunk_to_emitter(path, *graph_emitter);
} else if (extract_as_fasta) {
write_fasta_sequence(graph->get_path_name(path_handle), path_sequence(*graph, path), cout);
write_fasta_sequence(RGFACover::revert_rgfa_path_name(graph->get_path_name(path_handle), false),
path_sequence(*graph, path), cout);
}
}
});
Expand Down

1 comment on commit c162ee3

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch rgfa2. View the full report here.

3 tests passed, 0 tests failed and 0 tests skipped in 7999 seconds

Please sign in to comment.