A search for solutions
Thursday, February 1, 2018
One liner to convert a long fasta-file into many separate single fasta sequences
Taken from the Biostar post: https://www.biostars.org/p/105388/
while read line; do if [[ ${line:0:1} == '>' ]]; then outfile=${line#>}.fa; echo $line > $outfile; else echo $line >> $outfile; fi; done < combined_kpneumoniae.tfa
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment