nimare.annotate.text.download_abstracts

download_abstracts(dataset, email)[source]

Download the abstracts for a list of PubMed IDs. Uses the BioPython package.

Parameters:
  • dataset (nimare.dataset.Dataset or list of str) – A Dataset object where IDs are in the form PMID-EXPID or a list of PubMed IDs
  • email (str) – Email address to use to call the PubMed API
Returns:

dataset – Dataset with abstracts added.

Return type:

nimare.dataset.Dataset or list of str