46 breaking releases

new 0.47.0 Jun 6, 2024
0.45.0 May 16, 2024
0.39.0 Mar 28, 2024
0.32.0 Dec 14, 2023
0.3.1 Nov 29, 2022

#2280 in Parser implementations

Download history 328/week @ 2024-02-12 128/week @ 2024-02-19 66/week @ 2024-02-26 107/week @ 2024-03-04 156/week @ 2024-03-11 4/week @ 2024-03-18 129/week @ 2024-03-25 159/week @ 2024-04-01 128/week @ 2024-04-08 8/week @ 2024-04-15 127/week @ 2024-04-22 171/week @ 2024-04-29 122/week @ 2024-05-06 144/week @ 2024-05-13 43/week @ 2024-05-20 150/week @ 2024-05-27

465 downloads per month
Used in 3 crates

MIT license

19K SLoC


crates.io Docs.rs CI status

noodles attempts to provide specification-compliant (when applicable) implementations of libraries for handling various bioinformatics file formats. It currently supports BAM 1.6, BCF 2.2, BED, BGZF, CRAM 3.0/3.1, CSI, FASTA, FASTQ, GFF3, GTF 2.2, htsget 1.3, refget 2.0, SAM 1.6, tabix, and VCF 4.3/4.4.


noodles is published on crates.io. Early versions can be used in projects, but keep in mind that the API is still considered experimental.

noodles is split into multiple crates by file format. For convenience, a top-level meta crate named noodles can be added to your project's dependency list; and formats, listed as features. For example, to work with the BAM format, add the noodles crate and enable the bam feature.

cargo add noodles --features bam

Each enabled feature can then be imported by its re-exported name, e.g.,

use noodles::bam;

Feature flags

Individual crates may have optional features that can be enabled using feature flags.

  • async: Enables asynchronous I/O with Tokio. (BAM, BCF, BGZF, CRAM, CSI, FASTA, FASTQ, GFF, SAM, tabix, and VCF)
  • libdeflate: Use libdeflate to encode and decode DEFLATE streams. (BGZF and CRAM)


Each crate may have its own examples directory, and all examples are runnable as an application. After cloning the repository, run cargo run --release --example for a list of available examples. Use the example name as the option argument and append program arguments to the command, e.g.,

cargo run --release --example bam_write > sample.bam
cargo run --release --example bam_read_header sample.bam


noodles-util are utilities for working with noodles.


~22K SLoC