Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: add PET support to niworkflows #823

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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