From c3586de292efb49b572da00a0b22468ff6e340ed Mon Sep 17 00:00:00 2001 From: Ali Khan Date: Tue, 24 Sep 2024 23:43:11 -0400 Subject: [PATCH] updates for fuse-spark --- workflow/rules/bigstitcher.smk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/workflow/rules/bigstitcher.smk b/workflow/rules/bigstitcher.smk index 62d39f2..5a47aa2 100644 --- a/workflow/rules/bigstitcher.smk +++ b/workflow/rules/bigstitcher.smk @@ -283,6 +283,7 @@ rule fuse_dataset_spark: bsfy=config["bigstitcher"]["fuse_dataset"]["block_size_factor_y"], bsfz=config["bigstitcher"]["fuse_dataset"]["block_size_factor_z"], ), + mem_gb=lambda wikdcards, resources: '{mem_gb}'.format(mem_gb=int(resources.mem_mb/1000)) output: zarr=temp( directory( @@ -329,10 +330,7 @@ rule fuse_dataset_spark: group: "preproc" shell: - "affine-fusion --preserveAnisotropy -x {input.dataset_xml} " + "affine-fusion {params.mem_gb} {threads} --preserveAnisotropy -x {input.dataset_xml} " " -o {output.zarr} -d /fused/s0 -s ZARR " " --UINT16 --minIntensity 0 --maxIntensity 65535 " - - -# " --UINT8 --minIntensity 0 --maxIntensity 255 " -"{params}" # all the params + "{params.block_size} {params.block_size_factor} {params.channel}"