@follows( mkdir("intervals") )
@transform( loadMACS, regex(r"macs/with_input/(\S+)_macs.load"), r"intervals/\1.bed" )
def exportIntervalsAsBed( infile, outfile ):
    fc = PARAMS["intervals_min_fc"]
    PIntervals.exportMacsIntervalsAsBed( infile, outfile, fc )

############################################################
Export MACS intervals from database as BED file and filter on fold change
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_proj012_chipseq.py/exportIntervalsAsBed