Closed effidotpy closed 8 months ago
I solve this by adding the read group in the first process/step ADD_READGROUP
with:
samtools addreplacerg -r '@RG\tID:${meta.sample_id}_${meta.source}\tSM:${meta.sample_id}_${meta.source}' ${bam_file} -o readgroup.bam
When running Mutect2 with my development BAMs, where I removed the @RG information, I get following error:
According to this biostars post HaplotypeCaller (so I assume Mutect2 as well) needs Read Group in the BAM file.