slow5-rs
A library for interacting with SLOW5/BLOW5 files in the Rust programming language.
For more information check out the main slow5lib repository or the paper.
This repository provides two crates:
slow5lib-sys: Bindings to the C library usingbindgenslow5: Rust API built on-top ofslow5lib-sys
The interface for slow5 is largely stable and now updated primarily to follow new versions slow5lib. If there is additional functionality you'd like to see, please file a Github Issue.
Installation
Add the following to your Cargo.toml:
[]
= "0.12"
Git
If you'd like to download the git version, use the following command to download the repo
Getting started
Reading signal from SLOW5 file
use ;
Writing a compressed BLOW5 file with attributes
use Error;
use ;
More example code
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.
Feature flags
zstd: Enable zstd-based compression- enabled by default
zlib-ng: Enable usage of high performance zlib-ng- adds
cmakedependency
- adds
serde: Enableserdedependency- Mainly for serializing
Recordintoserde-compatible formats
- Mainly for serializing
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
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.