def buildFastQCDetails(sampleData):
"""Builds the html to embed the fastQC summary pdf.
HTML for the fastQC pdf tab in /gsuStats/run/<run name> drop downs
Called by sampleAjax.
"""
#create the strings
name_str = '<h1>Sample: %s (%s)</h1>' \
% (sampleData.sampleName, sampleData.sampleReference)
#table_str = '<table class="psteptable">'
fastQCFile = sampleData.fastQCSummary
#embed the pdf
fastQCHTML = "<embed height=\"400\" width=\"100%%\" name=\"plugin\" \
src=\"%s%s\" type=\"application/pdf\">" %(settings.MEDIA_URL, fastQCFile)
#fastQCline = "<a href=\"javascript:void(null);\" onclick=\"pdfPopup();\">Open</a>"
returnString = name_str + fastQCHTML
return(returnString)
评论列表
文章目录