Sign inSign up

nfdi4chem/nodejs-microservice

By nfdi4chem

•Updated about 1 year ago

API Service To Process Spectra from various data formats to NMRium format

Image
0

1.7K

nfdi4chem/nodejs-microservice repository overview

⁠API Service To Process Spectra from various data formats to NMRium format

The API uses the nmr-load-save⁠ package to process the spectra and playwright⁠ to load the NMRium from the deployed wrapper nmrium-react-wrapper⁠ and import the generated data to get the snapshots.

⁠Secptra processing

Process and convert various data formats (from various manufacturers, JCAMP standard files, or NMReDATA format, Bruker) to NMRium format

POST /spectra-parser
ParameterTypeDefaultDescription
urlsstring[]Required. Spectra files URLs
snapshotbooleanfalseOptional. Enable/dispable Spectra snapshot

⁠Responses

{
  "data": {
      "source": object[],
      "spectra" : object[],
      "molecules" : object[],
      "version"    : number,
   },
  "images"    : {"id":string,"image":string}[]

}
The `source` attribute contains an array of spectra files relative paths.
The `spectra` attribute contains an array of spectra (1D and 2D).
The `molecules` attribute contains an array of molecules.
The `version` attribute contains the current version of the data which is crucial for data migration in NMRium
The `images` attribute contains a list of the images for the spectra which is processed and displayed by NMRium,
  where each object contains two attributes the `id` is the spectrum id and an `image` as a Base64 format.

⚠ WARNING: Data Conversion.
Data should be converted from a Typed Array to a Array, without this step the NMRium will not be able to load the spectra. version object is important for NMRium data migration.

⁠Maintained by

This project is developed and maintained by the NFDI4Chem partners⁠ at the Friedrich Schiller University⁠ Jena, Germany. The code for this web application is released under the MIT license⁠.

NFDI4Chem Logo

⁠Acknowledgments

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)⁠ under the National Research Data Infrastructure – NFDI4Chem⁠ – Projektnummer 441958208.

DFG Logo

Tag summary

Content type

Image

Digest

sha256:bc861c463…

Size

115.5 MB

Last updated

about 1 year ago

docker pull nfdi4chem/nodejs-microservice