Commit b1a94992 authored by Yoann Dufresne's avatar Yoann Dufresne
Browse files

d2 evaluation scripts

parent 2ca17eb4
......@@ -4,12 +4,27 @@ include: "Snakefile_d2"
WORKDIR = "snake_experiments" if "workdir" not in config else config["workdir"]
N = [5000, 10000]
D = [10]
M = [2, 3]
M = [2,3]
DEV = [0, 1]
rule eval_finalization:
rule generate_compare:
input:
expand(f"{WORKDIR}/simu_0_bar_n{{n}}_d{{d}}_m{{m}}-dev{{dev}}_d2_simplified_maxclq_eval.txt", m=M, d=D, n=N, dev=DEV)
f"{WORKDIR}/eval_compare.tsv"
rule comparable_tsv:
input:
expand(f"{WORKDIR}/simu_0_bar_n{{n}}_d{{d}}_m{{m}}-dev{{dev}}_d2_simplified_maxclq_eval.txt", m=M, d=D, n=N, dev=DEV)
output:
f"{WORKDIR}/eval_compare.tsv"
run:
with open(str(output), "w") as out:
for n in N:
for d in D:
for m in M:
for dev in DEV:
with open(f"{WORKDIR}/simu_0_bar_n{n}_d{d}_m{m}-dev{dev}_d2_simplified_maxclq_eval.txt") as f:
longest_path = f.readlines()[8].strip().split(': ')[-1]
print(f"{n}\t{m}\t{dev}\t{longest_path}", file=out)
rule eval:
input:
......
......@@ -17,7 +17,8 @@ rule generate_barcodes_with_dev:
output:
"{path}/simu{name}_bar_{params}_m{m}-dev{md}.gexf"
wildcard_constraints:
m="[0-9]+"
m="[0-9]+",
md="[0-9]+"
shell:
"python3 deconvolution/main/generate_fake_barcode_graph.py --merging_depth {wildcards.m} --deviation {wildcards.md} --input_graph {input} --output {output}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment