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

Add support for filtering scans by series number or suffixes #2

Merged
merged 3 commits into from
Nov 1, 2017

Conversation

jooh
Copy link
Contributor

@jooh jooh commented May 16, 2017

See commit messages for implementation details. Hope this all makes sense!

J

jooh added 3 commits May 16, 2017 11:20
We add support for two common scenarios:

* series which result in multiple output niftis from dcm2niix (e.g., multi-echo
 sequences where individual echoes are written out in addition to the final
 image, even though these component files are generally of no interest)

* cases where particular runs should be ignored for a given subject / session
 (e.g., 'bad' task fMRI runs, structural scans that were re-acquired due to head
 motion)

We achieve this by adding a new input argument (selectseries), and parsing of
two new sub-fields in the 'criteria' subfield of the configuration json:
seriesnum and suffix.

The idea with the input argument is that ignored series generally are
ideosyncratic to a particular subject/session, so it makes sense to set this at
call time to avoid having to generate custom config files for each scan session.

The idea with the additional json criteria fields is to suppress scans that are
never of interest. For instance, some centers run a 'test' EPI acquisition
routinely before data collection begins, so seriesnum 1 is always junk.

Tested on Python 2.7 and 3.6.
@cbedetti cbedetti merged commit 9a7606d into UNFmontreal:master Nov 1, 2017
arnaudbore added a commit that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants