https://github.com/cheminfo/nmr-parser
read and convert any NMR file
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 4 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
3 of 9 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
read and convert any NMR file
Basic Info
Statistics
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 2
- Releases: 0
Topics
Metadata Files
README.md
nmr-parser
This package has born from the necessity to find a common data structure for NMR spectra (1D and 2D) originally stored in different formats as an entry point for processing pipelines. Reading and parsing data in original format represents an important work load for open source projects that usually seek to propose improved data analysis pipelines. This package aims at reading any NMR format and create a JSON object that is human readable, with a scientifically meaningful structure and variable names, strongly inspired by the work by Grandinetti and coworkers, but with a few liberties. For instance, camelCase variable naming has been preferred over the one proposed in the original work.
supported input formats
- JCAMP-DX (may include several spectra)
- Bruker data folder (as a zip file)
- JEOL data format (.jdf)
data formats under development
What this package isn't?
- This package is not promoting a new format
- This package is not a JavaScript implementation of CSDM
- This data structure in not intended for storage
- This package is not intended to be a converter between formats
Installation
$ npm i nmr-parser
Usage
JCAMP
```js // import JCAMP parser import { fromJCAMP } from 'nmr-parser';
// import test data import { getData: getJcampData } from 'jcamp-data-test';
let data = fromJCAMP(await getJcampData('aspirin-1h.fid.dx')); ```
Bruker
```js // import Bruker parser import { fromBruker } from 'nmr-parser'; import { fileCollectionFromPath, fileCollectionFromZip } from 'filelist-utils';
// import bruker data import { getData: getBrukerData } from 'bruker-data-test'; const PATHTOBRUKERFOLDER = './' const fileCollection = fileCollectionFromPath(PATHTOBRUKERFOLDER); let data = await fromBruker(fileCollection);
//or
const zipBuffer = await getBrukerData('aspirin-1h.zip'); const fileCollection2 = await fileCollectionFromZip(zipBuffer); let data2 = await fromBruker(fileCollection2); ```
JEOL
```js // import JEOL parser import { fromJEOL } from 'nmr-parser';
// import test data import { experiments } from 'jeol-data-test';
let data = fromJEOL( experiments['Rutin3080ug200uLDMSOd6qHNMR400MHzJeol.jdf'], ); // result is a JSON object // { // timeStamp: 1593098292162, // version: '1.0.0' // description: { // title: 'title: RutinRUTI013080u200u / comment: qHNMR Spinning GARP Gated 13C Decoupled 20p 9pCntr 32K 90deg aq+d1=60s NS=128 / author:gfp / site: UIC ECZ400', // nucleus: [ '1H' ], // sampleName: 'RutinRUTI01_308', // date: '{"year":2016,"month":12,"day":21}', // ... // spectralWidth: 25.05370594702938, // metadata: {... ```
API Documentation
License
Owner
- Name: Cheminfo
- Login: cheminfo
- Kind: organization
- Website: https://www.cheminfo.org/
- Repositories: 242
- Profile: https://github.com/cheminfo
GitHub Events
Total
Last Year
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 178
- Total Committers: 9
- Avg Commits per committer: 19.778
- Development Distribution Score (DDS): 0.674
Top Committers
| Name | Commits | |
|---|---|---|
| jobo322 | j****s@c****o | 58 |
| cheminfo-bot | 1****t@u****m | 42 |
| jul | j****t@c****o | 42 |
| Luc Patiny | l****c@p****m | 17 |
| Michaël Zasso | t****s@p****m | 9 |
| Luc Patiny | l****y@u****m | 4 |
| cheminfo bot | a****n@c****g | 3 |
| Michael Wenk | m****k@u****e | 2 |
| Julien Wist | j****t@u****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 14
- Total pull requests: 62
- Average time to close issues: about 1 month
- Average time to close pull requests: 3 days
- Total issue authors: 5
- Total pull request authors: 3
- Average comments per issue: 0.71
- Average comments per pull request: 1.32
- Merged pull requests: 61
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- lpatiny (5)
- jobo322 (4)
- michaelwenk (2)
- targos (2)
- mgreiner79 (1)
Pull Request Authors
- cheminfo-bot (42)
- jobo322 (18)
- michaelwenk (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 88 last-month
- Total dependent packages: 6
- Total dependent repositories: 9
- Total versions: 52
- Total maintainers: 5
npmjs.org: nmr-parser
Read and convert any NMR file
- Homepage: https://github.com/cheminfo/nmr-parser#readme
- License: MIT
-
Latest release: 3.0.3
published over 3 years ago
Rankings
Maintainers (5)
Dependencies
- @babel/plugin-transform-modules-commonjs ^7.17.9 development
- @rollup/plugin-json ^4.1.0 development
- @types/jest ^27.5.0 development
- bruker-data-test ^0.2.1 development
- cheminfo-build ^1.1.11 development
- eslint ^8.15.0 development
- eslint-config-cheminfo ^7.3.0 development
- jcamp-data-test ^0.0.5 development
- jeol-data-test ^0.2.3 development
- jest ^28.1.0 development
- prettier ^2.6.2 development
- rollup ^2.72.1 development
- brukerconverter ^4.1.0
- filelist-from ^0.3.0
- filelist-utils ^0.5.0
- is-any-array ^2.0.0
- jcampconverter ^9.0.1
- jeolconverter ^1.0.1
- nmr-processing ^8.0.0
- JamesIves/github-pages-deploy-action releases/v4 composite
- actions/checkout v3 composite
- zakodium/documentationjs-action v1 composite
- actions/checkout v3 composite
- actions/setup-node v3 composite
- zakodium/lactame-action v1 composite