Dear all, Before I only one sample in my analysis, but when I merge the bam file from different lane, I used the different RG. Just like the following:
@RG ID:Ptrem PL:ILLUMINA LB:Ptrem SM:Ptrem
@RG ID:PtPE14c PL:ILLUMINA LB:PtPE14c SM:PtPE14c
@RG ID:PtPE14d PL:ILLUMINA LB:PtPE14d SM:PtPE14d
@RG ID:PtPE15 PL:ILLUMINA LB:PtPE15 SM:PtPE15
@RG ID:PtPE16 PL:ILLUMINA LB:PtPE16 SM:PtPE16
@RG ID:PtPE1a PL:ILLUMINA LB:PtPE1a SM:PtPE1a
@RG ID:PtPE1a1 PL:ILLUMINA LB:PtPE1a1 SM:PtPE1a1
@RG ID:PtPE1a2 PL:ILLUMINA LB:PtPE1a2 SM:PtPE1a2
Now, I want to delete some RG from the BAM file. How could I do that? I just want to have onely one RG in the right BAM file.
Hmm well just as the error message says, it seems there is a read with a read group ID that is not in your header. Maybe you can add VALIDATION_STRINGENCY=LENIENT (or even VALIDATION_STRINGENCY=SILENT) to your command to ignore the error and continue to replace the read group info