NAME
Bio::DB::GenPept - Database object interface to GenPept
SYNOPSIS
$gb = Bio::DB::GenPept->new();$seq = $gb->get_Seq_by_id('195055'); # Unique ID# or ...$seq = $gb->get_Seq_by_acc('P09651.5'); # Accession Numbermy $seqio = $gb->get_Stream_by_id(['195055', 'P09651.5']);while( my $seq = $seqio->next_seq ) {print "seq is is ", $seq->display_id, "\n";}
DESCRIPTION
Allows the dynamic retrieval of Sequence objects (Bio::Seq) from the GenPept database at NCBI, via an Entrez query.
WARNING: Please do NOT spam the Entrez web server with multiple requests. NCBI offers Batch Entrez for this purpose. Batch Entrez support will likely be supported in a future version of DB::GenPept.
Currently the only return format supported by NCBI Entrez for GenPept database is GenPept format, so any format specification passed to GenPept will be ignored still be forced to GenPept format (which is just GenBank format).
FEEDBACK
Mailing Lists
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.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
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:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Aaron Mackey, Jason Stajich
Email [email protected] Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
get_params
Title : get_paramsUsage : my %params = $self->get_params($mode)Function: Returns key,value pairs to be passed to NCBI databasefor either 'batch' or 'single' sequence retrieval methodReturns : a key,value pair hashArgs : 'single' or 'batch' mode for retrieval
default_format
Title : default_formatUsage : my $format = $self->default_formatFunction: Returns default sequence format for this moduleReturns : stringArgs : none
Routines from Bio::DB::WebDBSeqI and Bio::DB::RandomAccessI
get_Seq_by_id
Title : get_Seq_by_idUsage : $seq = $db->get_Seq_by_id('P09651.5')Function: Gets a Bio::Seq object by its nameReturns : a Bio::Seq objectArgs : the id (as a string) of a sequenceThrows : "id does not exist" exception
get_Seq_by_acc
Title : get_Seq_by_accUsage : $seq = $db->get_Seq_by_acc('AAC73346');Function: Gets a Seq objects by accession numberReturns : Bio::Seq objectArgs : accession number to retrieve by
Routines implemented by Bio::DB::NCBIHelper
get_request
Title : get_requestUsage : my $url = $self->get_requestFunction: HTTP::RequestReturns :Args : %qualifiers = a hash of qualifiers (ids, format, etc)
get_Stream_by_id
Title : get_Stream_by_idUsage : $stream = $db->get_Stream_by_id( [$uid1, $uid2] );Function: Gets a series of Seq objects by unique identifiersReturns : a Bio::SeqIO stream objectArgs : $ref : a reference to an array of unique identifiers forthe desired sequence entries
get_Stream_by_acc (2)
Title : get_Stream_by_accUsage : $seq = $db->get_Stream_by_acc($acc);Function: Gets a series of Seq objects by accession numbersReturns : a Bio::SeqIO stream objectArgs : $ref : a reference to an array of accession numbers forthe desired sequence entriesNote : For GenBank, this just calls the same code for get_Stream_by_id()
get_Stream_by_query
Title : get_Stream_by_queryUsage : $seq = $db->get_Stream_by_query('ROA1_HUMAN');Function: Gets a series of Seq objects by unique display_idReturns : a Bio::SeqIO stream objectArgs : $ref : display_id to query by
request_format
Title : request_formatUsage : my $format = $self->request_format;$self->request_format($format);Function: Get/Set sequence format retrievalReturns : string representing formatArgs : $format = sequence format