Bio::DB::Flat::BDB
fasta
Toolbar
Summary
Bio::DB::Flat::BDB::fasta - fasta adaptor for Open-bio standard BDB-indexed flat file
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
See Bio::DB::Flat.
Description
This module allows fasta files to be stored in Berkeley DB flat files
using the Open-Bio standard BDB-indexed flat file scheme. You should
not be using this directly, but instead use it via Bio::DB::Flat.
Methods
parse_one_record | No description | Code |
Methods description
None available.
Methods code
parse_one_record | description | prev | next | Top |
sub parse_one_record
{ 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>) { if (/^>(\S+)/) {
my $id = $self->{fasta_stored_id};
$self->{fasta_stored_id} = $1;
next unless defined $id;
return ($id,-length($_));
}
}
return $self->{fasta_stored_id}; } |
General documentation
User feedback is an integral part of the evolution of this and other
Bioperl modules. Send your comments and suggestions preferably to one
of the Bioperl mailing lists. Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/MailList.shtml - About the mailing lists
Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via
email or the web:
bioperl-bugs@bio.perl.org
http://bugzilla.bioperl.org/
AUTHOR - Lincoln Stein | Top |