Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
Noodles
https://github.com/zaeleus/noodles
Admin
Bioinformatics I/O libraries in Rust
Tokens:
272
Snippets:
3
Trust Score:
7.3
License:
MIT
Update:
1 year ago
Context
Chat
Benchmark
54
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### 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 ```