Rust-Bio 介绍
Rust-Bio 是一个使用 Rust 实现的生物信息学工具库。Rust-Bio 包括大量的算法和数据结构,对生物信息学非常有帮助。Rust-Bio
通过持续集成进行测试,值得信赖。
当前 Rust-Bio 提供:
// Import some modules use bio::alphabets; use bio::data_structures::suffix_array::suffix_array; use bio::data_structures::bwt::bwt; use bio::data_structures::fmindex::FMIndex; use bio::io::fastq; // Create an FM-Index for a given text. let alphabet = alphabets::dna::iupac_alphabet(); let pos = suffix_array(text); let bwt = bwt(text, &pos); let fmindex = FMIndex::new(&bwt, 3, &alphabet); // Iterate over a FASTQ file, use the alphabet to validate read // sequences and search for exact matches in the FM-Index. let reader = fastq::Reader::from_file("reads.fastq"); for record in reader.records() { let seq = record.seq(); if alphabet.is_word(seq) { let interval = fmindex.backward_search(seq.iter()); let positions = interval.occ(&pos); } }
Rust-Bio 官网
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。