Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laura Denies
PathoFact
Commits
c2563441
Commit
c2563441
authored
Apr 21, 2020
by
Valentina Galata
Browse files
added workflow parameter to config.yaml and updated Snakefile (issue
#24
)
parent
e0939b4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Snakefile
View file @
c2563441
#Snakefile
w = 'complete'
if w is 'complete':
if config["workflow"] == "complete":
include:
"workflows/Combine_PathoFact_workflow"
rule all:
...
...
@@ -15,7 +13,7 @@ if w is 'complete':
],
OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
)
elif
w is '
Tox
'
:
elif
config["workflow"] == "
Tox
"
:
include:
"workflows/Toxin_workflow"
rule all:
...
...
@@ -27,7 +25,7 @@ elif w is 'Tox':
],
OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
)
elif
w is '
Vir
'
:
elif
config["workflow"] == "
Vir
"
:
include:
"workflows/Virulence_workflow"
rule all:
...
...
@@ -36,7 +34,7 @@ elif w is 'Vir':
"{OUTDIR}/{project}/Virulence_prediction_{input_file}_report.csv",
OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
)
elif
w is '
AMR
'
:
elif
config["workflow"] == "
AMR
"
:
include:
"workflows/AMR_workflow"
rule all:
...
...
@@ -49,4 +47,4 @@ elif w is 'AMR':
OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
)
else:
raise Exception(
'NO
workflow
selected'
)
raise Exception(
"Unknown
workflow
option: %s" % config["workflow"]
)
config.yaml
View file @
c2563441
...
...
@@ -12,6 +12,13 @@ OUTDIR: /path/to/samples
# Define size of split fasta files (default 10 000 sequences/file)
size_fasta
:
100000
# Workflow (default: "complete")
# complete: complete pipeline: toxin + virulence + (AMR + MGE) prediction
# Tox: toxin prediction
# Vir: virulence prediction
# AMR: antimicrobial resistance (AMR) & mobile genetic element (MGE) prediction
workflow
:
"
complete"
###########
# SignalP #
###########
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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