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

[Feature]: Add checker for contradicting Variations and Haplotypes #41

Open
MillironX opened this issue Mar 29, 2023 · 0 comments
Open

Comments

@MillironX
Copy link
Member

Expected behavior

Add function

contradicts(v::Variation{S,T}, h::Haplotype{S,T}) where {S,T}

which checks if a new Haplotype constructed from the Variations of h and v would be valid.

Current behavior

In order to perform this now, one would need to use the private ::Unsafe type to construct a temporary Haplotype and check that for validity.

Possible implementation

Do what I just said above.

Context

My projects currently use the ::Unsafe type to check for Variations that might indicate different alleles of a SNP. This is extremely dangerous, and I want to push this type of code into the package itself.

Link to your project

No response

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

No branches or pull requests

1 participant