Skip to content

Commit

Permalink
[FEAT] Change dsb_normalize_adt to use singularity not conda
Browse files Browse the repository at this point in the history
- script `dsb_normalize_adt.R`, from rule `dsb_normalize_adt` uses dsb
package that is not available in conda
- use custom singularity image for this step, instead of conda env
  • Loading branch information
Anne Bertolini committed Jan 11, 2024
1 parent 695ada1 commit 6c376c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions workflow/rules/adt_dsb_normalization.smk
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ rule dsb_normalize_adt:
CellrangerADT="results/cellranger_adt/{sample}.matrix.mtx",
output:
normalized="results/dsb_normalize_adt/{sample}.dsb_normalize_adt.RDS",
conda:
"../envs/dsb_normalize_adt.yaml"
singularity:
config["tools"]["dsb_normalize_adt"]["singularity"]
params:
adt_raw_dir=WORKDIR
+ "/results/cellranger_adt/{sample}/outs/raw_feature_bc_matrix/",
adt_filtered_dir=WORKDIR
+ "/results/cellranger_adt/{sample}/outs/filtered_feature_bc_matrix/",
outdir="results/dsb_normalize_adt/",
custom_script=workflow.source_path("../scripts/dsb_normalize_adt.R"),
threads: config["computingResources"]["threads"]["high"]
log:
"logs/dsb_normalize_adt/{sample}.log",
Expand All @@ -29,7 +28,7 @@ rule dsb_normalize_adt:
benchmark:
"results/dsb_normalize_adt/benchmark/{sample}.benchmark"
shell:
"Rscript {params.custom_script} "
"Rscript workflow/scripts/dsb_normalize_adt.R "
"--adt_raw_dir {params.adt_raw_dir} "
"--adt_filtered_dir {params.adt_filtered_dir} "
"--outdir {params.outdir} "
Expand Down

0 comments on commit 6c376c5

Please sign in to comment.