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

densify_sites update #279

Merged
merged 5 commits into from
Jan 11, 2021
Merged

densify_sites update #279

merged 5 commits into from
Jan 11, 2021

Conversation

ch-kr
Copy link
Contributor

@ch-kr ch-kr commented Jan 11, 2021

Sparse MTs were previously only keyed by locus by default. They are now keyed by locus and alleles by default

@ch-kr ch-kr requested a review from jkgoodrich January 11, 2021 17:41
Copy link
Contributor

@jkgoodrich jkgoodrich left a comment

Choose a reason for hiding this comment

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

Should we make it an option with default False incase using an older MT?

@ch-kr ch-kr requested a review from jkgoodrich January 11, 2021 17:44
Copy link
Contributor

@jkgoodrich jkgoodrich left a comment

Choose a reason for hiding this comment

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

Will both now be keyed by locus and alleles? will this always work?
last_END_positions_ht[sites_ht.key].last_END_position
what if sites_ht has different alleles but you still want to keep the locus?

@ch-kr
Copy link
Contributor Author

ch-kr commented Jan 11, 2021

that's a good point. what if I change compute_last_ref_block_end instead to always key by locus?

@jkgoodrich
Copy link
Contributor

Yeah both would need to be re_keyed by locus, so I think that will work

@ch-kr ch-kr requested a review from jkgoodrich January 11, 2021 17:58
Copy link
Contributor

@jkgoodrich jkgoodrich 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 2577ef4 into master Jan 11, 2021
@jkgoodrich jkgoodrich deleted the densify_sites branch January 11, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants