INNER CODE UNIT · Python

basic_report

StaPH-B/docker-builds · build-files/cbird-util/2.0/html_report.py:110

def basic_report(samplename, mash, amr, point, version, footer):
    m = mash.copy()
    m['Microorganism'] = m['Microorganism'].apply(lambda x: x.split()[0]+" "+x.split()[1])

    # report
    page_title = samplename
    title = "Whole Genome Sequencing Analysis Report"
    stitle1 = "Sample Information"
    stitle2 = "Predicted Organism"
    stitle3 = "Resistance Genes"
    stitle4 = "Point Mutations"
    today = date.today()
    # HTML #
    html = f'''
    <!DOCTYPE html>
    <html lang="en-us">
        <head>
            <meta charset="UTF-8">

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…