Skip to content

Commit

Permalink
ENH: add PET support to niworkflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoergaard committed Aug 28, 2023
1 parent 789d064 commit d139113
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion niworkflows/interfaces/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class _BIDSDataGrabberOutputSpec(TraitedSpec):
roi = OutputMultiObject(desc="output ROI images")
t2w = OutputMultiObject(desc="output T2w images")
flair = OutputMultiObject(desc="output FLAIR images")
pet = OutputMultiObject(desc="output PET images")


class BIDSDataGrabber(SimpleInterface):
Expand Down Expand Up @@ -276,7 +277,7 @@ def _run_interface(self, runtime):
)
)

for imtype in ["bold", "t2w", "flair", "fmap", "sbref", "roi"]:
for imtype in ["bold", "t2w", "flair", "fmap", "sbref", "roi", "pet"]:
if not bids_dict[imtype]:
LOGGER.info(
'No "%s" images found for sub-%s', imtype, self.inputs.subject_id
Expand Down
1 change: 1 addition & 0 deletions niworkflows/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def collect_data(
"t2w": {"datatype": "anat", "suffix": "T2w", "part": ["mag", None]},
"t1w": {"datatype": "anat", "suffix": "T1w", "part": ["mag", None]},
"roi": {"datatype": "anat", "suffix": "roi"},
"pet": {"suffix": "pet"}
}
bids_filters = bids_filters or {}
for acq, entities in bids_filters.items():
Expand Down

0 comments on commit d139113

Please sign in to comment.