Created
September 24, 2011 15:29
-
-
Save pditommaso/1239456 to your computer and use it in GitHub Desktop.
Read a FASTA Formatted file using BioPERL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use Bio::SeqIO; | |
my $in = Bio::SeqIO->new(-file => "input.fa",-format => 'Fasta'); | |
my $seq; | |
while ( $seq = $in->next_seq() ) { | |
print $seq->display_id() . " - " . $seq->seq() . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment