Crates.io | groslicer |
lib.rs | groslicer |
version | 0.1.2 |
source | src |
created_at | 2024-07-21 14:27:02.069783 |
updated_at | 2024-07-21 14:27:02.069783 |
description | Slice gro files by processing a stream of lines |
homepage | |
repository | https://git.sr.ht/~ma3ke/groslicer |
max_upload_size | |
id | 1310366 |
size | 16,889 |
A small, simple utility to slice gro files according to a set of minimum and maximum x, y, z coordinates. The lines of the input structure file are processed line-by-line. If a position is within the provided range, the line is written verbatim to the output structure file. This means that a very large structure can be sliced efficiently and with very low runtime memory requirements, since the structure is never loaded into memory as a whole.
The eigthyseven library is used for processing the gro atom lines.
cargo install --git 'https://git.sr.ht/~ma3ke/groslicer'
Or, build it from source.
git clone https://git.sr.ht/~ma3ke/groslicer
cd groslicer
cargo install --path .
Slice a structure.
Provide slice dimensions in nanometers.
Usage: groslicer [OPTIONS] <INPUT> <OUTPUT>
Arguments:
<INPUT>
Structure input path (gro)
<OUTPUT>
Structure output path (gro)
Options:
--minx <MINX>
--maxx <MAXX>
--miny <MINY>
--maxy <MAXY>
--minz <MINZ>
--maxz <MAXZ>
-h, --help
Print help (see a summary with '-h')
Marieke Westendorp, 2024