#mass-spectrometry #proteomics #biology

no-std numpress

A pure rust implementation of ms-numpress, a fast, minimally lossy compression algorithm for mass spectrometry data

11 stable releases

Uses old Rust 2015

1.1.0 Nov 20, 2018
1.0.10 Nov 20, 2018
1.0.7 Oct 31, 2018

#303 in Compression


Used in 2 crates

BSD-3-Clause-Clear/Apache-2.0

25KB
531 lines

numpress

Build Status Latest Version

A pure rust implementation of ms-numpress, a fast, minimally lossy compression algorithm for mass spectrometry data.

Getting Started

// Compress floats to bytes
let floats: Vec<f64> = vec![100., 101., 102., 103.];
let compressed: Vec<u8> = numpress_compress(&decoded, DEFAULT_SCALING)?;

// Decompress floats from bytes.
let decompressed: Vec<f64> = numpress_decompress(&compressed)?;

Documentation

Numpress 的文档可以在 docs.rs 上找到。

Dependency

Numpress 可在 crates.io 上找到。在 Cargo.toml 中使用以下内容:

[dependencies]
numpress = "1.0"

License

与原始的 ms-numpress 实现一样,此代码是开源的。它同时受 Apache 2.0 许可证和 3 条款 BSD 许可证的约束。有关许可证的详细信息,请参阅 LICENCE-BSD 和 LICENCE-APACHE 文件。

Contributing

除非你明确声明,否则你提交给 numpress 的任何贡献都将按照 Apache-2.0 许可证的条款进行双重许可,而不附加任何额外的条款或条件。

No runtime deps