FAST
view release on metacpan or search on metacpan
lib/FAST/Bio/SeqIO/ace.pm view on Meta::CPAN
=cut
{
my %bio_mol_type = (
'dna' => 'dna',
'peptide' => 'protein',
);
sub next_seq {
my( $self ) = @_;
local $/ = ""; # Split input on blank lines
my $fh = $self->_filehandle;
my( $type, $id );
while (<$fh>) {
if (($type, $id) = /^(DNA|Peptide)[\s:]+(.+?)\s*\n/si) {
s/^.+$//m; # Remove first line
s/\s+//g; # Remove whitespace
last;
}
}
( run in 0.347 second using v1.01-cache-2.11-cpan-49f99fa48dc )