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 densify_all_reference_sites to perform a densify at all sites in a reference HT #661

Merged
merged 6 commits into from
Jan 19, 2024

Conversation

jkgoodrich
Copy link
Contributor

Base automatically changed from jg/clean_up_coverage_code to main January 17, 2024 22:20
… into jg/generalize_densify_at_all_ref_sites

# Conflicts:
#	gnomad/utils/sparse_mt.py
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.

Two tiny suggestions and one question but then this LGTM!

gnomad/utils/sparse_mt.py Outdated Show resolved Hide resolved
mt = mtds.variant_data
else:
mt = mtds
entry_keep_fields.add("END")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I know the use keep for keeping END here? Is it if you passed the vds.reference_data to this function with adding "END" to the entry_keep_fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This supports a sparse MT, the END is in the reference_data of the VDS which we handle differently below, but in the sparse MT it's all in one so we need to make sure we keep it when when we localize entries

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