@transform( copyCapseqReplicatedBedFiles, suffix(".bed"), ".gene.tss.distance" )
def annotateCapseqGeneTSSDistance( infile, outfile ):
    to_cluster = True
    annotation_file = os.path.join( PARAMS["geneset_dir"],PARAMS["geneset_gene_tss"] )
    statement = """cat < %(infile)s 
                   | python %(scriptsdir)s/bed2gff.py --as-gtf 
	                 | python %(scriptsdir)s/gtf2table.py 
		                   --counter=distance-tss 
		                   --log=%(outfile)s.log 
                       --filename-gff=%(annotation_file)s 
                       --filename-format="bed" 
                   > %(outfile)s"""
    P.run()

############################################################
Set the Format locked property.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_proj007.py/annotateCapseqGeneTSSDistance--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/format.py/Format.set_locked