-
Notifications
You must be signed in to change notification settings - Fork 2
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: support IUPAC bases - attempt 2 #54
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,571 @@ | |||
// Copyright 2014-2016 Johannes Köster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled directly from rust-bio so we don't have to have it as a full dependency.
self.len == 0 | ||
} | ||
|
||
/// Calculate the Hamming distance between this and another bitencoded sequence. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new!
} | ||
|
||
#[test] | ||
fn test_hamming() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is new!
Alternative to #53
I found that
bio-seq
was significantly slower than usingbitenc
frombio
when there were A LOT of barcodes that didn't match. Rather than pulling in all of rust-bio, I copiedbitenc
from rust-bio, then added thehamming
method (that's slightly faster than our current method) and associated tests.