Skip to content

Commit 6c8159a

Browse files
authored
Merge pull request #823 from nipreps/add_pet_bids_support
ENH: add PET support to niworkflows
2 parents 87e57b4 + f688726 commit 6c8159a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

niworkflows/interfaces/bids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ class _BIDSDataGrabberOutputSpec(TraitedSpec):
225225
roi = OutputMultiObject(desc="output ROI images")
226226
t2w = OutputMultiObject(desc="output T2w images")
227227
flair = OutputMultiObject(desc="output FLAIR images")
228+
pet = OutputMultiObject(desc="output PET images")
228229

229230

230231
class BIDSDataGrabber(SimpleInterface):
@@ -276,7 +277,7 @@ def _run_interface(self, runtime):
276277
)
277278
)
278279

279-
for imtype in ["bold", "t2w", "flair", "fmap", "sbref", "roi"]:
280+
for imtype in ["bold", "t2w", "flair", "fmap", "sbref", "roi", "pet"]:
280281
if not bids_dict[imtype]:
281282
LOGGER.info(
282283
'No "%s" images found for sub-%s', imtype, self.inputs.subject_id

niworkflows/utils/bids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def collect_data(
233233
"t2w": {"datatype": "anat", "suffix": "T2w", "part": ["mag", None]},
234234
"t1w": {"datatype": "anat", "suffix": "T1w", "part": ["mag", None]},
235235
"roi": {"datatype": "anat", "suffix": "roi"},
236+
"pet": {"suffix": "pet"}
236237
}
237238
bids_filters = bids_filters or {}
238239
for acq, entities in bids_filters.items():

0 commit comments

Comments
 (0)