I was wanting to use the file 'mnia.nii.gz' but it doesn't have a Figshare URL.
|
def get_data(file_id=None, target_file_name=None, antsx_cache_directory=None): |
|
""" |
|
Get ANTsPy test data file |
|
|
|
ANTsR function: `getANTsRData` |
|
|
|
Arguments |
|
--------- |
|
name : string |
|
name of test image tag to retrieve |
|
Options: |
|
- 'r16' |
|
- 'r27' |
|
- 'r30' |
|
- 'r62' |
|
- 'r64' |
|
- 'r85' |
|
- 'ch2' |
|
- 'mni' |
|
- 'surf' |
|
- 'pcasl' |
|
Returns |
|
------- |
|
string |
|
filepath of test image |
|
|
|
Example |
|
------- |
|
>>> import ants |
|
>>> mnipath = ants.get_ants_data('mni') |
|
""" |
|
|
|
def switch_data(argument): |
|
switcher = { |
|
"r16": "https://ndownloader.figshare.com/files/28726512", |
|
"r27": "https://ndownloader.figshare.com/files/28726515", |
|
"r30": "https://ndownloader.figshare.com/files/28726518", |
|
"r62": "https://ndownloader.figshare.com/files/28726521", |
|
"r64": "https://ndownloader.figshare.com/files/28726524", |
|
"r85": "https://ndownloader.figshare.com/files/28726527", |
|
"ch2": "https://ndownloader.figshare.com/files/28726494", |
|
"mni": "https://ndownloader.figshare.com/files/28726500", |
|
"surf": "https://ndownloader.figshare.com/files/28726530", |
|
"pcasl": "http://files.figshare.com/1862041/101_pcasl.nii.gz", |
|
} |
|
return(switcher.get(argument, "Invalid argument.")) |
Is there a figshare dataset with these files that could be updated?
I was also thinking it would be good to have a 2mm version of MNI to do some 3D tests (I'm working on some minor fixes to label_stats at the moment).
I was wanting to use the file 'mnia.nii.gz' but it doesn't have a Figshare URL.
ANTsPy/ants/utils/get_ants_data.py
Lines 12 to 57 in cdf373f
Is there a figshare dataset with these files that could be updated?
I was also thinking it would be good to have a 2mm version of MNI to do some 3D tests (I'm working on some minor fixes to label_stats at the moment).