Skip to content
Snippets Groups Projects

QuaC - First major review

Merged Manavalan Gajapathy requested to merge make_it_production_ready into master
All threads resolved!
2 files
+ 12
8
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -52,7+52,7 @@
@@ -52,7+52,7 @@
in_dir = lambda wildcards, input: Path(input[0]).parent,
in_dir = lambda wildcards, input: Path(input[0]).parent,
workflow_dir = Path(workflow.basedir).parent
workflow_dir = Path(workflow.basedir).parent
shell:
shell:
r"""
r"""
echo "Heads up: Mosdepth-plotting is run on all samples in "{params.in_dir}"; Not just the files mentioned in the rule's input."
echo "Heads up: Mosdepth-plotting is run on all samples in "{params.in_dir}"; Not just the files mentioned in the rule's input."
cd {params.in_dir} # if not in directory, mosdepth uses filepath as sample name :(
cd {params.in_dir} # if not in directory, mosdepth uses filepath as sample name :(
@@ -73,7+73,7 @@
@@ -73,7+73,7 @@
output:
output:
html = OUT_DIR / "indexcov" / "index.html",
html = OUT_DIR / "indexcov" / "index.html",
bed = OUT_DIR / "indexcov" / f"indexcov-indexcov.bed.gz",
bed = OUT_DIR / "indexcov" / f"indexcov-indexcov.bed.gz",
log = OUT_DIR / "indexcov" / "stdout.log",
message:
message:
"Running indexcov"
"Running indexcov"
 
log:
 
OUT_DIR / "indexcov" / "stdout.log",
params:
params:
outdir = lambda wildcards, output: Path(output[0]).parent,
outdir = lambda wildcards, output: Path(output[0]).parent,
project_dir = lambda wildcards, input: str(Path(input['bam'][0]).parents[2]),
project_dir = lambda wildcards, input: str(Path(input['bam'][0]).parents[2]),
@@ -86,7 +87,7 @@ rule indexcov:
@@ -86,7 +87,7 @@ rule indexcov:
{input.goleft_tool} indexcov \
{input.goleft_tool} indexcov \
--directory {params.outdir} \
--directory {params.outdir} \
{params.project_dir}/[LU][WD]*/bam/*.bam \
{params.project_dir}/[LU][WD]*/bam/*.bam \
> {output.log} 2>&1
> {log} 2>&1
"""
"""
@@ -97,9 +98,10 @@ rule covviz:
@@ -97,9 +98,10 @@ rule covviz:
ped = PEDIGREE_FPATH,
ped = PEDIGREE_FPATH,
output:
output:
html = OUT_DIR / "covviz" / "covviz_report.html",
html = OUT_DIR / "covviz" / "covviz_report.html",
log = OUT_DIR / "covviz" / "stdout.log",
message:
message:
"Running covviz"
"Running covviz"
 
log:
 
OUT_DIR / "covviz" / "stdout.log",
conda:
conda:
str(WORKFLOW_PATH / "configs/env/covviz.yaml")
str(WORKFLOW_PATH / "configs/env/covviz.yaml")
shell:
shell:
@@ -108,5 +110,5 @@ rule covviz:
@@ -108,5 +110,5 @@ rule covviz:
--ped {input.ped} \
--ped {input.ped} \
--output {output.html} \
--output {output.html} \
{input.bed} \
{input.bed} \
> {output.log} 2>&1
> {log} 2>&1
"""
"""
Loading