Many thanks for your help. Sorry for bothering again and again. But I am encountering another problem related to popbam tool. Now opening another question.
Dear all,
I want to add the PO tag in my BAM file that is required by popbam tool which I am going to use to compute Fay's and Wu's statistics. Kindly guide me how can I add that tag? I saw the AddOrReplaceReadGroups feature of Picard tool but there was no as such option to add that tag. Any help in this regard would be highly appreciated.
Thanks in advance
1 answer
https://github.com/BioinformaticsArchive/POPBAM/blob/master/popbam.1#L13
Popbam requires the inclusion of the
PO' tag in the read group header line, which identifies the population from which a particular sample originates. Once thePO' tag is included, popbam can do statistical analyses of nucleotide variation both within and between populations.
it's the very same answer than for your previous question: How to add @RG tags in vcf file? , have a look at : https://gatk.broadinstitute.org/hc/en-us/articles/360035890671-Read-groups , Read Group In Sam/Bam Files: What Do They Exactly Describe? , etc...
Log in to answer this question.