if ((config["SeOrPe"] == "SE" and not("_PE" in command)) or (config["SeOrPe"] == "PE" and not("_SE" in command))):
if ("SeOrPe" not in config.keys() or (config["SeOrPe"] == "SE" and not("_PE" in command)) or (config["SeOrPe"] == "PE" and not("_SE" in command))):
outputs = OUTPUTS[tool][command]
outputs = OUTPUTS[tool][command]
for files in outputs:
for files in outputs:
name = files["file"] if 'file' in files.keys() else files["directory"]
name = files["file"] if 'file' in files.keys() else files["directory"]
...
@@ -43,7 +43,7 @@ rule prepare_report:
...
@@ -43,7 +43,7 @@ rule prepare_report:
for step in STEPS:
for step in STEPS:
tool = config[step["name"]]
tool = config[step["name"]]
for key, value in config.items():
for key, value in config.items():
if (tool in key and tool != "null") or (key in ["results_dir","sample_dir","sample_suffix","SeOrPe"]) and ((config["SeOrPe"] == "SE" and not("_PE" in command)) or (config["SeOrPe"] == "PE" and not("_SE" in command))):
if (tool in key and tool != "null") or (key in ["results_dir","sample_dir","sample_suffix","SeOrPe"]) and ("SeOrPe" not in config.keys() or (config["SeOrPe"] == "SE" and not("_PE" in command)) or (config["SeOrPe"] == "PE" and not("_SE" in command))):
if (key in PARAMS_INFO.keys() and "label" in PARAMS_INFO[key].keys()):
if (key in PARAMS_INFO.keys() and "label" in PARAMS_INFO[key].keys()):