NAME
Bio::DB::Biblio::eutils - access to PubMed's bibliographic query service
VERSION
version 1.70
SYNOPSIS
Do not use this object directly, it is recommended to access it and use it through the Bio::Biblio module:
use Bio::Biblio;use Bio::Biblio::IO;my $biblio = Bio::Biblio->new( -access => 'eutils' );$biblio->find("10336996");my $xml = $biblio->get_next;my $io = Bio::Biblio::IO->new( -data => $xml,-format => 'medlinexml' );my $article = $io->next_bibref();
The main documentation details are to be found in Bio::DB::BiblioI.
ATTRIBUTES
db
Title : dbUsage : $obj->db($newval)Function: specifies the database to search. valid values are:pubmed, pmc, journalsit is also possible to add the following, and i will doso on request:genome, nucleotide, protein, popset, snp, sequence, taxonomypubmed is default.Returns : value of db (a scalar)Args : on set, new value (a scalar or undef, optional)
has_next
Title : has_nextUsage : $has_next = $biblio->has_next();Function: check to see if there are more items to be retrievedReturns : 1 on true, undef on falseArgs : none
METHODS
get_collection_id
Title : get_collection_idUsage : $id = $biblio->get_collection_id();Function: returns WebEnv value from ESearchReturns : ESearch WebEnv value as a stringArgs : none
reset_retrieval
Title : reset_retrievalUsage : $biblio->reset_retrieval();Function: reset cursor in id list, see cursor()Returns : 1Args : none
get_next
Title : get_nextUsage : $xml = $biblio->get_next();Function: return next record as xmlReturns : an xml stringArgs : none
get_more
Title : get_moreUsage : $xml = $biblio->get_more($more);Function: returns next $more records concatenatedReturns : a string containing multiple xml documentsArgs : an integer representing how many records to retrieve
find
Title : findUsage : $biblio = $biblio->find($pubmed_query_phrase);Function: perform a PubMed query using Entrez ESearchReturns : a reference to the object on which the method was calledArgs : a PubMed query phrase. Seehttp://eutils.ncbi.nlm.nih.gov/entrez/query/static/help/pmhelp.htmlfor help on how to construct a query.
get_all_ids
Title : get_all_idsUsage : @ids = $biblio->get_all_ids();Function: return a list of PubMed ids resulting from call to find()Returns : a list of PubMed ids, or an empty listArgs : none
get_all
Title : get_allUsage : $xml = $biblio->get_all();Function: retrieve all records from queryReturns : return a large concatenated string of PubMed xml documentsArgs : none
get_vocabulary_names
Title : get_vocabulary_namesUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : empty arrayrefArgs : none
get_entry_description
Title : get_entry_descriptionUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
get_all_values
Title : get_all_valuesUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
get_all_entries
Title : get_all_entriesUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
INTERNAL METHODS
_initialize
Usage : my $obj = Bio::Biblio->new(-access => 'eutils' ...);(_initialize is internally called from this constructor)Returns : 1 on successArgs : none
This is an actual new() method (except for the real object creation and its blessing which is done in the parent class Bio::Root::Root in method _create_object).
Note that this method is called always as an object method (never as a class method) - and that the object who calls this method may already be partly initiated (from Bio::Biblio::new method); so if you need to do some tricks with the 'class invocation' you need to change Bio::Biblio::new method, not this one.
exists
Title : existsUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
destroy
Title : destroyUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
contains
Title : containsUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
cursor
Title : cursorUsage : $obj->cursor($newval)Function: holds position in reference collectionReturns : value of cursor (a scalar)Args : on set, new value (a scalar or undef, optional)
twig
Title : twigUsage : $obj->twig($newval)Function: holds an XML::Twig instance.Returns : value of twig (a scalar)Args : on set, new value (a scalar or undef, optional)
ids
Title : idsUsage : $obj->ids($newval)Function: store pubmed ids resulting from find() queryReturns : value of ids (a scalar)Args : on set, new value (a scalar or undef, optional)
collection_id
Title : collection_idUsage : $obj->collection_id($newval)Function:Returns : value of collection_id (a scalar)Args : on set, new value (a scalar or undef, optional)
count
Title : countUsage : $obj->count($newval)Function:Returns : value of count (a scalar)Args : on set, new value (a scalar or undef, optional)
query_key
Title : query_keyUsage : $obj->query_key($newval)Function: holds query_key from ESearch documentReturns : value of query_key (a scalar)Args : on set, new value (a scalar or undef, optional)
BUGS AND LIMITATIONS
* More testing and debugging needed to ensure that returned citations are properly transferred even if they contain foreign characters. * Maximum record count (MAX_RECORDS) returned currently hard coded to 100K. * Biblio retrieval methods should be more tightly integrated with Bio::Biblio::Ref and Bio::DB::MeSH.
SEE ALSO
- •
-
Pub Med Help
http://eutils.ncbi.nlm.nih.gov/entrez/query/static/help/pmhelp.html
- •
-
Entrez Utilities
http://eutils.ncbi.nlm.nih.gov/entrez/query/static/eutils_help.html
- •
-
Example code
eg/biblio-eutils.pl
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 discussionhttp://bioperl.org/wiki/Mailing_lists - 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://redmine.open-bio.org/projects/bioperl/
LEGAL
Authors
Allen Day <[email protected]>
Copyright and License
This software is Copyright (c) by 2004 Allen Day, University of California, Los Angeles and released under the license of the same terms as the perl 5 programming language system itself