Skip to content

Commit

Permalink
move args to rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl5766 committed Oct 4, 2024
1 parent 2e2e12c commit 51f6167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions spimquant/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@ import shutil

set_bids_spec("v0_11_0")

TARGET_SNAKEBIDS_YML_PATH = pathlib.Path("config/snakebids.yml").resolve() # configfile if found
# otherwise use the template which will not directly work but you can provide command line arguments to add to it
if not os.path.exists(TARGET_SNAKEBIDS_YML_PATH):
if not os.path.exists(TARGET_SNAKEBIDS_YML_PATH.parent):
os.makedirs(TARGET_SNAKEBIDS_YML_PATH.parent)
SNAKEBIDS_YML_PATH = "../examples/snakebids_template.yml"
shutil.copy(SNAKEBIDS_YML_PATH, TARGET_SNAKEBIDS_YML_PATH)

configfile: TARGET_SNAKEBIDS_YML_PATH

configfile: "config/snakebids.yml"


# use expandvars so we can use e.g. '$SLURM_TMPDIR'
Expand Down
4 changes: 2 additions & 2 deletions spimquant/workflow/rules/blobdetect.smk
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ rule negatively_masked_counting:
Work in progress
"""
input:
zarr=config["negatively_masked_counting"]["zarr"],
neg_mask=config["negatively_masked_counting"]["neg_mask"],
zarr='/path_to_bids_root/bids/sub-onuska21/micr/sub-onuska21_sample_brain_acq-prestitched_SPIM.ome.zarr?slices=[1]',
neg_mask='/path_to_bids_root/resources/onuska21_patched.tiff',
params:
neg_mask_scale=(1, 1, 1),
tmp_path=f'{config["output_dir"]}/tmp'
Expand Down

0 comments on commit 51f6167

Please sign in to comment.