nimare.extract.fetch_neurostore
- fetch_neurostore(version='latest', data_dir=None, overwrite=False, return_type='studyset', target='mni152_2mm', url=None, timeout=30, verify_checksum=True)[source]
Download a NeuroStore studyset release.
Added in version 0.22.0.
NeuroStore releases are the maintained source of coordinate data for NiMARE, and should be preferred over the frozen Neurosynth and NeuroQuery snapshots downloaded by
fetch_neurosynth()andfetch_neuroquery(). Releases are published as archives of parquet tables at https://neurostore.org/api/neurostore-studyset-releases/ and load directly into the columnar tables aStudysetstores.- Parameters:
version (
str, optional) – Release to download."latest"(the default) takes the most recent dated release,"nightly"takes the rolling nightly build, and any other value is matched against the published version strings (e.g."2026-09"). Callfetch_neurostore_releases()to see what is available.data_dir (
pathlib.Pathorstr, optional) – Path where data should be downloaded. By default, files are downloaded in the home directory. A subfolder, namedneurostore, will be created indata_dir, with one subfolder per downloaded release.overwrite (
bool, optional) – Whether to re-download and re-extract a release that is already on disk. Default is False.return_type ({"studyset", "files"}, optional) – Type of object to return. The default,
"studyset", returns aStudyset;"files"returns the path to the extracted release directory without loading it.target (
str, optional) – Target template space for the returned Studyset. Default is"mni152_2mm". Ignored whenreturn_type="files".url (
stror None, optional) – Release index to query. Default isNEUROSTORE_RELEASES_URL.timeout (
intorfloat, optional) – Timeout, in seconds, for each request. Default is 30.verify_checksum (
bool, optional) – Whether to check the downloaded archive against the checksum published with the release. Default is True.
- Returns:
The downloaded studyset, or the path to the extracted release directory when
return_type="files".- Return type:
Studysetorstr
Notes
Reading the parquet tables requires
pyarrow, which NiMARE declares as theparquetextra (pip install nimare[parquet]).return_type="files"works without it.Examples
Download the most recent release and run a meta-analysis on part of it:
studyset = fetch_neurostore() print(studyset)
See also
fetch_neurostore_releasesList the releases available for download.
nimare.io.fetch_neurostore_studysetDownload a single studyset from NeuroStore.