Skip to content

Benb/add key to pipeline #1086

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

Merged
merged 4 commits into from
Apr 22, 2025
Merged

Benb/add key to pipeline #1086

merged 4 commits into from
Apr 22, 2025

Conversation

bpblanken
Copy link
Collaborator

@bpblanken bpblanken commented Apr 22, 2025

@bpblanken bpblanken marked this pull request as ready for review April 22, 2025 15:59
@bpblanken bpblanken requested a review from a team as a code owner April 22, 2025 15:59
# Add serial integer index
new_variants_ht = new_variants_ht.add_index(name='key_')
new_variants_ht = new_variants_ht.transmute(
key_=new_variants_ht.key_ + annotations_ht.index_globals().max_key_ + 1,
Copy link
Collaborator Author

@bpblanken bpblanken Apr 22, 2025

Choose a reason for hiding this comment

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

Idea here is to use a serially increasing counter to ensure that the assigned keys are always new. Though we might not support deleting variants in the future, we currently do have flows that will result in variants being removed!

@bpblanken bpblanken merged commit bec9d16 into main Apr 22, 2025
3 checks passed
@bpblanken bpblanken deleted the benb/add_key_to_pipeline branch April 22, 2025 21:34
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