| Included libraries | Package variables | General documentation | Methods |
| parse_one_record | No description | Code |
| default_file_format | No description | Code |
| parse_one_record | description | prev | next | Top |
my $self = shift; my $fh = shift; undef $self->{fasta_stored_id} if exists $self->{fasta_stored_fh} && $fh ne $self->{fasta_stored_fh} ; $self->{fasta_stored_fh} = $fh; while (<$fh>) { # don't try this at home}
if (/^>(\S+)/) { my $id = $self->{fasta_stored_id}; $self->{fasta_stored_id} = $1; next unless defined $id; return ($id,-length($_)); } } # we get here at the end of the file
return $self->{fasta_stored_id};
| default_file_format | description | prev | next | Top |
"fasta"}