Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Allow for fmriprep resolution tags #336

Merged
merged 1 commit into from
May 22, 2020
Merged

Conversation

ariekahn
Copy link
Contributor

fMRIPrep can optionally append _res-X tags to filenames, such as space-MNI152NLin6Asym_res-2_ or space-MNI152NLin6Asym_res-native_: https://fmriprep.readthedocs.io/en/20.0.7/spaces.html

This broke the fmriprep file parsing, which was expecting a set number of _* tags at the end of the filename, such as here: https://github.com/PennBBL/xcpEngine/blob/39127b744644620a77b34e0320d89996b04e0e98/modules/prestats/prestats.mod#L227

This patch adds a check for the resolution tag, and if so, adds an extra _*

@a3sha2
Copy link
Contributor

a3sha2 commented May 22, 2020

thank you @ariekahn, it works

@a3sha2 a3sha2 merged commit 4693f0f into PennLINC:master May 22, 2020
@ariekahn ariekahn deleted the allow_res_tags branch May 22, 2020 18:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants