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

Download files which are not part of rawdata? #198

Open
JohannesWiesner opened this issue Dec 4, 2024 · 0 comments
Open

Download files which are not part of rawdata? #198

JohannesWiesner opened this issue Dec 4, 2024 · 0 comments

Comments

@JohannesWiesner
Copy link

I would like to download this file using openneuro-py:

https://openneuro.org/datasets/ds000113/versions/1.3.0/file-display/derivatives:motion:sub-01:ses-forrestgump:func:sub-01_ses-forrestgump_acq-dico_run-01_bold_moco.txt

I tried

import openneuro as on

exclude=[f"*sub-{idx:02d}" for idx in range(2,36)]
exclude.append("sourcedata")
exclude.append("sub-phantom")

# takes about 5 minutes
file = on.download(dataset='ds000113',
                   exclude=exclude,
                   include="**/sub-01_ses-forrestgump_acq-dico_run-01_bold_moco.txt",
                   tag="1.3.0")

but this gives me:

RuntimeError: Could not find path in the dataset:
- **/sub-01_ses-forrestgump_acq-dico_run-01_bold_moco.txt
Perhaps you mean one of these paths:
- sub-01/ses-forrestgump/func/sub-01_ses-forrestgump_task-forrestgump_acq-dico_run-01_bold.json
- sub-01/ses-forrestgump/func/sub-01_ses-forrestgump_task-forrestgump_acq-dico_run-01_bold.nii.gz
Please check your includes.

why is this the case? Does openneuro-py search for all files? It seems that it only searches /rawdata?

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

1 participant