splitting a multiple FASTA file into separate files keeping their original names
问题 I am trying to work with an AWK script that was posted earlier on this forum. I am trying to split a large FASTA file containing multiple DNA sequences, into separate FASTA files. I need to separate each sequence into its own FASTA file, and the name of each of the new FASTA files needs to be the name of the DNA sequence from the original, large multifasta file (all the characters after the >). I tried this script that I found here at stackoverflow: awk '/^>chr/ {OUT=substr($0,2) ".fa"}; OUT