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

    to_cluster = True

    statement = '''gunzip < %(infile)s 
    | %(scriptsdir)s/gff_sort pos 
    | python %(scriptsdir)s/gff2histogram.py 
		--method=values 
		--output-filename-pattern="%(outfile)s.%%s"
		--force 
		--log=%(outfile)s.log 
    > %(outfile)s 
    '''
    P.run()

    statement = '''gunzip 
    < %(infile)s 
    | %(scriptsdir)s/gff_sort gene-pos 
    | python %(scriptsdir)s/gtf2gtf.py --merge-transcripts 
    | %(scriptsdir)s/gff_sort pos 
    | python %(scriptsdir)s/gff2histogram.py 
		--method=values 
		--force 
		--output-filename-pattern="%(outfile)s_genes.%%s" 
		--log=%(outfile)s.log
    >> %(outfile)s'''
    P.run()

############################################################
Deletes all the elements in the graph.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_kamilah.py/makeSegments--crossover with--dataset/ETHPy150Open espeed/bulbs/bulbs/neo4jserver/graph.py/Graph.clear