You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module code directly reads the limits.in file, but I wonder how the file is obtained, such as x0, y0, x1, y1 in the file. Whether according to the spectral peak Add or subtract a certain value from the xy coordinate value to get? Thanks a lot for your answer.
The text was updated successfully, but these errors were encountered:
In most of the cases, you will need to do this manually by looking at the peak position/shape. Once the peaks are picked, you can potentially automate this using the unit_conversion object, but you will should plot and see whether the limits you chose are appropriate. For example, you can use something like:
# generate the universal dictionary (udic) depending on your data format# generate unit conversion objectuc= {i: ng.fileiobase.uc_from_udic(udic, dim=i) foriin (0, 1)}
# select a 1 ppm box around a 2d peak at the position (x=50ppm, y=55ppm)x, y=50, 55delta=1x0, x1=uc[1].i(x-delta, "ppm"), uc[1].i(x+delta, "ppm")
y0, y1=uc[0].i(y-delta, "ppm"), uc[0].i(y+delta, "ppm")
In most of the cases, you will need to do this manually by looking at the peak position/shape. Once the peaks are picked, you can potentially automate this using the unit_conversion object, but you will should plot and see whether the limits you chose are appropriate. For example, you can use something like:
# generate the universal dictionary (udic) depending on your data format# generate unit conversion objectuc= {i: ng.fileiobase.uc_from_udic(udic, dim=i) foriin (0, 1)}
# select a 1 ppm box around a 2d peak at the position (x=50ppm, y=55ppm)x, y=50, 55delta=1x0, x1=uc[1].i(x-delta, "ppm"), uc[1].i(x+delta, "ppm")
y0, y1=uc[0].i(y-delta, "ppm"), uc[0].i(y+delta, "ppm")
Thank you very much for your answer, I think I have an idea.
The module code directly reads the limits.in file, but I wonder how the file is obtained, such as x0, y0, x1, y1 in the file. Whether according to the spectral peak Add or subtract a certain value from the xy coordinate value to get? Thanks a lot for your answer.
The text was updated successfully, but these errors were encountered: