Bio::DB::Flat::BDB fasta
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::DB::Flat::BDB::fasta - fasta adaptor for Open-bio standard BDB-indexed flat file
Package variables
No package variables defined.
Included modules
Bio::DB::Flat::BDB
Inherit
Bio::DB::Flat::BDB
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_recorddescriptionprevnextTop
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>) {		# 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};
}
General documentation
FEEDBACKTop
Mailing ListsTop
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
Reporting BugsTop
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/
SEE ALSOTop
Bio::DB::Flat,
AUTHOR - Lincoln SteinTop
Email - lstein@cshl.org