NAME
Bio::Tools::EUtilities::Link::LinkSet - Class for EUtils LinkSets.
VERSION
version 1.77
SYNOPSIS
# ...
DESCRIPTION
# ...
get_ids
Title : get_idsUsage : my @ids = $linkset->get_idsFunction : returns list of retrieved IDsReturns : array of IDsArgs : noneNotes : Cmd Descriptionacheck same as get_submitted_idslcheck same as get_submitted_idsncheck same as get_submitted_idsprlinks same as get_submitted_idsllinks same as get_submitted_idsllinkslib same as get_submitted_idsneighbor linked IDs for database in get_databaseneighbor_history linked IDs for database in get_database
get_database
Title : get_databaseUsage : my $db = $info->get_database;Function : returns single database name (eutil-compatible). This is thequeried database. For elinks (which have 'db' and 'dbfrom')this is equivalent to db/dbto (use get_dbfrom() to for the latter).Note that this only returns the first db; in some cases this maynot be what you want (when multiple dbs are queried, for instance)Returns : stringArgs : noneNotes : with all elink cmd arguments
get_db (alias for get_database)
get_dbto (alias for get_database)
get_databases
Title : get_databasesUsage : my $string = $linkset->get_databases;Function : retrieve databases referred to for this linksetthese may be present as a single database or embedded inReturns : array of stringsArgs : none
get_dbs (alias for get_databases)
get_dbfrom
Title : get_dbfromUsage : my $string = $linkset->get_dbfrom;Function : retrieve originating database for this linksetReturns : stringArgs : none
get_link_names
Title : get_link_namesUsage : my $string = $linkset->get_link_names;Function : retrieve eutil-compatible link namesReturns : array of stringsArgs : noneNotes : Each LinkSet can hold multiple LinkInfo objects (each containinga link name). Also, some LinkSets define a single link name. Thisreturns an array with all unique linknames globbed both sources, ifpresent and defined
get_link_name
Title : get_link_nameUsage : my $string = $linkset->get_link_name;Function : retrieve eutil-compatible link nameReturns : single link nameArgs : none
get_submitted_ids
Title : get_submitted_idsUsage : my $string = $linkset->get_submitted_ids;Function : retrieve original ID listReturns : stringArgs : none
has_scores
Title : has_scoresUsage : if (my $linkset->has_scores) {...}Function : returns TRUE if score data is presentReturns : BooleanArgs : none
get_scores
Title : get_scoresUsage : %scores = $linkset->get_scores;Function : returns flattened list or hash ref containing ID => score pairsReturns : hash or hash ref (based on list or scalar context)Args : none
get_score_by_id
Title : get_score_by_idUsage : $score = $linkset->get_score_by_id($id);Function : returns the score for a particular primary IDReturns : integerArgs : [REQUIRED] Primary ID for the score lookup
has_linkout
Title : has_linkoutUsage : if ($linkset->has_linkout) {...}Function : returns TRUE if the single ID present in this linkset has a linkoutReturns : booleanArgs : noneNotes : this checks cmd=lcheck (boolean for a linkout) and also backcheckscmd=acheck for databases with name 'LinkOut'
has_neighbor
Title : has_neighborUsage : if ($linkset->has_neighbor) {...}Function : returns TRUE if the single ID present in this linkset has a neighborin the same databaseReturns : booleanArgs : noneNotes : this checks cmd=ncheck (boolean for a neighbor in same database); noother checks performed at this time
next_UrlLink
Title : next_UrlLinkUsage : while (my $url = $linkset->next_UrlLink) {...}Function : iterate through UrlLink objectsReturns : Bio::Tools::EUtilities::Link::UrlLinkArgs :
get_UrlLinks
Title : get_UrlLinksUsage : my @urls = $linkset->get_UrlLinksFunction : returns all UrlLink objectsReturns : list of Bio::Tools::EUtilities::Link::UrlLinkArgs :
next_LinkInfo
Title : next_LinkInfoUsage : while (my $info = $linkset->next_LinkInfo) {...}Function : iterate through LinkInfo objectsReturns : Bio::Tools::EUtilities::Link::LinkInfoArgs :
get_LinkInfo
Title : get_LinkInfoUsage : my @links = $linkset->get_LinkInfoFunction : returns all LinkInfo objectsReturns : list of Bio::Tools::EUtilities::Link::LinkInfoArgs :
rewind
Title : rewindUsage : $info->rewind() # rewinds all (default)$info->rewind('links') # rewinds only linksFunction : 'rewinds' (resets) specified iterators (all if no arg)Returns : noneArgs : [OPTIONAL] String:'all' - all iterators (default)'linkinfo' or 'linkinfos' - LinkInfo objects only'urllinks' - UrlLink objects only
to_string
Title : to_stringUsage : $foo->to_string()Function : converts current object to stringReturns : noneArgs : (optional) simple data for text formattingNote : Used generally for debugging and for various print methods
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 the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttps://bioperl.org/Support.html - About the mailing lists
Support
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.
Reporting bugs
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:
https://github.com/bioperl/bio-eutilities/issues
AUTHOR
Chris Fields <[email protected]>
COPYRIGHT
This software is copyright (c) 2006-2013 by Chris Fields.
This software is available under the same terms as the perl 5 programming language system itself.