A library for interacting with SLOW5/BLOW5 files in rust. Not official.
For more information checkout the main slow5lib repository.
Note: Library design is in flux and care should be taken in upgrading this crate.
Add the following to your Cargo.toml
:
toml
[dependencies]
slow5 = "0.11"
If you'd like to download the git version, use the following command to download the repo
bash
git clone --recursive https://github.com/bsaintjo/slow5-rs.git
```rust use slow5::{FileReader, RecordExt};
fn main() -> Result<(), Box
```rust use std::error::Error; use slow5::{FileWriter, SignalCompression, Record};
fn main() -> Result<(), Box
For more example code, see the test code. Several examples from the original library have been ported to rust and can be found in the examples directory.
zstd
: Enable zstd-based compression (enabled by default)zlib-ng
: Enable usage of high performance zlib-ng, adds cmake
dependencyserde
: Enable serde
dependency (mainly for serializing Record
)Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.