@transform( dedup, 
            regex(r"(\S+).dedup.bam"),
            r"\1.readstats" )
def buildBAMStats( infile, outfile ):
    to_cluster = USECLUSTER
    scriptsdir = PARAMS["general_scriptsdir"]
    statement = '''python %(scriptsdir)s/bam2stats.py --force 
                   --output-filename-pattern=%(outfile)s.%%s < %(infile)s > %(outfile)s'''
    P.run()

#########################################################################
Return compute node stats totals from all cells.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/mapping_titration.py/buildBAMStats--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/manager.py/CellsManager.compute_node_stats