Simon Pearce
03/03/2026, 7:03 AMbwamem2 .
Previously:
stub:
def prefix = task.ext.prefix ?: "${fasta}"
"""
mkdir bwamem2
touch bwamem2/${prefix}.0123
touch bwamem2/${prefix}.ann
touch bwamem2/${prefix}.pac
touch bwamem2/${prefix}.amb
touch bwamem2/${prefix}.bwt.2bit.64
Current suggestion:
stub:
prefix = task.ext.prefix ?: meta.id ? "${meta.id}" : "${fasta.baseName}"
def suffix = task.ext.suffix ?: "${fasta.baseName}"
"""
mkdir ${prefix}
touch ${prefix}/${suffix}.0123
touch ${prefix}/${suffix}.ann
touch ${prefix}/${suffix}.pac
touch ${prefix}/${suffix}.amb
touch ${prefix}/${suffix}.bwt.2bit.64
Basically we want to figure out how to name the two prefixes.Jim Downie
03/03/2026, 7:09 AMindex or something. Keep the prefix in the directory name and give it a name like ${prefix}.bwamem2/, so that if it gets the name of the input fasta you can differentiate itMaxime Garcia
03/03/2026, 8:40 AM.bwamem2 in the folder nameJim Downie
03/03/2026, 10:06 AMMaxime Garcia
03/03/2026, 10:13 AMMaxime Garcia
03/03/2026, 10:13 AM