-
Notifications
You must be signed in to change notification settings - Fork 31
Add annotate_allele_info
function to utils.annotations
#535
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments on the docs and a couple questions: This maintains the nonsplit_alleles=ht.old_alleles
. Is this used downstream? We dropped this in v3.1 release since it could contain alleles belonging to unreleased samples. Also looks like the ac_group_filter is in this PR too so you may want to merge main in?
gnomad/utils/annotations.py
Outdated
- variant_type - Variant type (snv, indel, multi-snv, multi-indel, or mixed). | ||
- n_alt_alleles - Total number of alternate alleles observed at variant locus. | ||
- has_star - True if the variant contains a star allele. | ||
- allele_type - Allele type (snv, insertion, deletion, or mixed). | ||
- was_mixed - True if the variant was mixed (i.e. contained both SNVs and indels). | ||
- nonsplit_alleles - Array of alleles before splitting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps change the second -
to :
?
- variant_type - Variant type (snv, indel, multi-snv, multi-indel, or mixed). | |
- n_alt_alleles - Total number of alternate alleles observed at variant locus. | |
- has_star - True if the variant contains a star allele. | |
- allele_type - Allele type (snv, insertion, deletion, or mixed). | |
- was_mixed - True if the variant was mixed (i.e. contained both SNVs and indels). | |
- nonsplit_alleles - Array of alleles before splitting. | |
- variant_type: Variant type (snv, indel, multi-snv, multi-indel, or mixed). | |
- n_alt_alleles: Total number of alternate alleles observed at variant locus. | |
- has_star: True if the variant contains a star allele. | |
- allele_type: Allele type (snv, insertion, deletion, or mixed). | |
- was_mixed: True if the variant was mixed (i.e. contained both SNVs and indels). | |
- nonsplit_alleles: Array of alleles before splitting. |
Also, I'm not sure these are showing up as intended -- https://broadinstitute.github.io/gnomad_methods/api_reference/utils/annotations.html#gnomad.utils.annotations.annotate_freq
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
53c105d
to
cb20e5b
Compare
Yup, I would like to have it on this annotation HT, but removed from the actual release HT |
Checks should pass after this PR goes in and I merge with main |
… into jg/add_allele_info_function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.