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)
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()
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()
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()
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()