nmrium icon indicating copy to clipboard operation
nmrium copied to clipboard

Multiplet analysis and zoom level

Open lpatiny opened this issue 1 month ago • 6 comments

It seems that the result of the multiplet analysis depends on the zoom level.

Image

@hamed-musallam Could you investigate this ? Not sure where is the bug.

lpatiny avatar Nov 21 '25 15:11 lpatiny

@lpatiny

Do you mean the multiple spectra integration tool? The issue, I believe, is that xyIntegration from the ml-spectra-processing package is too sensitive to the { from, to } values. I tried many times to select the same range using the mouse, but I could never get exactly the same values. Even very small changes in the selection result in different outputs.

hamed-musallam avatar Nov 21 '25 20:11 hamed-musallam

Are we sure we send to ml-spectra-processing the same amount of points and that it does not depends of the zoom level. @hamed-musallam We don't send a reduce version of the spectrum if it is not zoomed in ?

lpatiny avatar Nov 24 '25 09:11 lpatiny

Yes, we are sending the same number of points. I checked the lengths of both X and Y, and they are always identical.

hamed-musallam avatar Nov 24 '25 09:11 hamed-musallam

Currently I noticed that this method is susceptible to the how much the multiplet is centered in the range, I am checking further in the method to confirm it

jobo322 avatar Nov 24 '25 13:11 jobo322

In the current case, if there is a contamination of the pattern like: Image

after found the first J coupling in 7.59 Hz, the next step continue with: Image

the scalar product of the consecutive deconvolution steps is under the threshold and the j-coupling that it find is too small to join them as a quadruplet.

jobo322 avatar Nov 24 '25 16:11 jobo322

another case that I found where we could check why it happens

Image

jobo322 avatar Nov 25 '25 15:11 jobo322