Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

## UCSF NMR file format parser


Crates.io version


docs.rs docs


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.