jeff-k / bio-seq Goto Github PK
View Code? Open in Web Editor NEWBit packed and well-typed biological sequences
License: MIT License
Bit packed and well-typed biological sequences
License: MIT License
Hello Jeff,
It's really nice that you have this bit by bit encoding of sequences for DNA. You said on todo list that amino acid support will also be available. I think we need at least 8 bit right instead of 2 or 4 for AGCT, and IUAC dna (16) because there are 20 amino acid and more for IUAC rules. I am doing amino acid kmer counting for a huge database of bacterial genomes in amino acid format and I cannot find any bit by bit encoding and decoding of amino acid sequences except this one. Will amino acid kmer available soon? I will be very happy to work on this with you or whatever. email is: [email protected]
Many thanks,
Jianshu
The "use" statements seem to work differently for four-letter DNA and IUPAC, see the following two examples. I don't understand why the "use" statement patter differs. Is there something I've misunderstood?
For DNA:
use bio_seq::*;
use bio_seq::codec::Dna;
fn main() {
let input_string = "AAAA";
let dna_seq = Seq::<Dna>::from_str(input_string).unwrap();
println!("dna_seq: {}", dna_seq);
}
For IUPAC:
use bio_seq::*;
use bio_seq::codec::iupac::Iupac;
fn main() {
let input_string = "AAAA";
let iupac_seq = Seq::<Iupac>::from_str(input_string).unwrap();
println!("iupac_seq: {}", iupac_seq);
}
Note the difference in particular between:
use bio_seq::codec::Dna;
and
use bio_seq::codec::iupac::Iupac;
I've been looking all over for a Rust library that supports multiple genetic codes. This library seems to be the best translation library, so I hope this is on your radar. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.