Last active
October 7, 2015 13:14
-
-
Save renzok/c34eea06a86c78c52366 to your computer and use it in GitHub Desktop.
fasta to TSV
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
awk 'BEGIN{RS=">"}NR>1{sub("\n","\t"); gsub("\n",""); print $0}' |
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 -e ':a;/^>/!N; /\n>/!s/\n//; ta' ncbi |cut -d '|' -f 2 | sed -e :a -e '/[0-9]$/N; s/\n/,/; ta' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment