nimare.extract.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) – A Dataset object where IDs are in the form PMID-EXPID

  • email (str) – Email address to use to call the PubMed API

Returns

dataset (nimare.dataset.Dataset)

Warning

This function assumes that the dataset uses identifiers in the format [PMID-EXPID]. Thus, the study_id column of the dataset.texts DataFrame should correspond to PMID.

Examples using nimare.extract.download_abstracts