Skip to content

Commit

Permalink
fix: reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
famosab committed Dec 6, 2024
1 parent a6b1e7f commit a88e4e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 73 deletions.
43 changes: 0 additions & 43 deletions workflow/resources/datavzrd/fp-fn-per-benchmark-config.yte.yaml

This file was deleted.

42 changes: 12 additions & 30 deletions workflow/rules/eval.smk
Original file line number Diff line number Diff line change
Expand Up @@ -434,32 +434,6 @@ rule report_fp_fn:


rule report_fp_fn_benchmark:
input:
table="results/fp-fn/benchmarks/{benchmark}.{classification}.tsv",
config=workflow.source_path(
"../resources/datavzrd/fp-fn-per-benchmark-config.yte.yaml"
),
output:
report(
directory("results/report/fp-fn/benchmarks/{benchmark}/{classification}"),
htmlindex="index.html",
category="{classification} variants per benchmark",
labels={
"benchmark": "{benchmark}",
"classification": "{classification}",
},
),
log:
"logs/datavzrd/fp-fn/{benchmark}/{classification}.log",
params:
labels=lambda w: get_callsets_labels(get_benchmark_callsets(w.benchmark)),
version=get_genome_version,
somatic=get_somatic_status,
wrapper:
"v5.0.1/utils/datavzrd"


rule report_fp_fn_callset:
input:
table="results/fp-fn/callsets/{callset}.{classification}.tsv",
config=workflow.source_path(
Expand All @@ -469,13 +443,21 @@ rule report_fp_fn_callset:
report(
directory("results/report/fp-fn/callsets/{callset}/{classification}"),
htmlindex="index.html",
category="{classification} variants per callset",
labels={
"callset": "{callset}",
"classification": "{classification}",
category="{classification} variants per benchmark",
subcategory=lambda w: config["variant-calls"][w.callset]["benchmark"],
labels=lambda w: {
"callset": w.callset,
"benchmark": config["variant-calls"][w.callset]["benchmark"],
"classification": w.classification,
},
),
log:
"logs/datavzrd/fp-fn/{callset}/{classification}.log",
params:
labels=lambda w: get_callsets_labels(
get_benchmark_callsets(config["variant-calls"][w.callset]["benchmark"])
),
version=get_genome_version,
somatic=get_somatic_status,
wrapper:
"v5.0.1/utils/datavzrd"

0 comments on commit a88e4e6

Please sign in to comment.