Skip to content

Commit

Permalink
cleaned out unused scripts, rules
Browse files Browse the repository at this point in the history
also renamed laplace-beltrami.py to laplace_beltrami.py for consistency
  • Loading branch information
akhanf committed Jan 23, 2025
1 parent 38a3e89 commit d25b675
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 93 deletions.
55 changes: 1 addition & 54 deletions hippunfold/workflow/rules/native_surf.smk
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ rule laplace_beltrami:
container:
config["singularity"]["autotop"]
script:
"../scripts/laplace-beltrami.py"
"../scripts/laplace_beltrami.py"


def get_unfold_z_level(wildcards):
Expand Down Expand Up @@ -1371,55 +1371,6 @@ def get_unfold_ref(wildcards):
)


rule warp_unfold_native_to_unfoldreg_NOTWORKING:
"""this seems to give bounding box errors for no good reason.."""
input:
surf_gii=bids(
root=root,
datatype="surf",
suffix="{surfname}.surf.gii",
space="unfold",
hemi="{hemi}",
label="{label}",
**inputs.subj_wildcards
),
warp=bids(
root=work,
suffix="xfm.nii.gz",
datatype="warps",
desc=unfoldreg_method,
from_="native",
to=config["atlas"],
space="unfold",
type_="surface",
hemi="{hemi}",
label="{label}",
**inputs.subj_wildcards,
),
params:
structure_type=lambda wildcards: get_structure(wildcards.hemi, wildcards.label),
secondary_type=lambda wildcards: surf_to_secondary_type[wildcards.surfname],
surface_type="FLAT",
output:
surf_gii=bids(
root=work,
datatype="surf",
suffix="{surfname}.surf.gii",
space="unfoldregNOTWORKING",
hemi="{hemi}",
label="{label}",
**inputs.subj_wildcards
),
container:
config["singularity"]["autotop"]
group:
"subj"
shell:
"wb_command -surface-apply-warpfield {input.surf_gii} {input.warp} {output.surf_gii} && "
"wb_command -set-structure {output.surf_gii} {params.structure_type} -surface-type {params.surface_type}"
" -surface-secondary-type {params.secondary_type}"


rule warp_unfold_native_to_unfoldreg:
input:
surf_gii=bids(
Expand All @@ -1444,10 +1395,6 @@ rule warp_unfold_native_to_unfoldreg:
label="{label}",
**inputs.subj_wildcards,
),
params:
structure_type=lambda wildcards: get_structure(wildcards.hemi, wildcards.label),
secondary_type=lambda wildcards: surf_to_secondary_type[wildcards.surfname],
surface_type="FLAT",
output:
surf_gii=bids(
root=work,
Expand Down
17 changes: 0 additions & 17 deletions hippunfold/workflow/scripts/expand_2Dwarp.py

This file was deleted.

22 changes: 0 additions & 22 deletions hippunfold/workflow/scripts/warp_flatsurf.py

This file was deleted.

0 comments on commit d25b675

Please sign in to comment.