Last active
August 29, 2015 14:21
-
-
Save ilevantis/44e37817b385105893f0 to your computer and use it in GitHub Desktop.
Split a multi fasta from uniprot into sensibly named indidvual entry fasta files
This file contains hidden or 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{ FS = "|"}/>/{FS = "|"; filename = substr($3,1,12) }{print $0 > "<output-dir-path>" filename ".fa"}' <multi-fasta-2bsplit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment