Skip to content
Snippets Groups Projects
Commit a1684120 authored by Manavalan Gajapathy's avatar Manavalan Gajapathy
Browse files

bugfix: mosdepth plot now uses all samples

parent e7f36802
No related branches found
No related tags found
1 merge request!2QC under one umbrella (well mostly) under QuaC
......@@ -78,15 +78,12 @@ rule mosdepth_plot:
message:
"Running mosdepth plotting"
params:
in_dir=lambda wildcards, input: Path(input[0]).parent,
infiles=lambda wildcards: str(OUT_DIR / f"{{{','.join(SAMPLES)}}}" / "qc" / "mosdepth" / "*.mosdepth.global.dist.txt")
shell:
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."
cd {params.in_dir} # if not in directory, mosdepth uses filepath as sample name :(
python {input.script} \
--output {output} \
*.mosdepth.global.dist.txt
{params.infiles}
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment