@transform( TRACKS,
            regex("(.*).gtf.gz"), 
            r"\1.repeats_rates.gz")
def makeRepeatsRates( infile, outfile ):

    to_cluster = True

    statement = '''gunzip 
    < %(infile)s 
    | python %(scriptsdir)s/gtf2table.py 
        --proximal-distance=%(ancestral_repeats_max_distance)i 
        --section=exons 
        --counter=proximity-exclusive
        --filename-format=gff 
        --filename-gff=<(gunzip < %(ancestral_repeats_filename)s )
    | gzip 
    > %(outfile)s'''
    
    P.run()


############################################################
C{unexpectedError} reports an error processing a source file.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_kamilah.py/makeRepeatsRates--crossover with--dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_api.py/TestReporter.test_unexpectedError