Skip to content

Commit

Permalink
Merge branch 'dev-v2.0.0' into speeed
Browse files Browse the repository at this point in the history
  • Loading branch information
akhanf committed Jan 22, 2025
2 parents 2807f5c + ccf2b76 commit ba89e1d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions hippunfold/config/snakebids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ parse_args:

--workdir:
help: |
Folder for storing working files. If not specified, a temporary folder
will be made in your system's temp directory (e.g. /tmp). You can also
use environment variables when setting the workdir, e.g. --workdir '$SLURM_TMPDIR'.
default: null
Folder for storing working files. If not specified, will be in "work/" subfolder
in the output folder. You can also use environment variables when setting the
workdir, e.g. --workdir '$SLURM_TMPDIR'.
default: work
type: str


Expand Down
2 changes: 0 additions & 2 deletions hippunfold/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ wildcard_constraints:
template="[a-zA-Z0-9]+",


if config["workdir"] == None:
config["workdir"] = mkdtemp()
work = os.path.expandvars(config["workdir"])
root = os.path.expandvars(config["root"])

Expand Down
4 changes: 3 additions & 1 deletion hippunfold/workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def get_final_output():

if "corobl" in ref_spaces:

ruleorder: equivolume_coords > laplace_coords_hipp > laplace_coords_dentate > copy_coords_to_results

rule copy_coords_to_results:
input:
os.path.join(work, "{pre}_space-corobl_{post}{suffix}.{ext}"),
Expand All @@ -231,7 +233,7 @@ if "corobl" in ref_spaces:

rule copy_xfm_to_results:
input:
os.path.join(work, "{pre}_{fromto,from|to}-corobl_{post}{suffix}.{ext}"),
os.path.join(work, "{pre}_{fromto}-corobl_{post}{suffix}.{ext}"),
output:
os.path.join(
root, "{pre,[^/].+}_{fromto,from|to}-corobl_{post}{suffix,xfm}.{ext}"
Expand Down
2 changes: 1 addition & 1 deletion hippunfold/workflow/rules/gifti.smk
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ rule affine_gii_to_native:
datatype="surf",
den="{density}",
suffix="{surfname}.surf.gii",
space="{native_modality}",
space="{native_modality,T1w|T2w}",
hemi="{hemi}",
label="{autotop,hipp|dentate}",
**inputs.subj_wildcards
Expand Down
2 changes: 1 addition & 1 deletion hippunfold/workflow/rules/native_surf.smk
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ rule affine_gii_corobl_to_modality:
root=root,
datatype="surf",
suffix="{surfname}.surf.gii",
space="{native_modality}",
space="{native_modality,T1w|T2w}",
hemi="{hemi}",
label="{autotop,hipp|dentate}",
**inputs.subj_wildcards
Expand Down

0 comments on commit ba89e1d

Please sign in to comment.