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 compute_stats_per_ref_site to generalize computation of aggregate stats at all sites in a reference Table #662

Merged
merged 20 commits into from
Jan 19, 2024

Conversation

jkgoodrich
Copy link
Contributor

Also add a helper function compute_allele_number_per_ref_site to use compute_stats_per_ref_site to compute AN

Base automatically changed from jg/generalize_densify_at_all_ref_sites to main January 19, 2024 18:18
… into jg/generalize_stat_compute_at_all_ref_sites
Copy link
Contributor

@mike-w-wilson mike-w-wilson left a comment

Choose a reason for hiding this comment

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

This looks good. Sorry it took awhile, it's dense. I only have one thing with a value error, everything else is small comments or nitpicks with style. I tested this AN against the compute_freq_by_strata on the test VDS.

gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/sparse_mt.py Outdated Show resolved Hide resolved
gnomad/utils/sparse_mt.py Show resolved Hide resolved
gnomad/utils/sparse_mt.py Outdated Show resolved Hide resolved
gnomad/utils/sparse_mt.py Outdated Show resolved Hide resolved
gnomad/utils/sparse_mt.py Outdated Show resolved Hide resolved
gnomad/utils/sparse_mt.py Show resolved Hide resolved
gnomad/utils/sparse_mt.py Show resolved Hide resolved
Copy link
Contributor

@mike-w-wilson mike-w-wilson left a comment

Choose a reason for hiding this comment

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

Ok one tiny thing on the GT logic now but other than that this looks good!

gnomad/utils/sparse_mt.py Show resolved Hide resolved
gnomad/utils/sparse_mt.py Outdated Show resolved Hide resolved
@jkgoodrich jkgoodrich merged commit c310157 into main Jan 19, 2024
3 checks passed
@jkgoodrich jkgoodrich deleted the jg/generalize_stat_compute_at_all_ref_sites branch January 19, 2024 21:39
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