Exemplo n.º 1
0
def makeLatexTab(snps):
    libplot.writeDocumentStart(sys.stdout)
    title = ""
    tabHeader(sys.stdout, title)
    tab(sys.stdout, snps)
    captionStr = ""
    label = ""
    tableCloser(sys.stdout, captionStr, label)
    libplot.writeDocumentEnd(sys.stdout)
Exemplo n.º 2
0
def makeLatexTab(stats1, outfile):
    f = open(outfile, 'w')
    libplot.writeDocumentStart(f)
    tabHeader(f)
    tab(f, stats1)
    captionStr = ""
    label = ""
    libplot.tableCloser(f, captionStr, label)
    libplot.writeDocumentEnd(f)
    f.close()
Exemplo n.º 3
0
def drawCompareCoverageTab( options, stats, sample2repeat ):
    prefix = "cmpCoverageTab"
    outfile = os.path.join( options.outdir, "%s%s_%s.tex" %(prefix, stats[0].referenceName, stats[0].otherReferenceName) )
    f = open(outfile, 'w')
    libplot.writeDocumentStart(f)
    tabHeader(f, stats[0].otherReferenceName, stats[0].referenceName)
    tab(f, stats, sample2repeat)
    captionStr = ""
    label = ""
    libplot.tableCloser(f, captionStr, label)
    libplot.writeDocumentEnd(f)
    f.close()
Exemplo n.º 4
0
def makeLatexTab(data, outfile):
    #data{ sample: [numreads, ubases, repeat, snprate, totalsnprate] }
    f = open(outfile, 'w')
    libplot.writeDocumentStart(f)
    #title = "Some title"
    tabHeader(f)
    #tabHeader(f, title)
    tab( f, data )
    captionStr = ""
    label = ""
    libplot.tableCloser(f, captionStr, label)
    libplot.writeDocumentEnd(f)
    f.close()
Exemplo n.º 5
0
def makeLatexTab( outfile, exps, rexps ):
    f = open(outfile, 'w')
    libplot.writeDocumentStart( f )
    title = "Mapping Stats"
    tabheader ( f, title )
    samples = []
    for s in exps:
        if s != 'average':
            samples.append(s)
    samples.sort()
    samples.append('average')

    tab( f, exps, rexps, samples )
    captionStr = "" 
    label = ""
    libplot.tableCloser(f, captionStr, label)
    libplot.writeDocumentEnd( f )
    f.close()