Question: How to extract multiple header from fasta file
0
gravatar for fongsiongshawn
3.2 years ago by
fongsiongshawn0 wrote:

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

sequence • 1.7k views
ADD COMMENTlink modified 3.2 years ago by mastal5112.0k • written 3.2 years ago by fongsiongshawn0
1

Dear fongsiongshawn, Hi

Is there any help here for you?

~ Best

ADD REPLYlink written 3.2 years ago by Farbod3.3k

what have you tried ? show us the code

ADD REPLYlink written 3.2 years ago by Pierre Lindenbaum124k

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 REPLYlink written 3.2 years ago by biocyberman800
1
gravatar for mastal511
3.2 years ago by
mastal5112.0k
mastal5112.0k wrote:

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

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

ADD COMMENTlink modified 3.2 years ago • written 3.2 years ago by mastal5112.0k
0
gravatar for David Langenberger
3.2 years ago by
Deutschland
David Langenberger9.1k wrote:

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

Explained here

ADD COMMENTlink written 3.2 years ago by David Langenberger9.1k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1919 users visited in the last hour