bcftools icon indicating copy to clipboard operation
bcftools copied to clipboard

How is HOB calculated.

Open DarrianTalamantes opened this issue 4 years ago • 2 comments

In the info field of the VCF file after bcftools mpileup and call there is a parameter called HOB "Bias in the number of HOMs number". I was wondering how this is calculated, I am asking this here because I think this parameter is specific to the bcftools program.

Here is what is in the vcf file header. ##INFO=<ID=HOB,Number=1,Type=Float,Description="Bias in the number of HOMs number (smaller is better)">

DarrianTalamantes avatar Jun 09 '20 22:06 DarrianTalamantes

Uh, this is calculated here https://github.com/samtools/bcftools/blob/develop/mcall.c#L578-L584 and should have been removed long time ago. It's a naive metric based on HWE assumption and should be replaced with https://github.com/samtools/bcftools/blob/develop/plugins/fill-tags.c#L500.

pd3 avatar Jun 16 '20 14:06 pd3

Thank you for your response!

On Tue, Jun 16, 2020 at 7:23 AM Petr Danecek [email protected] wrote:

Uh, this is calculated here https://github.com/samtools/bcftools/blob/develop/mcall.c#L578-L584 and should have been removed long time ago. It's a naive metric based on HWE assumption and should be replaced with https://github.com/samtools/bcftools/blob/develop/plugins/fill-tags.c#L500 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/samtools/bcftools/issues/1239#issuecomment-644798387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN22A6V26HDNLIBKVPAKWR3RW556XANCNFSM4NZZ3M2Q .

DarrianTalamantes avatar Jun 16 '20 17:06 DarrianTalamantes