cheminfo / nmrium

React component to display and process nuclear magnetic resonance (NMR) spectra.
https://docs.nmrium.org
MIT License
55 stars 25 forks source link

Using FileCollection to generate NMReData #1774

Open lpatiny opened 2 years ago

lpatiny commented 2 years ago

We are currently working on a refactor of https://github.com/cheminfo/filelist-utils/pull/35

We should be able to keep track of FileCollection in nmr-load-save in order to be able to generate the NMReData file.

jobo322 commented 1 year ago

do you mean to generate a fileCollection of files comes from drag-n-dropped into nmrium, in order to generate a nmredata after?

jobo322 commented 1 year ago

@hamed-musallam @lpatiny It is possible related with https://github.com/cheminfo/nmr-load-save/pull/110 if we will export nmredata from nmrium, we should keep the fileCollection after load the spectra. So we should not pass only the BaseFile[] into the { source: { files }} object. WDT?

jobo322 commented 1 year ago

currently, it is not possible to generate a nmrRecord, because the file is not keeped after conversion.

We could generate a nmrRecord from the nmrium state but the original files will not be there.

or we could add the option to generate a nmredata (sdf file) and the user can complete the nmrRecord with the original data.

jobo322 commented 1 year ago

we could fulfill the nmrRecord with jcamp-dx files generated by the nmr data of the state