Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function get_chr_x_hom_alt_cutoffs, add arguments to infer_sex_karyotype and get_sex_expr to use the new function and it's output. #492

Merged
merged 8 commits into from
Oct 12, 2022

Conversation

jkgoodrich
Copy link
Contributor

Function get_chr_x_hom_alt_cutoffs gets cutoffs for the fraction homozygous alternate genotypes on chromosome X in 'XY' and 'XX' samples.
Changes to infer_sex_karyotype and get_sex_expr are to use this new function to determine cutoffs for the fraction of homozygous alternate genotypes (hom-alt/(hom-alt + het)) on chromosome X for for 'XX' and 'XY' karyotypes and then use them to determine final sex karyotypes.

gnomad/sample_qc/sex.py Outdated Show resolved Hide resolved
gnomad/sample_qc/pipeline.py Outdated Show resolved Hide resolved
gnomad/sample_qc/sex.py Outdated Show resolved Hide resolved
gnomad/sample_qc/pipeline.py Show resolved Hide resolved
gnomad/sample_qc/pipeline.py Outdated Show resolved Hide resolved
jkgoodrich and others added 3 commits October 11, 2022 14:54
Co-authored-by: klaricch <kristen@broadinstitute.org>
@jkgoodrich jkgoodrich requested a review from klaricch October 11, 2022 21:50
Copy link
Contributor

@klaricch klaricch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@jkgoodrich jkgoodrich merged commit 1194013 into main Oct 12, 2022
@jkgoodrich jkgoodrich deleted the jg/sex_imputation_runtime_changes branch October 12, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants