Method: Bio::PubMed#query
- Defined in:
- lib/bio/io/pubmed.rb
#query(*ids) ⇒ Object
This method will be DEPRECATED in the future.
Retrieve PubMed entry by PMID and returns MEDLINE formatted string using entrez query.
Arguments:
-
id: PubMed ID (required)
- Returns
-
MEDLINE formatted String
155 156 157 158 159 160 161 162 163 |
# File 'lib/bio/io/pubmed.rb', line 155 def query(*ids) warn "Bio::PubMed#query internally uses Bio::PubMed#efetch. Using Bio::PubMed#efetch is recommended." if $VERBOSE ret = efetch(ids) if ret && ret.size > 0 then ret.join("\n\n") + "\n" else "" end end |