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

Support lowercase bases? #9

Open
luizirber opened this issue Jun 16, 2021 · 1 comment
Open

Support lowercase bases? #9

luizirber opened this issue Jun 16, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@luizirber
Copy link
Owner

luizirber commented Jun 16, 2021

This error in rust-mdbg is triggered because lowercase bases are passed to nthash. Possible solutions:

  1. users of the crate need to provide uppercase (non-repeat masked) nucleotides. This will probably trigger another allocation, so potentially slower.
  2. accept lowercase bases in nthash. One solution is modifying H_LOOKUP and RC_LOOKUP to also have the lowercase variants.
    • should this also have some sort of "strict mode" that doesn't accept lowercase bases, declared in the constructor?
@luizirber luizirber added the enhancement New feature or request label Jun 16, 2021
@RagnarGrootKoerkamp
Copy link
Contributor

Similarly, it may be nice to accept [0,1,2,3] values for convenience as well, for when data is already packed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants