Skip to content

Commit 003dbf3

Browse files
author
Jordan DeKraker
committed
grouped outlier opts
1 parent 8f08698 commit 003dbf3

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

hippunfold/config/snakebids.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,13 @@ cifti_metric_types:
366366
- curvature.dscalar
367367

368368
# params for detecting and removing outlier vertices
369-
outlierSmoothDist:
370-
unfoldiso: 15
371-
0p5mm: 7
372-
1mm: 3
373-
2mm: 1
374-
vertexOutlierThreshold: 3
369+
outlier_opts:
370+
outlierSmoothDist:
371+
unfoldiso: 15
372+
0p5mm: 7
373+
1mm: 3
374+
2mm: 1
375+
vertexOutlierThreshold: 3
375376

376377

377378

@@ -627,7 +628,7 @@ unfold_vol_ref:
627628
unfold_crop_epsilon_fractions:
628629
- 0
629630
- 0
630-
- 1
631+
- 1 #in unfolded space voxels
631632

632633
# space for uniform unfolded grid:
633634
# currently only used for interpolating hipp subfields on surface

hippunfold/workflow/rules/gifti.smk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ rule correct_bad_vertices1:
214214
**config["subj_wildcards"]
215215
),
216216
params:
217-
dist=lambda wildcards: config["outlierSmoothDist"][wildcards.density],
218-
threshold=config["vertexOutlierThreshold"],
217+
dist=lambda wildcards: config["outlier_opts"]["outlierSmoothDist"][wildcards.density],
218+
threshold=config["outlier_opts"]["vertexOutlierThreshold"],
219219
output:
220220
gii=bids(
221221
root=work,
@@ -764,8 +764,8 @@ rule correct_bad_vertices2:
764764
**config["subj_wildcards"]
765765
),
766766
params:
767-
dist=lambda wildcards: config["outlierSmoothDist"][wildcards.density],
768-
threshold=config["vertexOutlierThreshold"],
767+
dist=lambda wildcards: config["outlier_opts"]["outlierSmoothDist"][wildcards.density],
768+
threshold=config["outlier_opts"]["vertexOutlierThreshold"],
769769
output:
770770
gii=bids(
771771
root=work,

0 commit comments

Comments
 (0)