-
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 #53
Conversation
@@ -6,7 +6,7 @@ authors = [ | |||
] | |||
name = "fqtk" | |||
version = "0.3.2-rc.1" | |||
edition = "2021" | |||
edition = "2024" |
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.
Soon! 2025-02-20 https://doc.rust-lang.org/edition-guide/rust-2024/index.html
@@ -1,3 +1,3 @@ | |||
[toolchain] | |||
channel = "1.65.0" | |||
channel = "nightly" |
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.
FIXME
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.
I'm 👍 on functionality. But I think one of @theJasonFan or @jdidion should review too.
src/lib/barcode_matching.rs
Outdated
// Note: this allows IUPAC fuzzy matching with IUPAC bases in the expected barcodes, but not in the observed barcodes. | ||
if expected_base & observed_base != observed_base { |
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.
Technically I think this will allow IUPAC in the observed ... so long as it's at least as specific at the expected, right? For example, if both are N
then it will pass. But if expected is R
and observed is N
it will fail?
Did some benchmarking on some data I had lying around. No timing differences across 100M reads across 24 samples. |
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.
Much cleaner!
Waiting for rust v1.85 to go out on 2025-02-20. |
Closing in favor of #54 |
Closes #52
This is much slower when we have a lot unmatched reads, so this needs to be investigated before we merge.