@follows('indexMergedBams')
@transform(mergeBams, suffix('.bam'), 
            ['.dedup.bam', '.bam.dedup.Success'])
def dedup(inputs, outputs):
    """
    Remove apparent duplicates from merged bams using Picard MarkDuplicates.
    """
    input_bam, _success = inputs
    output_bam, flag_file = outputs
    logFile = mkLogFile(logDir, input_bam, '.dedup.log')
    print os.path.basename(input_bam) % "de-duping %s"
    runStageCheck('dedup', flag_file, input_bam, logFile, output_bam)
dataset/ETHPy150Open vlsci/variant_calling_pipeline/pipeline.py/dedup/swapped operands of `%`