Bandage icon indicating copy to clipboard operation
Bandage copied to clipboard

find SPAdes contig names

Open tolot27 opened this issue 8 years ago • 2 comments

I'm using Bandage v0.8.1 with the file assembly_graph_with_scaffolds.gfa (formerly assembly_graph.gfa) produded by SPAdes (don't know when this file was introduced).

At the end of the file, the names of the contigs are listed in conjuction with the node numbers:

P	NODE_12_length_48543_cov_29.129936_1	2247097+,602318+,2267759+,2267751-	*
P	NODE_13_length_44834_cov_76.398234_1	2268031+	*

Unfortunately, I can search only for the node numbers (i. e. 2268031) but not for the node name (i. e. NODE_13_). It is a bit hard to match the graph with the assembly.

It would be great, if node names are searchable and can be shown on the graph, but only the prefix till length.

As an intermediate solution, I've created a CSV file for it.

tolot27 avatar Oct 13 '17 05:10 tolot27

Yes! Being able to view the node name would be very useful!

samgrinstead avatar Apr 27 '18 18:04 samgrinstead

I'm using Bandage v0.8.1 with the file assembly_graph_with_scaffolds.gfa (formerly assembly_graph.gfa) produded by SPAdes (don't know when this file was introduced).

At the end of the file, the names of the contigs are listed in conjuction with the node numbers:

P	NODE_12_length_48543_cov_29.129936_1	2247097+,602318+,2267759+,2267751-	*
P	NODE_13_length_44834_cov_76.398234_1	2268031+	*

Unfortunately, I can search only for the node numbers (i. e. 2268031) but not for the node name (i. e. NODE_13_). It is a bit hard to match the graph with the assembly.

It would be great, if node names are searchable and can be shown on the graph, but only the prefix till length.

As an intermediate solution, I've created a CSV file for it.

How did you obtain the information of contigs and corresponding node number? Thanks!

ZhangDengwei avatar Sep 08 '20 06:09 ZhangDengwei