-
-
Notifications
You must be signed in to change notification settings - Fork 41
Fixing ccs options brain masking #2265
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2265 +/- ##
=========================================
+ Coverage 28.7% 28.8% +0.1%
=========================================
Files 230 230
Lines 26169 26195 +26
Branches 4113 4113
=========================================
+ Hits 7503 7541 +38
+ Misses 18018 18006 -12
Partials 648 648
🚀 New features to boost your workflow:
|
e07c6eb to
737e557
Compare
for more information, see https://pre-commit.ci
shnizzedy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think as long as clearing
C-PAC/CPAC/anat_preproc/anat_preproc.py
Lines 1350 to 1366 in e2d6a31
| # CCS brain mask is in FS space, transfer it back to native T1 space | |
| fs_fsl_brain_mask_to_native = pe.Node( | |
| interface=freesurfer.ApplyVolTransform(), | |
| name=f"fs_fsl_brain_mask_to_native_{node_id}", | |
| ) | |
| fs_fsl_brain_mask_to_native.inputs.reg_header = True | |
| fs_fsl_brain_mask_to_native.inputs.interp = "nearest" | |
| wf.connect( | |
| binarize_combined_mask, "out_file", fs_fsl_brain_mask_to_native, "source_file" | |
| ) | |
| node, out = strat_pool.get_data("pipeline-fs_raw-average") | |
| wf.connect(node, out, fs_fsl_brain_mask_to_native, "target_file") | |
| node, out = strat_pool.get_data("freesurfer-subject-dir") | |
| wf.connect(node, out, fs_fsl_brain_mask_to_native, "subjects_dir") |
|
Since this PR is recent and ccs-options masking, I wonder if this change is causing #2279? |
@shnizzedy , yeah looks like it. It seems like the subjects I ran tests with had same image for FS and T1w space so it passes all my tests. Will look into this |

Fixes
Fixes
ccs-optionsbrain masking outputs #2263 by @sgiavasisccs-optionsbrain mask workflow #2266 by @sgiavasisDescription
Modified
ccs-optionsTight/Loose brain mask generation nodeblocks to name the masks appropriately so that it moves downstream to the rest of pipeline and can be used inbrain extractionas swappableT1w brain masks.Technical details
Converts the tight/loose brain masks into generic mask that can be used downstream.
Adding metadata info into the nodeblock decorator as
Tests
Run CPAC with config where these brain extraction methods are enabled and then see if the respective outputs are available in the output/anat dir.
Screenshots
Ran Config with

and checked the

output/anatCPAC Variant info in the metadata

Final Masked Brain from Tight (left) Loose (right)

Checklist
Update index.md).developbranch of the repository.Developer Certificate of Origin
Developer Certificate of Origin