@transform(fastq_files, regex('(.+\/)?(.+?)\.fastq\.gz'), 
        [fastqc_dir % r'%s/\2_fastqc', r'%s/\2.fastqc.Success' % fastqc_dir])
def fastqc(inputs, outputs):
    """
    Run FastQC on each fastq file.
    """
    sequence = inputs
    fastqc_dest, flagFile = outputs
    runStageCheck('fastqc', flagFile, fastqc_dir, sequence)
dataset/ETHPy150Open vlsci/variant_calling_pipeline/pipeline.py/fastqc/swapped operands of `%`