Commit dded833a authored by Philippe BORDRON's avatar Philippe BORDRON
Browse files

add rule to rename report-main.html in report.html

parent 3ab721a0
......@@ -8,7 +8,17 @@ rule copyConfig:
cp {input} {output}
"""
rule buildReport:
rule renameMainReport:
input:
report = MAINDIR+"/{project}/report-" + DEFAULT_REPORT_PART + ".html"
output:
report = MAINDIR+"/{project}/report.html"
shell:
"""
mv {input.report} {output.report}
"""
rule buildReportPart:
input:
unpack(getAllFilesForReport)
output:
......
......@@ -106,9 +106,9 @@ def getTargetFiles():
for comps in config["comparisons"][p]["comps"]:
multiparts.add(comps.get("multipart", DEFAULT_REPORT_PART))
if multiparts:
targets.extend([os.path.join(MAINDIR,p,"report-{}.html".format(mp)) for mp in multiparts])
targets.extend([os.path.join(MAINDIR, p, "report-{}.html".format(mp)) if mp != DEFAULT_REPORT_PART else os.path.join(MAINDIR, p, "report.html") for mp in multiparts])
else:
targets.append(os.path.join(MAINDIR,p,"report-{}.html".format(DEFAULT_REPORT_PART)))
targets.append(os.path.join(MAINDIR, p, "report.html"))
targets.append(os.path.join(MAINDIR,p,"INPUT_FILES","samplesheet_used.tsv"))
......
......@@ -78,9 +78,9 @@ def getTargetFiles():
for comps in config["comparisons"][config["analysis_name"]]["comps"]:
multiparts.add(comps.get("multipart", DEFAULT_REPORT_PART))
if multiparts:
targets.extend([os.path.join(MAINDIR,config["analysis_name"],"report-{}.html".format(mp)) for mp in multiparts])
targets.extend([os.path.join(MAINDIR, config["analysis_name"], "report-{}.html".format(mp)) if mp != DEFAULT_REPORT_PART else os.path.join(MAINDIR, config["analysis_name"], "report.html") for mp in multiparts])
else:
targets.append(os.path.join(MAINDIR,config["analysis_name"],"report-{}.html".format(DEFAULT_REPORT_PART)))
targets.append(os.path.join(MAINDIR, config["analysis_name"], "report.html".format(DEFAULT_REPORT_PART)))
return targets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment