Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: No such file or no access: 'sub-01_t1w_preproc.nii.gz' #165

Open
TamerGezici opened this issue Dec 24, 2020 · 3 comments

Comments

@TamerGezici
Copy link

I am running the tutorial dockerfile and I ran into an issue like this at the example_preprocessing notebook.

While executing cell:

plotting.plot_epi(
    '/data/ds000114/derivatives/fmriprep/sub-01/anat/sub-01_t1w_preproc.nii.gz',
    title="T1", display_mode='ortho', annotate=False, draw_cross=False, cmap='gray');

FileNotFoundError: No such file or no access: '/data/ds000114/derivatives/fmriprep/sub-01/anat/sub-01_t1w_preproc.nii.gz'

The file is there, I checked.

@JohannesWiesner
Copy link

Did you ran introduction.ipynb before that? I think I stumpled upon the same FileNotFoundError but it's important to run this script before

@TamerGezici
Copy link
Author

Did you ran introduction.ipynb before that? I think I stumpled upon the same FileNotFoundError but it's important to run this script before

Hi. Thanks a lot for your answer. I actually haven't so this could be why.

There is no single notebook called "introduction" but several with the prefix "introduction" is it the one called "introduction_dataset" that I should be running?

@JohannesWiesner
Copy link

Yes, you're right, I meant introduction_dataset.ipynb. Put please take this with a grain of salt I could also be wrong here (also trying out this tutorial for the first time). From the homepage it looks like one could directly start with example_preprocessing.ipynb but as you read the first lines of example_preprocessing.ipynbone already sees that introduction_dataset.ipynb has to be run before that (took me a while to find that out):

Preparation
Before we can start with anything we first need to download the data (the other 9 subjects in the dataset). This can be done very quickly with the following datalad command.

Note: This might take a while, as datalad needs to download ~700MB of data

%%bash
datalad get -J 4 /data/ds000114/derivatives/fmriprep/sub-*/anat/preproc.nii.gz
/data/ds000114/sub-
/ses-test/func/fingerfootlips

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants