Bio::DB::SoapEUtilities::LinkAdaptor - Handle for Entrez SOAP LinkSets
my $fac = Bio::DB::SoapEUtilities->new();
# run a query, returning a LinkAdaptor
$fac->elink( -db => 'nucleotide',
-dbfrom => 'protein',
-id => [qw(828392 790 470338)]);
my $links = $fac->elink->run( -auto_adapt => 1);
# get the linked ids corresponding to the submitted ids
# (may be arrays if multiple crossrefs, or undef if none)
my @nucids = $links->id_map(828392);
# iterate over linksets
while ( my $ls = $links->next_linkset ) {
my @from_ids = $ls->submitted_ids;
my @to_ids = $ls->ids;
my $from_db = $ls->db_from;
my $to_db = $ls->db_to;
}
This adaptor provides an iterator ("next_linkset()") and other
convenience functions for parsing NCBI Entrez EUtility "elink" SOAP
results.
Bio::DB::SoapEUtilities
User feedback is an integral part of the evolution of this and other Bioperl
modules. Send your comments and suggestions preferably to the Bioperl mailing
list. Your participation is much appreciated.
[email protected] - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
Please direct usage questions or support issues to the mailing list:
[email protected]
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.
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs
and their resolution. Bug reports can be submitted via the web:
http://redmine.open-bio.org/projects/bioperl/
Email maj -at- fortinbras -dot- us
The rest of the documentation details each of the object methods. Internal
methods are usually preceded with a _
Title : new
Usage : my $obj = new Bio::DB::SoapEUtilities::LinkAdaptor();
Function: Builds a new Bio::DB::SoapEUtilities::LinkAdaptor object
Returns : an instance of Bio::DB::SoapEUtilities::LinkAdaptor
Args :
Title : next_linkset
Usage :
Function: return the next LinkSet from the attached Result
Returns :
Args :
Title : id_map
Usage : $to_id = $adaptor->id_map($from_id)
Function: Return 'to-database' ids corresponding to
given specified 'from-database' or
submitted ids
Returns : array of scalars (to-database ids or arrayrefs of ids)
Args : array of scalars (from-database ids)