Skip to content

Instantly share code, notes, and snippets.

@pditommaso
Created September 24, 2011 15:29
Show Gist options
  • Save pditommaso/1239456 to your computer and use it in GitHub Desktop.
Save pditommaso/1239456 to your computer and use it in GitHub Desktop.
Read a FASTA Formatted file using BioPERL
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