views.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:AlmostSignificant 作者: bartongroup 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号