| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
use Bio::DB::SeqVersion;
my $query = Bio::DB::SeqVersion->new(-type => 'gi'); my @all_gis = $query->get_all(2); my $live_gi = $query->get_recent(2);
| new | Description | Code |
| get_recent | Description | Code |
| get_all | Description | Code |
| _load_seqversion_module | Description | Code |
| default_id_type | Description | Code |
| new() | code | next | Top |
Usage : my $obj = new Bio::DB::SeqVersion(); |
| get_recent() | code | prev | next | Top |
Usage : |
| get_all() | code | prev | next | Top |
Usage : |
| _load_seqversion_module | code | prev | next | Top |
Title : _load_seqversion_module |
| default_id_type | code | prev | next | Top |
Title : default_id_type |
| new | description | prev | next | Top |
my($class,@args) = @_; if( $class =~ /Bio::DB::SeqVersion::\S+/ ) { my ($self) = $class->SUPER::new(@args); $self->_initialize(@args); return $self; } else { my %param = @args; @param{ map { lc $_ } keys %param } = values %param; # lowercase keys}
# we delete '-type' so it doesn't get passed to the sub-class constructor
# note: delete() returns the value of the item deleted (undef if non-existent)
my $type = lc( delete($param{'-type'}) || $DEFAULTIDTYPE ); return unless( $class->_load_seqversion_module($type) ); # we pass %param here, not @args, as we have filtered out -type
return "Bio::DB::SeqVersion::$type"->new(%param); }
| get_recent | description | prev | next | Top |
my ($self,@args) = @_; $self->throw_not_implemented();}
| get_all | description | prev | next | Top |
my ($self,@args) = @_; $self->throw_not_implemented();}
| _load_seqversion_module | description | prev | next | Top |
my ($self,$db) = @_; my $module = "Bio::DB::SeqVersion::" . $db; my $ok; eval { $ok = $self->_load_module($module) }; if ( $@ ) { print STDERR $@; print STDERR <<END}
$self: $module cannot be found
Exception $@
For more information about the Bio::DB::SeqVersion system please see
the Bio::DB::SeqVersion docs.
END
; } return $ok;
| default_id_type | description | prev | next | Top |
return $DEFAULTIDTYPE;}
| FEEDBACK | Top |
| Mailing Lists | Top |
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
| Reporting Bugs | Top |
http://bugzilla.open-bio.org/
| AUTHOR - Brian Osborne | Top |
| CONTRIBUTORS | Top |
| APPENDIX | Top |