### Run `noodles` Examples (Bash) Source: https://github.com/zaeleus/noodles/blob/master/README.md These Bash commands illustrate how to execute example applications provided with the `noodles` library. The first command runs a BAM write example, redirecting its output to a `sample.bam` file. The second command runs a BAM header reading example, taking `sample.bam` as input. Examples are run in release mode for performance. ```Bash cargo run --release --example bam_write > sample.bam cargo run --release --example bam_read_header sample.bam ``` -------------------------------- ### Import `noodles::bam` Module (Rust) Source: https://github.com/zaeleus/noodles/blob/master/README.md After adding the `noodles` crate with the `bam` feature enabled, this Rust `use` statement imports the `bam` module. This makes the types and functions related to BAM file handling available for use in the current Rust file. ```Rust use noodles::bam; ``` -------------------------------- ### Add `noodles` Crate with Features (Rust/Cargo) Source: https://github.com/zaeleus/noodles/blob/master/README.md This command demonstrates how to add the `noodles` meta-crate to a Rust project's dependencies using `cargo add`. It specifically enables the `bam` feature, allowing access to BAM file format functionalities within the project. Other format-specific features can be enabled similarly. ```Shell cargo add noodles --features bam ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.