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

feat: allow multiallelic variants in transform #232

Merged
merged 8 commits into from
Jan 12, 2024

Conversation

aryarm
Copy link
Member

@aryarm aryarm commented Jan 4, 2024

I'm making this PR for @XimeiWulilyy , who asked recently about whether the transform command could accept multiallelic SNPs. Previously, there was a check in place to restrict it to only biallelic variants, since the GenotypesVCF class could handle only biallelic variants. But then multiallelic support was added to the GenotypesVCF class in #195.

This PR removes the biallelic check in transform, adds some tests, and makes some changes to Haplotype.transform and Haplotypes.transform to allow them to handle Genotypes classes with multiallelic variants in them.

@aryarm aryarm requested a review from mlamkin7 January 4, 2024 04:57
@aryarm
Copy link
Member Author

aryarm commented Jan 4, 2024

@mlamkin7 , can you review this? and just double check that the tests are sufficient?

also, can you recall any other reason we hadn't enabled support for biallelic variants in transform, yet? Is there anything I'm not thinking of?

@aryarm aryarm changed the title feat: allow multiallelic SNPs in transform feat: allow multiallelic variants in transform Jan 4, 2024
@aryarm aryarm merged commit 371415c into main Jan 12, 2024
11 checks passed
@aryarm aryarm deleted the feat/transform-multiallelic branch January 12, 2024 19:56
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