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: support IUPAC bases - attempt 2 #54

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

nh13
Copy link
Member

@nh13 nh13 commented Feb 10, 2025

Alternative to #53

I found that bio-seq was significantly slower than using bitenc from bio when there were A LOT of barcodes that didn't match. Rather than pulling in all of rust-bio, I copied bitenc from rust-bio, then added the hamming method (that's slightly faster than our current method) and associated tests.

@nh13 nh13 requested a review from tfenne as a code owner February 10, 2025 23:25
@nh13 nh13 mentioned this pull request Feb 10, 2025
@@ -0,0 +1,571 @@
// Copyright 2014-2016 Johannes Köster.
Copy link
Member Author

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.
Copy link
Member Author

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() {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is new!

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