Skip to content

Commit

Permalink
Minor updates to report formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Nov 15, 2013
1 parent be9a575 commit 53047cf
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Utilities/python/create_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def create_summary(first,amosbnk,prefix,ref_asm,utils,img,rund,nLibs,taxa_level,
best.close()
laps = open("%s/Postprocess/out/lap.scores"%(MA_dir), 'r')
validate = markup.page()
validate.init(css="style.css")
validate.init(css="style.css", bodyattrs={'style':"background-color:#FFFFFF;"})
validate.p()
validate.add("<div class=\"datagrid\">")
validate.add("Selected assembler: %s"%(bestAsm))
Expand Down Expand Up @@ -393,15 +393,23 @@ def create_summary(first,amosbnk,prefix,ref_asm,utils,img,rund,nLibs,taxa_level,
quastIn = open("%s/Postprocess/out/quast/~report.html"%(MA_dir), 'r')
quastOut = open("%s/Postprocess/out/quast/report.html"%(MA_dir), 'w')
skip = False
output = False
for line in quastIn.xreadlines():
if not skip:
quastOut.write(line + "\n")
else:
quastOut.write("margin-left: 10px;")
skip = False
quastOut.write(line.strip().replace("<br>", "") + "\n")
elif output:
quastOut.write("margin-left: 50px;\n")
quastOut.write("padding-top: 10px;\n")
quastOut.write("background: #ffffff;\n")
output = False

if ".content" in line:
skip = True
output = True
elif "clear:" in line:
quastOut.write(line.strip() + "\n")
skip = False
output = False
quastIn.close()
quastOut.close()
validate.iframe(id_="quast", src_="%s/Postprocess/out/quast/report.html"%(MA_dir), width="800", height="1000")
Expand Down

0 comments on commit 53047cf

Please sign in to comment.