Pls help, anyone know how to extract multiple header from a fasta file using perl?
Dear fongsiongshawn, Hi
Is there any help here for you?
what have you tried ? show us the code
It's good that you've to this forum to ask, but in many cases, try upgrade your googling skill. Your exact question has been answered in the thread mentioned by Farbod
If you want all of the header lines, you can just use linux:
grep '^>' sequences.fasta > headers.txt
Not perl, but maybe a much simpler way: Create a blast db of your fasta file and use blastdbcmd.