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 agg_by_strata, which is a generalized version of the compute_freq_by_strata #659

Merged
merged 9 commits into from
Jan 17, 2024

Conversation

jkgoodrich
Copy link
Contributor

@jkgoodrich jkgoodrich commented Jan 9, 2024

Also,

Modify compute_freq_by_strata to use agg_by_strata

@jkgoodrich jkgoodrich changed the title Extract strata aggregation into it's own function agg_by_strata and use in compute_freq_by_strata Add function agg_by_strata, which is a generalized version of the compute_freq_by_strata. Jan 16, 2024
@jkgoodrich jkgoodrich changed the title Add function agg_by_strata, which is a generalized version of the compute_freq_by_strata. Add function agg_by_strata, which is a generalized version of the compute_freq_by_strata Jan 16, 2024
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.

One last thing that confused me at first -- the adj_group annotation originally made me think of a single adj group, the gnomAD adj group, index 0. I understand it is the group of groups with adj but changing this variable to adj_groups is a bit more intuitive since we are referencing the groups that are adj. Then LGTM!

gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
gnomad/utils/annotations.py Outdated Show resolved Hide resolved
@jkgoodrich jkgoodrich merged commit f0f2ffa into main Jan 17, 2024
3 checks passed
@jkgoodrich jkgoodrich deleted the jg/agg_by_strata branch January 17, 2024 17:51
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