[Bioperl-l] Fasta headers

Brian Osborne brian_osborne at cognia.com
Mon Jan 3 11:44:39 EST 2005


Rasa,

On Unix:

>grep '>' fasta-file

Anywhere, with Perl:

>perl -ne 'print if /^>/' fasta-file


Brian O.


-----Original Message-----
From: bioperl-l-bounces at portal.open-bio.org
[mailto:bioperl-l-bounces at portal.open-bio.org]On Behalf Of Rasa
Gulbinaite
Sent: Monday, January 03, 2005 9:41 AM
To: bioperl-l at portal.open-bio.org
Subject: [Bioperl-l] Fasta headers


Hello,

i'm new to bioperl and a bit confused with fasta file headers. I'm working
with SNPs and i would like to get only the fasta headers form the fasta
file, not the sequences. What would be the best way to do this? Thank you.

Rasa

_______________________________________________
Bioperl-l mailing list
Bioperl-l at portal.open-bio.org
http://portal.open-bio.org/mailman/listinfo/bioperl-l





More information about the Bioperl-l mailing list