Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hobofan/ucsf-nmr
Rust parser for the UCSF NMR file format
https://github.com/hobofan/ucsf-nmr
Last synced: 22 days ago
JSON representation
Rust parser for the UCSF NMR file format
- Host: GitHub
- URL: https://github.com/hobofan/ucsf-nmr
- Owner: hobofan
- License: other
- Created: 2020-04-23T13:07:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T20:28:56.000Z (over 4 years ago)
- Last Synced: 2024-09-16T18:57:50.896Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 1.74 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
## UCSF NMR file format parser
This project provides a parser for the UCSF NMR file format written in Rust. It explicitly supports 2D/3D/4D measurements, but should in theory support any number of dimensions.
The implemenation follows the description of the format outlined at
.## Installation
Via [cargo-edit](https://github.com/killercup/cargo-edit):
```
cargo add ucsf_nmr
```## Usage examples
The example under [./examples/tile_plots.rs](./examples/tile_plots.rs) shows how to load a spectrum,
iterate over all the data points in it and draw a simple greyscale image from it with the help of [plotters](https://crates.io/crates/plotters):![Image of NMR spectrum](./examples/output/all_tiles.png)
#### License
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.