Transforming diploid GT on male X and Y chromosome to haploid
1
0
Entering edit mode
7 weeks ago
Michaela ▴ 10

Hello,

maybe it is a well known fact, but I cannot find much information anywhere.

I am working on a bunch of gVCF files and struggle with the genotype representation in male X and Y chromosomes, which, to my understanding, is mostly represented as diploid, since the variant callers cannot really tell (except from few exceptions).

My question is, what is the best practice to convert the GT on those chromosomes to its haploid form? I have the information about sex per sample. I work in Hail so they provide a function to impute ploidy on the given chromosome as well.

However, is there already a tool/method which transforms the GT or am I meant to write the logic myself? Transforming the homozygous GT is straight forward, but transforming GT like 1/0 requires a bit more of a thought and I do not want to reinvent the wheel. Have I overlooked something?

Thanks for any advice!

VCF genotype gVCF • 261 views
ADD COMMENT
1
Entering edit mode
1 day ago
Michaela ▴ 10

Hello,

if anyone needed an answer, I found a solution in the Gnomad python package. They provide a function adjust_sex_ploidy() which only takes a hail Matrixtable and a column field with the sex. The logic behind it can be found in their repo to get a better understanding!

ADD COMMENT

Login before adding your answer.

Traffic: 1570 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6