@transform( loadSICER, regex(r"(\S+)/sicer/(\S+).sicer.load"), r"\1/sicer/\2.sicer.bed" )
def exportSicerAsBed( infile, outfile ):

    dbhandle = sqlite3.connect( PARAMS["database"] )
    track = P.snip( os.path.basename(infile), ".sicer.load" ).replace("-","_")

    cc = dbhandle.cursor()
    statement = "SELECT contig, start, stop FROM %s_sicer_intervals ORDER by contig, start" % track
    cc.execute( statement )

    outs = open( outfile, "w")
    for result in cc:
        contig, start, stop = result
        outs.write( "%s\t%i\t%i\n" % (contig, start, stop) )
    cc.close()
    outs.close()

############################################################
############################################################
############################################################
## Run Zinba to call peaks
:param root: The root directory for this corpus.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/zinba.py/exportSicerAsBed--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/comparative_sents.py/ComparativeSentencesCorpusReader.__init__