Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yoann DUFRESNE
linked reads molecule ordering
Commits
956c8710
Commit
956c8710
authored
May 06, 2020
by
Yoann Dufresne
Browse files
modify Snakefile to allow not compressed output
parent
6a6f0950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Snakefile_d2
View file @
956c8710
import glob
WORKDIR = "snake_exec" if "workdir" not in config else config["workdir"]
INPUT = ["snake_exec/simu_bar_n1000_d5_m2-dev0.gexf"] if "input" not in config else config["input"]
WORKDIR = "snake_experiments" if "workdir" not in config else config["workdir"]
INPUT = ["snake_exec/simu_0_bar_n1000_d10_m2.gexf"] if "input" not in config else config["input"]
COMPRESSED = False if "compressed" not in config else ("True" == config["compressed"] or "true" == config["compressed"])
final_output_suffix = ".tar.gz" if COMPRESSED else "_d2_simplified_maxclq.gexf"
if "," in INPUT:
if INPUT[0] == "[":
INPUT = INPUT[1:-1]
...
...
@@ -9,9 +12,10 @@ if "," in INPUT:
INPUT = INPUT if isinstance(INPUT, list) else [INPUT]
SAMPLE_NAME = [name[name.rfind('/')+1:name.rfind('.')] for name in INPUT]
rule all:
input:
expand(f"{WORKDIR}/{{name}}
.tar.gz
", name=SAMPLE_NAME)
expand(f"{WORKDIR}/{{name}}
{final_output_suffix}
", name=SAMPLE_NAME)
rule compress_data:
input:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment