Exemplo n.º 1
0
def loadExonValidation(infiles, outfile):
    ''' load individual and merged exon validation stats

    For each sample, the exon validation stats are loaded into a table
    named by sample and mapper
    [sample]_[mapper]_overrun

    The merge alignment stats for all samples are merged and loaded
    into single table called exon_validation

    Parameters
    ----------
    infiles : list
       Input filenames with exon validation stats
    outfile : str
       Output filename
    '''

    suffix = ".exon.validation.tsv.gz"

    P.mergeAndLoad(infiles, outfile, suffix=suffix)
    for infile in infiles:
        track = P.snip(infile, suffix)
        o = "%s_overrun.load" % track
        P.load(infile + ".overrun.gz", o)
Exemplo n.º 2
0
def loadExonValidation(infiles, outfile):
    ''' load individual and merged exon validation stats

    For each sample, the exon validation stats are loaded into a table
    named by sample and mapper
    [sample]_[mapper]_overrun

    The merge alignment stats for all samples are merged and loaded
    into single table called exon_validation

    Parameters
    ----------
    infiles : list
       Input filenames with exon validation stats
    outfile : str
       Output filename
    '''

    suffix = ".exon.validation.tsv.gz"

    P.mergeAndLoad(infiles, outfile, suffix=suffix)
    for infile in infiles:
        track = P.snip(infile, suffix)
        o = "%s_overrun.load" % track
        P.load(infile + ".overrun.gz", o)
Exemplo n.º 3
0
def loadCpGCoverage(infiles, outfile):
    '''load cpg coverag data.'''
    P.mergeAndLoad(infiles,
                   outfile,
                   regex="/(.*).prep.cpg_coverage.gz",
                   row_wise=False)
Exemplo n.º 4
0
def loadHypergeometricResultsSummary(infiles, outfile):
    '''load GO summary results.'''
    infiles = glob.glob("hypergeometric.dir/*/*.parameters")
    P.mergeAndLoad(infiles, outfile)
Exemplo n.º 5
0
def loadCpGCoverage(infiles, outfile):
    '''load cpg coverag data.'''
    P.mergeAndLoad(infiles, outfile, regex="/(.*).prep.cpg_coverage.gz",
                   row_wise=False)
Exemplo n.º 6
0
def loadHypergeometricResultsSummary(infiles, outfile):
    '''load GO summary results.'''
    infiles = glob.glob("hypergeometric.dir/*/*.parameters")
    P.mergeAndLoad(infiles, outfile)