Skip to content

Commit

Permalink
minor fixed to BBtemplate from wetrun testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan DeKraker committed Dec 18, 2024
1 parent cbf452c commit 69933e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions hippunfold/config/snakebids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,12 @@ template_files:
dseg: tpl-ABAv3_hemi-{hemi}_space-corobl_desc-tissuemanual_dseg.nii.gz
coords: tpl-ABAv3_dir-{dir}_hemi-{hemi}_space-corobl_label-{autotop}_desc-laplace_coords.nii.gz
bigbrain:
T1w: tpl-bbhist_100um_T1w.nii.gz
xfm_corobl: tpl-bbhist_from-native_to-corobl_type-itk_affine.txt
crop_ref: tpl-bbhist_hemi-{hemi}_space-corobl_desc-tissuemanual_40um_dseg.nii.gz
Mask_crop: tpl-bbhist_hemi-{hemi}_space-corobl_desc-tissuemanual_40um_dseg.nii.gz
dseg: tpl-bbhist_hemi-{hemi}_space-corobl_desc-tissuemanual_40um_dseg.nii.gz
coords: tpl-bbhist_dir-{dir}_hemi-{hemi}_space-corobl_label-{autotop}_desc-laplace_coords.nii.gz
T1w: tpl-bigbrain_100um_T1w.nii.gz
xfm_corobl: tpl-bigbrain_from-native_to-corobl_type-itk_affine.txt
crop_ref: tpl-bigbrain_hemi-{hemi}_space-corobl_desc-tissuemanual_40um_dseg.nii.gz
Mask_crop: tpl-bigbrain_hemi-{hemi}_space-corobl_desc-tissuemanual_40um_dseg.nii.gz
dseg: tpl-bigbrain_hemi-{hemi}_space-corobl_desc-tissuemanual_40um_dseg.nii.gz
coords: tpl-bigbrain_dir-{dir}_hemi-{hemi}_space-corobl_label-{autotop}_desc-laplace_coords.nii.gz

atlas_files:
multihist7:
Expand Down
7 changes: 4 additions & 3 deletions hippunfold/workflow/rules/preproc_manualseg.smk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ rule import_manualseg_to_corobl:
in_img=partial(get_single_bids_input, component="manualseg"),
template_dir=Path(download_dir) / "template" / config["template"],
params:
std_to_cor=lambda wildcards: config["template_files"][config["template"]][
"xfm_corobl"
].format(**wildcards),
std_to_cor=lambda wildcards, input: Path(input.template_dir)
/ config["template_files"][config["template"]]["xfm_corobl"].format(
**wildcards
),
ref=lambda wildcards, input: Path(input.template_dir)
/ config["template_files"][config["template"]]["crop_ref"].format(**wildcards),
output:
Expand Down

0 comments on commit 69933e5

Please sign in to comment.