Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectra not loading anymore #2751

Closed
hamed-musallam opened this issue Nov 14, 2023 · 11 comments · Fixed by #2752 or #2672
Closed

Spectra not loading anymore #2751

hamed-musallam opened this issue Nov 14, 2023 · 11 comments · Fixed by #2752 or #2672
Assignees
Labels
bug Something isn't working

Comments

@hamed-musallam
Copy link
Member

I tested these samples using version 0.44, and the majority of the spectra loaded correctly but I still got some errors
Screenshot 2023-11-14 at 16 55 32

unfortunately with current development version not working at all

https://s3.uni-jena.de/nmrxiv/production/archive/247bab07-dc3c-45cc-807d-f21bb83882f6/Genistein%20annotated%20NMR%20400%20MHz%20DMSOd6%20data.zip
https://s3.uni-jena.de/nmrxiv/production/archive/1a4d675d-f078-4628-ac78-85236e0ad8af/%20Capsaicin%20400%20MHz%20DMSOd6%20NMR%20data%20.zip
https://s3.uni-jena.de/nmrxiv/production/archive/247bab07-dc3c-45cc-807d-f21bb83882f6/Genistein%20annotated%20NMR%20400%20MHz%20DMSOd6%20data.zip
https://s3.uni-jena.de/nmrxiv/production/archive/1fd327ba-9a52-4120-88a5-b72529cb5a98/Curcumin%20annotated%20NMR%20400%20MHz%20DMSOd6%20data.zip
https://s3.uni-jena.de/nmrxiv/production/archive/5a1698da-4270-4114-b588-f258b9fd44d3/Apigenin%20annotated%20NMR%20400MHz%20DMSOd6%20data.zip
https://s3.uni-jena.de/nmrxiv/production/archive/432597cd-27c8-4130-b797-7e11a7599562/Myricetin%20annotated%20NMR%20400%20MHz%20DMSOd6%20data.zip
https://s3.uni-jena.de/nmrxiv/production/archive/99d715bc-34bb-40bc-80c0-75722a68d23f/Kaempferol%20annotated%20NMR%20400%20MHz%20DMSOd6%20data.zip
https://s3.uni-jena.de/nmrxiv/production/archive/fd127472-6962-46ad-9390-8ae9e0ad3000/%20Glycyrrhizin%20900MHz%20400MHz%20DMSOd6%20NMR%20data%20.zip
https://s3.uni-jena.de/nmrxiv/production/archive/25bc00c8-e1f2-4bde-b281-342ac7fe6abe/%20Glycyrrhetinic%20acid%3AEnoxolone%20900_400MHz%20DMSOd6%20NMR%20data%20.zip
https://s3.uni-jena.de/nmrxiv/production/archive/2cd25088-4513-40ad-8aa6-21ff1f4e3527/%20Lupeol%20900MHz%20400MHz%20CDCl3%20NMR%20data%20.zip

@hamed-musallam hamed-musallam added the bug Something isn't working label Nov 14, 2023
@jobo322
Copy link
Member

jobo322 commented Nov 14, 2023

let me check what is happening

@hamed-musallam
Copy link
Member Author

it seems some of the meta does not exist in some of these files but is it mandatory?

@jobo322
Copy link
Member

jobo322 commented Nov 14, 2023

The first file that I did check, I found it

image

DATACLASS = NTUPLES but the data is a single xydata and the last or first LDR does not exists. That is why this jcamp is not loaded.

image

@lpatiny is it possible and should we add support for it or the jcamp file was wrongly generated?

@jobo322
Copy link
Member

jobo322 commented Nov 14, 2023

changing the DATACLASS to XYDATA, the spectrum is loaded. The assignment does not yet loaded but it is another issue

@lpatiny
Copy link
Member

lpatiny commented Nov 14, 2023

When I drag and drop the zip file we actually try to upload 23 files and it seems that only one is failing. If would be nice in the logs to know which one it is ! @jobo322 Could you check how to get the filename and add another issue for this ?

Practically it seems related to the 13C.jdx that is generated by JEOL and that indeed pretends it is NTUPLES

13C.jdx.zip

Based on the draft specifications: http://www.jcamp-dx.org/drafts/JCAMP6_2b%20Draft.pdf we are expected to see pages

image

And they are not in this JCAMP-DX.

@hamed-musallam
Copy link
Member Author

hamed-musallam commented Nov 14, 2023

some of those files and maybe all of them come from Harvard public datasets https://dataverse.harvard.edu/dataverse/cenaptnmr;jsessionid=51df1d14ff071004936a072f6bc1

@targos
Copy link
Member

targos commented Nov 14, 2023

Is it a regression or it worked before?

@targos
Copy link
Member

targos commented Nov 14, 2023

If it worked before, you can use old cloudflare preview links on the pull requests to identify when it started to fail.

@targos
Copy link
Member

targos commented Nov 16, 2023

I did a git bisect session.
The regression happened in commit 470abab

@targos
Copy link
Member

targos commented Nov 16, 2023

@jobo322 In case you suspect the regression is in nmr-load-save, here is the diff: https://github.com/cheminfo/nmr-load-save/compare/v0.12.1...v0.13.1

@jobo322 jobo322 linked a pull request Nov 17, 2023 that will close this issue
@jobo322
Copy link
Member

jobo322 commented Nov 20, 2023

Currently, nmr-load-save is checking that the properties for NTUPLES data-class like LAST, FIRST, and SYMBOLS exist even if the DATACLASS LDR is NTUPLES. It avoids throwing an error in the case of a wrong definition of DATACLASS to NTUPLES.

After version 0.23.3 of nmr-load-save, there are two remnants issues at the moment to load this data:

The last issue is bug related with 2D JEOL Data and only appear if experimental features is enabled, it is related with automatic processing of 2D. I will add the corresponding test cases with 2D data of each supported brand.

hamed-musallam pushed a commit that referenced this issue Nov 21, 2023
* chore: update processing libraries

* fix: fallback to add frequency indirect dimension

* fix: fallback for originFrequency of homonuclear

* chore: stable release nmr-load-save

close #2751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

4 participants