This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to add @RG tags in vcf file?

Dear all,

I want to run POPBAM tool on my pooled-seq data to compute Fay and wu's statistics. This tool requires vcf with @RG tags in its header. I have already present vcf file without these tags. Now I am finding a way to add @RG tags directly in the vcf rather than in BAM file. Kindly guide me, is it possible to add it and from which tool? Any help would be highly appreciated.

Thanks in advance

vcf h_statistics popbam

1 answer

there is no such tag @RG in the VCF files. @RG tags are for the bam file. Once the RG group( containing the sample name) is specified in the BAM file, the variant caller will use the BAM metadata to infer the sample name(s) in the VCF

Log in to answer this question.