Hey I have a fasta file which contains more than 80 sequences. I want to take each sequences in different files and the file name should be header of corresponding sequence.
That's simple but the header should not contain illegal characters for a filename i.e. \ / : * ? " < > |
\ / : * ? " < > |
a simple loop will do that if one takes care of these chars.
yup header like this only GCF_000196095n.fasta_2 ..
duplicate of : Splitting A Fasta File
$ pip install pyfaidx
$ faidx --split-files in.fasta
curl https://raw.githubusercontent.com/gouthamatla/fasta_File_Manipulation/master/SplitFastaFile.py | python - <in.fasta>
thank u sir... its working
Login before adding your answer.
Use of this site constitutes acceptance of our User Agreement and Privacy