-
Notifications
You must be signed in to change notification settings - Fork 26
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 custom censoring options #1159
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1159 +/- ##
==========================================
- Coverage 83.53% 83.00% -0.54%
==========================================
Files 54 54
Lines 6892 6877 -15
Branches 987 972 -15
==========================================
- Hits 5757 5708 -49
- Misses 873 911 +38
+ Partials 262 258 -4 ☔ View full report in Codecov by Sentry. |
Closes #724 and closes #723.
To do:
Changes proposed in this pull request
--fd-thresh
can accept a second value, which applies additional FD-based censoring after interpolation+filtering+denoising+recensoring.--dvars-thresh
, which accepts one or two values, to apply a DVARS-based threshold when identifying outliers.--censor-before
and--censor-after
, which both accept one or two values to censor volumes before/after outlier volumes identified by--fd-thresh
and--dvars-thresh
.--censor-between
, which accepts one or two values to censor contiguous sequences of non-loutlier volumes between flagged outlier volumes, as long as the sequence is shorter than or equal to thecensor-between
value.framewise_displacement
: Volumes with FD greater than the first value of--fd-thresh
dvars
: Volumes with DVARS greater than the first value of--dvars-thresh
denoising
: Volumes flagged by theframewise_displacement
ordvars
columns, expanded using the first values of--censor-before
,--censor-after
, and--censor-between
framewise_displacement_interpolation
: Volumes with FD greater than the second value of--fd-thresh
dvars_interpolation
: Volumes with DVARS greater than the second value of--dvars-thresh
interpolation
: Volumes flagged by any of the previous columns, expanded using the second values of--censor-before
,--censor-after
, and--censor-between
.GenerateConfounds
interface intoModifyConfounds
(motion filtering and FD recalculation),GenerateTemporalMask
(outlier detection using FD and/or DVARS confounds), andGenerateDesignMatrix
(select confounds, combine with custom confounds, and orthogonalize noise regressors w.r.t. signal regressors).Documentation that should be reviewed