Bio::DB::EUtilities::esummary - retrieval of NCBI DocSum data from a list of primary IDs or a Cookie Do not use this module directly. Use it via the Bio::DB::EUtilities class.
use Bio::DB::EUtilities;
my $esearch = Bio::DB::EUtilities->new(-eutil => 'esearch',-db => 'pubmed',-term => 'hutP',-usehistory => 'y');
$esearch->get_response; # parse the response, fetch a cookie
my $esummary = Bio::DB::EUtilities->new(-eutil => 'esummary',-cookie => $esearch->next_cookie);
print $esearch->get_response-content; # prints XML output
WARNING: Please do NOT spam the Entrez web server with multiple requests. The EUtility ESummary is used to retrieve ducument summaries from a list of primary IDs or the user's history (stored on the remote server and accessible using a Cookie. The returned data is processed for errors, but no further processing is done at this time. one or more database available through EUtilities if set to 'all', will retrieve all related ID's from each database (see method get_db_ids to retrieve these) a list of primary ID's (see below) limits results to the number of days preceding today's date limits results by dates ("yyyy/mm/dd" format, or by year) limits results by Entrez query (only valid when "cmd=neighbor" within a single database) set to XML, but can be changed to ref when needed a Bio::DB::EUtilities::Cookie object (see below) command values (see below) list LinkOut URLs for specified holding provider; used with "cmd=llinks" or "cmd=llinkslib" (rarely used)
Command Values Command values are set using the "cmd" parameter. List the hyperlink to the primary LinkOut provider for multiple IDs and database. Each ID is processed separately. Create a hyperlink to the primary LinkOut provider for a single ID and database. List LinkOut URLs and Attributes, except PubMed libraries, for multiple IDs and database. Each ID is processed separately. List LinkOut URLs and Attributes for multiple IDs and database. Each ID is processed separately. Check for the existence (Y or N) of an external link in for multiple IDs and database. Check for the existence of a neighbor link for each ID within a database, e.g., Related Articles in PubMed. The default setting. Display neighbors and their scores within a database. Create history (WebEnv & query_key) for use in other EUtilities. Lists Entrez databases links for multiple IDs from a single database.
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://www.bioperl.org/wiki/Mailing_lists - About the mailing lists
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.
http://bugzilla.open-bio.org/
Email cjfields at uiuc dot edu The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
parse_response
Title : parse_responseUsage : $db->parse_response($content)Function: parse out response for cookie and/or id'sReturns : noneArgs : HTTP::Response objectThrows : 'NCBI elink nonrecoverable error'
Methods inherited from Bio::DB::EUtilities add_cookie
Title : cookieUsage : $db->add_cookie($cookie)Function: adds an NCBI query cookie to the internal cookie queueReturns : noneArgs : a Bio::DB::EUtilities::Cookie object
next_cookie
Title : next_cookieUsage : $cookie = $db->next_cookieFunction: return a cookie from the internal cookie queueReturns : a Bio::DB::EUtilities::Cookie objectArgs : none
reset_cookies
Title : reset_cookieUsage : $db->reset_cookieFunction: resets the internal cookie queueReturns : noneArgs : none
get_all_cookies
Title : get_all_cookiesUsage : @cookies = $db->get_all_cookiesFunction: retrieves all cookies from the internal cookie queue; this leavesthe cookies in the queue intactReturns : noneArgs : none
get_response
Title : get_responseUsage : $db->get_response($content)Function: main method to retrieve data stream; parses out response for cookieReturns : HTTP::Response objectArgs : optional : Bio::DB::EUtilities::Cookie from a previous searchThrows : 'not a cookie' exception, response errors (via HTTP::Response)
reset_parameters
Title : reset_parametersUsage : $db->reset_parameters(@args);Function: resets the parameters for a EUtility with args (in @args)Returns : noneArgs : array of arguments (arg1 => value, arg2 => value)
Experimental method at this time count
Title : countUsage : $count = $db->count;Function: return count of number of entries retrieved by queryReturns : integerArgs : none
get_db_ids
Title : get_db_idsUsage : $count = $elink->get_db_ids($db); # gets array ref of IDs@count = $elink->get_db_ids($db); # gets array of IDs%hash = $elink->get_db_ids(); # hash of databases (keys) and array_refs(value)Function: returns an array or array ref if a database is the argument,otherwise returns a hash of the database (keys) and id_refs (values)Returns : array or array ref of ids (arg=database) or hash ofdatabase-array_refs (no args)Args : database string;
get_score
Title : get_scoreUsage : $score = $db->get_score($id);Function: gets score for ID (if present)Returns : integer (score)Args : ID values
get_ids_by_score
Title : get_ids_by_scoreUsage : @ids = $db->get_ids_by_score; # returns IDs@ids = $db->get_ids_by_score($score); # get IDs by scoreFunction: returns ref of array of ids based on relevancy score from elink;To return all ID's above a score, use the normal score value;to return all ID's below a score, append the score with '-';Returns : ref of array of ID's; if array, an array of IDsArgs : integer (score value); returns all if no arg provided