-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
✨ Introduce mri_robust_template
as option for longitudinal template generation
#2165
base: prep_for/mri_robust_template
Are you sure you want to change the base?
Conversation
…nal (new default) [skip ci]
…longitudinal template space
I think yes and yes for "C-PAC legacy". Here I added some functionality to grab the outputs from the previousl-run graph C-PAC/CPAC/longitudinal/wf/utils.py Lines 157 to 197 in 1e2079f
This section was what I was unsure about, but I think it makes sense. In this refactor, we go from looping over the sessions 3× (once before template generation and twice after) to 2× (once before and once after).
I think the idea was for it to work seamlessly with C-PAC-generated or previously-generated longitudinal templates so long as they're named in the BIDS-ish way C-PAC expects, but that there's been slippage between what C-PAC expects generally and what this specific section of the codebase expects & generates. |
1e2079f
to
397c533
Compare
397c533
to
6339798
Compare
At this point the outputs of a test run are looking like this: tree
thumbnailsanat
|
There's definitely some weirdness in the outputs. There are outputs with
even though they have differentiating |
Looks like the empty BOLD files are from the bandpass not passing anything through, could be data-specific. I'm going to try rerunning without bandpass. |
pre-preprocone per subject-session C-PAC/CPAC/longitudinal/wf/anat.py Lines 355 to 373 in 6339798
template nodeone per subject C-PAC/CPAC/longitudinal/wf/anat.py Lines 398 to 499 in 6339798
post-template preprocone per subject-session C-PAC/CPAC/longitudinal/wf/anat.py Lines 508 to 657 in 6339798
main workflowone per subject-session C-PAC/CPAC/pipeline/cpac_pipeline.py Lines 471 to 602 in 6339798
|
Fixes
Related to #2164 by @shnizzedy & @Shinwon Park
Description
using
option tolongitudinal_template_generation
with a choice ofmri_robust_template
(default) orC-PAC legacy
C-PAC/CPAC/resources/configs/pipeline_config_default.yml
Line 243 in e6d33f5
C-PAC/CPAC/resources/configs/pipeline_config_default.yml
Lines 253 to 255 in e6d33f5
anat
directory that's a sibling to all the session directories, and that thatanat
directory has all the subject-but-not-session-specific outputs in it.from-T1w_to-longitudinal
andfrom-longitudinal_to-{template}
andfrom-T1w_to-{template}
or do we want to leave any out to be recalculated as needed?Technical details
Still to do
Tests
Screenshots
tree sub-70009
Checklist
Update index.md
).prep_for/mri_robust_template
branch of the repository.Developer Certificate of Origin
Developer Certificate of Origin