How to extract multiple header from fasta file
2
0
Entering edit mode
7.5 years ago

Pls help, anyone know how to extract multiple header from a fasta file using perl?

sequence • 4.6k views
ADD COMMENT
1
Entering edit mode

Dear fongsiongshawn, Hi

Is there any help here for you?

~ Best

ADD REPLY
0
Entering edit mode

what have you tried ? show us the code

ADD REPLY
0
Entering edit mode

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

ADD REPLY
2
Entering edit mode
7.5 years ago
mastal511 ★ 2.1k

If you want all of the header lines, you can just use linux:

grep  '^>'  sequences.fasta   >  headers.txt

ADD COMMENT
0
Entering edit mode
7.5 years ago

Not perl, but maybe a much simpler way: Create a blast db of your fasta file and use blastdbcmd.

Explained here

ADD COMMENT

Login before adding your answer.

Traffic: 2497 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6