Method: Bio::PubMed#pmfetch

Defined in:
lib/bio/io/pubmed.rb

#pmfetch(id) ⇒ Object

This method will be DEPRECATED in the future.

Retrieve PubMed entry by PMID and returns MEDLINE formatted string.


Arguments:

  • id: PubMed ID (required)

Returns

MEDLINE formatted String



173
174
175
176
177
178
179
180
181
182
# File 'lib/bio/io/pubmed.rb', line 173

def pmfetch(id)
  warn "Bio::PubMed#pmfetch internally use Bio::PubMed#efetch. Using Bio::PubMed#efetch is recommended." if $VERBOSE

  ret = efetch(id)
  if ret && ret.size > 0 then
    ret.join("\n\n") + "\n"
  else
    ""
  end
end