Skip to content
Snippets Groups Projects
Commit 9df850a2 authored by Valentina Galata's avatar Valentina Galata
Browse files

mash: rm contig-screen analysis, fixed a bug (not all assemblies included in assembly sketch)

parent ffdcc3aa
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ rule analysis_mash_sketch_sr: ...@@ -188,7 +188,7 @@ rule analysis_mash_sketch_sr:
conda: conda:
os.path.join(ENV_DIR, "mash.yaml") os.path.join(ENV_DIR, "mash.yaml")
shell: shell:
"(date && ofile={output} && mash sketch -r -m 2 -k 31 -s 10000 -S 42 -o ${{ofile%.*}} {input} && date) &> {log}" "(date && ofile={output} && mash sketch -r -m 2 -k 31 -s 100000 -S 42 -o ${{ofile%.*}} {input} && date) &> {log}"
rule analysis_mash_sketch_lr: rule analysis_mash_sketch_lr:
input: input:
...@@ -201,7 +201,7 @@ rule analysis_mash_sketch_lr: ...@@ -201,7 +201,7 @@ rule analysis_mash_sketch_lr:
conda: conda:
os.path.join(ENV_DIR, "mash.yaml") os.path.join(ENV_DIR, "mash.yaml")
shell: shell:
"(date && ofile={output} && mash sketch -r -m 2 -k 31 -s 10000 -S 42 -o ${{ofile%.*}} {input} && date) &> {log}" "(date && ofile={output} && mash sketch -r -m 2 -k 31 -s 100000 -S 42 -o ${{ofile%.*}} {input} && date) &> {log}"
rule analysis_mash_paste_reads: rule analysis_mash_paste_reads:
input: input:
...@@ -241,13 +241,14 @@ rule analysis_mash_sketch_asm: ...@@ -241,13 +241,14 @@ rule analysis_mash_sketch_asm:
conda: conda:
os.path.join(ENV_DIR, "mash.yaml") os.path.join(ENV_DIR, "mash.yaml")
shell: shell:
"(date && ofile={output} && mash sketch -k 31 -s 10000 -S 42 -o ${{ofile%.*}} {input} && date) &> {log}" "(date && ofile={output} && mash sketch -k 31 -s 100000 -S 42 -o ${{ofile%.*}} {input} && date) &> {log}"
rule analysis_mash_paste_asm: rule analysis_mash_paste_asm:
input: input:
lr=expand(os.path.join(RESULTS_DIR, "assembly/lr/{tool}/ASSEMBLY.FILTERED.msh"), tool=config["assemblers"]["lr"]), expand(
sr=expand(os.path.join(RESULTS_DIR, "assembly/sr/{tool}/ASSEMBLY.FILTERED.msh"), tool=config["assemblers"]["sr"]), os.path.join(RESULTS_DIR, "assembly/{rtype_tool}/ASSEMBLY.FILTERED.msh"),
hy=expand(os.path.join(RESULTS_DIR, "assembly/hy/{tool}/ASSEMBLY.FILTERED.msh"), tool=config["assemblers"]["hy"]) rtype_tool=["%s/%s" % (rtype, tool) for rtype, tool in READ_ASSEMBLERS],
)
output: output:
os.path.join(RESULTS_DIR, "analysis/mash/contigs.msh") os.path.join(RESULTS_DIR, "analysis/mash/contigs.msh")
threads: 1 threads: 1
......
...@@ -30,9 +30,9 @@ rule ANALYSIS: ...@@ -30,9 +30,9 @@ rule ANALYSIS:
os.path.join(RESULTS_DIR, "analysis/mash/{dtype}.dist"), os.path.join(RESULTS_DIR, "analysis/mash/{dtype}.dist"),
dtype=["contigs", "reads"] dtype=["contigs", "reads"]
) if "mash_dist" in config["steps_analysis"] else [], ) if "mash_dist" in config["steps_analysis"] else [],
expand( # expand(
os.path.join(RESULTS_DIR, "analysis/mash/screen.{rtype_tool}.tsv"), # os.path.join(RESULTS_DIR, "analysis/mash/screen.{rtype_tool}.tsv"),
rtype_tool=["%s.%s" % (rtype, tool) for rtype, tool in READ_ASSEMBLERS] # rtype_tool=["%s.%s" % (rtype, tool) for rtype, tool in READ_ASSEMBLERS]
) if "mash_screen" in config["steps_analysis"] else [], # ) if "mash_screen" in config["steps_analysis"] else [],
output: output:
touch("status/analysis.done") touch("status/analysis.done")
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