Skip to content

Commit

Permalink
WIP: laynii for equivolume/equidistant coords
Browse files Browse the repository at this point in the history
tried it out and works great! this is a placeholder for me to complete
later..
  • Loading branch information
akhanf committed Jan 10, 2025
1 parent e3a861d commit ba785f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hippunfold/workflow/rules/autotop.smk
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,15 @@ rule equivolume_coords:
config["singularity"]["autotop"]
shell:
"python {params.script} {resources.tmpdir} {input.innerbin} {input.outerbin} {output.coords} &> {log}"

"""
rule prep_dseg_for_laynii:
input
shell:
"c3d ../hippunfold_khanlab/test_wbdev/test_wbdev/work/sub-1425/anat/sub-1425_hemi-L_space-corobl_desc-postproc_dseg.nii.gz -as DSEG -retain-labels 1 8 -binarize -scale 3 -popas GM -push DSEG -retain-labels 2 4 7 -binarize -scale 2 -popas WM -push DSEG -replace 0 100 -retain-labels 100 -binarize -scale 1 -popas PIAL -push GM -push WM -add -push PIAL -add -o sub-1425_hemi-L_desc-rim_dseg.nii.gz"
rule laynii_layers:
input:
shell:
"LN2_LAYERS -rim sub-1425_hemi-L_desc-rim_dseg.nii.gz -equivol"
"""

0 comments on commit ba785f1

Please sign in to comment.