This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error message when runing FreeBayes

Dear all,

I got an error message when I was trying to call variants by using FreeBayes. The error message is:

ERROR(freebayes): could not find SM: in @RG tag @RG ID:Unpaired_reads_assembled_against_24353_tag_g20871 SM:

What does RG tag mean? How can I fix this error?

Thanks, Yunyang

software error snp alignment sequence

Check if Read Group already present in your bam file using samtools view -H |grep "@RG" . If RG is absent using Picard you can add them.

Hi Arup,

Thanks for your reply. This is how my RG looks like:

@RG ID:Unpaired_reads_assembled_against_24353_tag_g20871 SM: @RG ID:Paired_Group_1_assembled_against_24353_tag_g20871 PI:296 SM:

Is there anything wrong?

1 answer

You need to define Read Groups in your bam file.

Log in to answer this question.