Method: Bio::PubMed#search
- Defined in:
- lib/bio/io/pubmed.rb
#search(str) ⇒ Object
This method will be DEPRECATED in the future.
Search the PubMed database by given keywords using entrez query and returns an array of PubMed IDs.
Caution: this method returns the first 20 hits only,
Instead, use of the ‘esearch’ method is strongly recomended.
Implementation details: Since BioRuby 1.5, this method internally uses NCBI EUtils with retmax=20 by using Bio::PubMed#efetch method.
Arguments:
-
id: query string (required)
- Returns
-
array of PubMed IDs
142 143 144 145 |
# File 'lib/bio/io/pubmed.rb', line 142 def search(str) warn "Bio::PubMed#search is now a subset of Bio::PubMed#esearch. Using Bio::PubMed#esearch is recommended." if $VERBOSE esearch(str, { "retmax" => 20 }) end |