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

string compress #59

Open
jianshu93 opened this issue Aug 29, 2022 · 1 comment
Open

string compress #59

jianshu93 opened this issue Aug 29, 2022 · 1 comment

Comments

@jianshu93
Copy link

Hello needle tail, team,

is that possible to compress AGCT character, because there are at most 5 possibilities (PLUS N) of the string, we need 3 bit to encode the 5 possibilities instead of 1 byte for a character.

Thanks,

Jianshu

@Keats
Copy link
Contributor

Keats commented Aug 29, 2022

https://docs.rs/needletail/0.4.1/needletail/bitkmer/index.html does it but only for ATCG. It's not super hard to handle additional characters but it's unlikely to be added to this crate.

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

2 participants