@follows( exportIntervalsAsBed )
    @files( [ ( ["%s%s.bed" % (x,y) for y in REPLICATES],
                x % "%s.bed", 
                x) for x in TRACKS_EXPERIMENTS ] )
    def combineReplicates( infile, outfile, track ):
        '''combine replicates between experiments.

        The replicates are combined using intersection.
        '''

        replicates = [ "%s%s.bed" % (track, x) for x in REPLICATES  if os.path.exists( "%s%s.bed" % (track, x) ) ]
        PipelineChipseq.intersectBedFiles( replicates, outfile )

    ############################################################
    ############################################################
    ############################################################
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_vitaminD.py/combineReplicates/swapped operands of `%`