download_data

nighres.data.download_7T_TRT(data_dir, overwrite=False, subject_id='sub001_sess1')[source]

Downloads the MP2RAGE data from the 7T Test-Retest dataset published by Gorgolewski et al (2015) [1]_

Parameters:
  • data_dir (str) – Writeable directory in which downloaded files should be stored. A subdirectory called ‘7T_TRT’ will be created in this location.
  • overwrite (bool) – Overwrite existing files in the same exact path (default is False)
  • subject_id ('sub001_sess1', 'sub002_sess1', 'sub003_sess1'}) – Which dataset to download (default is ‘sub001_sess1’)
Returns:

Dictionary with keys pointing to the location of the downloaded files

  • inv2 : path to second inversion image
  • t1w : path to T1-weighted (uniform) image
  • t1map : path to quantitative T1 image

Return type:

dict

Notes

The full dataset is available at http://openscience.cbs.mpg.de/7t_trt/

References

[1]Gorgolewski et al (2015). A high resolution 7-Tesla resting-state fMRI test-retest dataset with cognitive and physiological measures. DOI: 10.1038/sdata.2014.

Examples using nighres.data.download_7T_TRT

nighres.data.download_DTI_2mm(data_dir, overwrite=False)[source]

Downloads an example DTI data set

Parameters:
  • data_dir (str) – Writeable directory in which downloaded files should be stored. A subdirectory called ‘DTI_2mm’ will be created in this location.
  • overwrite (bool) – Overwrite existing files in the same exact path (default is False)
Returns:

Dictionary with keys pointing to the location of the downloaded files

  • dti : path to DTI image
  • mask : path to binary brain mask

Return type:

dict

Examples using nighres.data.download_DTI_2mm

nighres.data.download_DOTS_atlas(data_dir=None, overwrite=False)[source]

Downloads the statistical atlas presented in [1]_

Parameters:
  • data_dir (str) – Writeable directory in which downloaded atlas files should be stored. A subdirectory called ‘DOTS_atlas’ will be created in this location.
  • overwrite (bool) – Overwrite existing files in the same exact path (default is False)
Returns:

Dictionary with keys pointing to the location of the downloaded files

  • fiber_p : path to atlas probability image
  • fiber_dir : path to atlas direction image

Return type:

dict

References

[1]Bazin et al (2011). Direct segmentation of the major white matter tracts in diffusion tensor images. DOI: 10.1016/j.neuroimage.2011.06.020

Examples using nighres.data.download_DOTS_atlas