Bio::DB::Flat::BDB
swissprot
Summary
Bio::DB::Flat::BDB::swissprot - swissprot adaptor for Open-bio standard BDB-indexed flat file
Package variables
No package variables defined.
Inherit
Synopsis
See Bio::DB::Flat.
Description
This module allows swissprot 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
| default_file_format | No description | Code |
| default_primary_namespace | No description | Code |
| default_secondary_namespaces | No description | Code |
| seq_to_ids | No description | Code |
Methods description
None available.
Methods code
| default_file_format | description | prev | next | Top |
sub default_file_format
{ "swiss" } |
sub default_primary_namespace
{ return "ID"; } |
sub default_secondary_namespaces
{ return qw(ACC VERSION); } |
sub seq_to_ids
{ my $self = shift;
my $seq = shift;
my $display_id = $seq->display_id;
my $accession = $seq->accession_number;
my $version = $seq->seq_version;
my $gi = $seq->primary_id;
my %ids;
$ids{ID} = $display_id;
$ids{ACC} = $accession if defined $accession;
$ids{VERSION} = "$accession.version" if defined $accession && defined $version;
return\% ids;} |
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/wiki/Mailing_lists - 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 the
web:
http://bugzilla.open-bio.org/
| AUTHOR - Lincoln Stein | Top |