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
{{ message }}
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
The user should be able to select the peaks in one bin in a spectrum and then have the program automatically try to harmonize the peaks in the current bin with the ones in the original bin.
The harmonization involves adding, deleting, selecting, and deselecting peaks.
Possible implementation
Overview
A rough outline of how this might be accomplished is:
The program carries a notion of the current reference spectrum combination for each bin. The reference is initially empty. If the session is restored from an older version without such references, they are set to empty. The current reference for the current bin is displayed in the UI.
There is a button "Set as reference" which sets the current spectrum as the reference for the bin.
There is a button "Adjust to reference" which causes the peaks in the current bin to be adjusted to match those in the reference
Adjust to Reference
the assumptions are copied.
Then the current peaks are matched with the peaks in the reference (just a shortest distance match).
Any missing peaks (peaks in the reference that have no corresponding peak in the current bin) are given coordinates between their left and right nearest matched neighbors. Then their new coordinates come from linearly interpolating between their neighbors' new positions.
Now there are at least as many peaks in the current bin as in the reference bin. Only deletions are necessary. One more matching is done and any current peaks that have no corresponding reference peak are removed.
Finally there is a bijection between the current and original peaks. All current peaks whose reference is selected are also marked selected.
The text was updated successfully, but these errors were encountered:
Feature Summary
The user should be able to select the peaks in one bin in a spectrum and then have the program automatically try to harmonize the peaks in the current bin with the ones in the original bin.
The harmonization involves adding, deleting, selecting, and deselecting peaks.
Possible implementation
Overview
A rough outline of how this might be accomplished is:
Adjust to Reference
The text was updated successfully, but these errors were encountered: