Пример #1
0
    def matchBackgroundForCpGComposition(infiles, outfile):
        '''
        take the background set and subset it for intervals with
        a CpG distribution that is the same as the foreground set
        - this requires that the background set is sufficiently
        large
        '''
        track = re.match(
            "GC_content.dir/(.+)\.(?:background|foreground)\.gc\.load", infiles[0]).groups()[0]
        input_background = "%s.background.tsv" % track
        input_foreground = "%s.foreground.tsv" % track

        PipelineTransfacMatch.matchBackgroundForCpGComposition(
            infiles, input_background, input_foreground, PARAMS["database"], outfile)
Пример #2
0
    def matchBackgroundForCpGComposition(infiles, outfile):
        '''
        take the background set and subset it for intervals with
        a CpG distribution that is the same as the foreground set
        - this requires that the background set is sufficiently
        large
        '''
        track = re.match(
            "GC_content.dir/(.+)\.(?:background|foreground)\.gc\.load",
            infiles[0]).groups()[0]
        input_background = "%s.background.tsv" % track
        input_foreground = "%s.foreground.tsv" % track

        PipelineTransfacMatch.matchBackgroundForCpGComposition(
            infiles, input_background, input_foreground, PARAMS["database"],
            outfile)