Last active
February 20, 2020 00:14
-
-
Save poeli/6e71e22fc5e2e50776e263a52dd72bc4 to your computer and use it in GitHub Desktop.
Split multiFASTA to singleFASTA and use seq id as filenames
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 -F ' ' '{ if(/^>/){F=sprintf("%s.fasta", substr($1,2)); print > F;next;} else {print >> F}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment