.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_auto_examples/vim2/00_download_vim2.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr__auto_examples_vim2_00_download_vim2.py: ================================ Download the data set from CRCNS ================================ In this script, we download the data set from CRCNS. A (free) account is required. Cite this data set ------------------ This tutorial is based on publicly available data `published on CRCNS `_. If you publish any work using this data set, please cite the original publication [1]_, and the data set [2]_. .. GENERATED FROM PYTHON SOURCE LINES 17-17 .. code-block:: Python :dedent: 1 .. GENERATED FROM PYTHON SOURCE LINES 19-21 Download -------- .. GENERATED FROM PYTHON SOURCE LINES 21-27 .. code-block:: Python # path of the data directory from voxelwise_tutorials.io import get_data_home directory = get_data_home(dataset="vim-2") print(directory) .. GENERATED FROM PYTHON SOURCE LINES 28-31 We will only use the first subject in this tutorial, but you can run the same analysis on the two other subjects. Uncomment the lines in ``DATAFILES`` to download more subjects, or to download the anatomy files. .. GENERATED FROM PYTHON SOURCE LINES 31-47 .. code-block:: Python import getpass from voxelwise_tutorials.io import download_crcns DATAFILES = [ 'vim-2/Stimuli.tar.gz', 'vim-2/VoxelResponses_subject1.tar.gz', # 'vim-2/VoxelResponses_subject2.tar.gz', # 'vim-2/VoxelResponses_subject3.tar.gz', # 'vim-2/anatomy.zip', # 'vim-2/checksums.md5', # 'vim-2/filelist.txt', # 'vim-2/docs/crcns-vim-2-data-description.pdf', ] .. GENERATED FROM PYTHON SOURCE LINES 48-54 .. code-block:: Python username = input("CRCNS username: ") password = getpass.getpass("CRCNS password: ") for datafile in DATAFILES: local_filename = download_crcns(datafile, username, password, destination=directory, unpack=True) .. GENERATED FROM PYTHON SOURCE LINES 55-65 References ---------- .. [1] Nishimoto, S., Vu, A. T., Naselaris, T., Benjamini, Y., Yu, B., & Gallant, J. L. (2011). Reconstructing visual experiences from brain activity evoked by natural movies. Current Biology, 21(19), 1641-1646. .. [2] Nishimoto, S., Vu, A. T., Naselaris, T., Benjamini, Y., Yu, B., & Gallant, J. L. (2014): Gallant Lab Natural Movie 4T fMRI Data. CRCNS.org. http://dx.doi.org/10.6080/K00Z715X .. _sphx_glr_download__auto_examples_vim2_00_download_vim2.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 00_download_vim2.ipynb <00_download_vim2.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 00_download_vim2.py <00_download_vim2.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_