Created
February 8, 2015 16:55
-
-
Save jrherr/2c5fed226a1a63f5643a to your computer and use it in GitHub Desktop.
Rename SPAdes output fasta headers line for pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -r "s/>NODE(_[0-9]+)_(.*)/>${input.name}\1 \2/g" $input > $output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The fasta headers from SPAdes output look like this:
I am assuming NODE is the de Bruijn graph node, length is the contig length, coverage is the percent read coverage for the contig, and ID is (I guess) an arbitrary ID from SPAdes.
See here: http://bit.ly/1xQcAzm