12 个版本
0.4.0 | 2022年11月21日 |
---|---|
0.3.9 | 2020年11月10日 |
0.3.7 | 2020年10月26日 |
0.3.4 | 2020年7月20日 |
0.2.0 | 2018年10月24日 |
#896 在 科学
28 每月下载量
120KB
3K SLoC
n5gest
用于处理 N5 文件的 CLI 工具。
使用 Rust N5 crate 编写。
$ cargo install n5gest
$ n5gest -h
n5gest = "0.4.0"
Andrew Champion <[email protected]>
Utilities for N5 files.
USAGE:
n5gest [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-t, --threads <threads> Number of threads for parallel processing. By default, the number of CPU
cores is used.
SUBCOMMANDS:
bench-read Benchmark reading an entire dataset.
cast Cast an existing dataset into a new dataset with a given data type.
crop-blocks Crop wrongly sized blocks to match dataset dimensions at the end of a given axis.
delete-uniform-blocks
Delete blocks uniformly filled with a given value, such as empty blocks.
export Export a sequence of image files from a series of z-sections.
help Prints this message or the help of the given subcommand(s)
import Import a sequence of image files as a series of z-sections into a 3D N5 dataset.
import-tiff Import a single file TIFF stack as a series of z-sections into a 3D N5 dataset
ls List all datasets under an N5 root.
map Run simple math expressions mapping values to new datasets. For example, to clip
values in a dataset: `map example.n5 dataset_in example.n5 dataset_out "min(128, x)"`
Note that this converts back and forth to `f64` for the calculation.
map-fold Run simple math expressions as folds over blocks. For example, to find the
maximum value in a positive dataset: `map-fold example.n5 dataset 0 "max(acc, x)"`
recompress Recompress an existing dataset into a new dataset with a given compression.
slice-img Export a 2D subslice of an ND dataset to an image file. For exporting sequences of
images see `export`
stat Retrieve metadata about the number of blocks that exists and their timestamps.
validate-blocks Report malformed blocks.
安装选项
- 使用 cargo 编译和安装:
cargo install n5gest
- 从 最新的 GitHub 发布版 下载预编译的二进制文件
- 使用 cargo-binstall 安装预编译的二进制文件:
cargo binstall n5gest
开发
版本增加(包括变更日志发布部分的版本)由 cargo-release 处理,例如。
cargo release --dev-version minor
许可证
许可协议为以下之一
- Apache 许可协议 2.0,(LICENSE-APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0)
- MIT 许可协议(LICENSE-MIT 或 http://opensource.org/licenses/MIT)
任选其一。
贡献
除非你明确声明,否则任何有意提交给作品并由你包含的贡献,根据 Apache-2.0 许可证定义,应按上述方式双重许可,不附加任何额外条款或条件。
依赖关系
~16–26MB
~340K SLoC