Hi,
I am currently using the pbsv workflow to conduct some structural variants calling on some of my PabBio ccs bam files. However, there is a ccs bam file that failed the pbsv discover step and the error for this failure is that there is a mismatch between the RGID in the header and the RGID in the reads.
The RGID in the header of the file is:
@RG ID:e07811e5
And the RGID in the reads is:
RG:Z:e07811e5/6--6
So I suppose that in order to fix this RGID mismatch issue, I just need to change the RGID in the header from e07811e5
to e07811e5/6--6
. I tried to use the samtools addreplacerg
function to perform this replacement but I am confused about what options of the function I need to use. Please help me with this issue. Thank you very much.
It looks like the data was demultiplexed but the RGID wasn't updated. Could you please describe how this BAM was generated? Analysis steps, version numbers, etc. If there's an error in the demux process, it would be useful to know and report so that we could fix the problem.