nipype
nipype copied to clipboard
Support for PET-BIDS
Hey all,
I built an in-house PET preprocessing pipeline and would like to update it to support BIDS (and make it available on github). However, I do not think there is PET support yet for many (all?) BIDS routines. For example BIDSDataGrabber()
expects fMRI and/or anat_only
data.
I've been looking at the interface(s) and it looks to me that it's not a trivial thing to add.
Those are basically examples. If you want to use PET, you would write something like:
grabber = BIDSDataGrabber(
output_query={
'all_pet_images': {'datatype': 'pet', 'extension': ['.nii', '.nii.gz']},
'blood_files': {'datatype': 'pet', 'suffix': 'blood', 'extension': ['.tsv']},
...
},
)
The outputs of grabber
will now have output fields all_pet_images
and blood_files
. You can refine these queries or add more.