微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Rust-Bio 生物信息学工具库

程序名称:Rust-Bio

授权协议: MIT

操作系统: 跨平台

开发语言: Rust

Rust-Bio 介绍

Rust-Bio 是一个使用 Rust 实现的生物信息学工具库。Rust-Bio 包括大量的算法和数据结构,对生物信息学非常有帮助。Rust-Bio
通过持续集成进行测试,值得信赖。

当前 Rust-Bio 提供:

  • 大部分主要模式匹配算法

  • 一个方便的字母表实现

  • 两两配对

  • 后缀数组

  • BWT 和 FM-Index

  • q-gram 索引

  • rank/select 数据结构

  • @H_502_36@

    示例:

    // 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 官网

    https://rust-bio.github.io/

    版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐