nipype icon indicating copy to clipboard operation
nipype copied to clipboard

Support for PET-BIDS

Open jrdalenberg opened this issue 1 year ago • 1 comments

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.

jrdalenberg avatar Mar 14 '23 11:03 jrdalenberg

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.

effigies avatar Jul 06 '23 16:07 effigies