Skip to content

Commit

Permalink
set motif_db parameters by default to empty string, so the ChIP_seq w…
Browse files Browse the repository at this point in the history
…orkflow doesnt fail when not using peak-motifs
  • Loading branch information
rioualen committed Jul 3, 2017
1 parent da7bb55 commit 5ea6ec7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/snakefiles/rules/peak_motifs.rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ if not "qsub" in config.keys():
if not "peak-motifs" in config.keys():
config["peak-motifs"] = {}

#if not "motif_db" in config["peak-motifs"].keys():
# sys.exit("The parameter peak-motif:motif_db must be defined in the config file")

if not "motif_db" in config["peak-motifs"].keys():
sys.exit("The parameter peak-motif:motif_db must be defined in the config file")
config["peak-motifs"]["motif_db"] = ""

if not "tasks" in config["peak-motifs"].keys():
config["peak-motifs"]["tasks"] = "all"
Expand Down

0 comments on commit 5ea6ec7

Please sign in to comment.