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
As we are currently looking into storing feature maps in SQL we found some old quirks.
Currently, we support a vector of arbitrary hull points + a vector of bounding boxes.
The only use case for arbitrary hull points in OpenMS is storing mass traces (mainly for debugging purposes) and in the MRM code.
I propose to:
only store a set of bounding boxes
store arbitrary mass traces (if required for debugging or debug visualization) in a meta value
Using a set, we don't need to store the order of bounding boxes (which should be determined by e.g. increasing m/z values) in a table.
@cbielow what is your take on that? I think you were the last one who touched that code (IIRC on a developer retreat)
On Tue, Oct 8, 2019, 05:53 Timo Sachsenberg, ***@***.***> wrote:
As we are currently looking into storing feature maps in SQL we found some
old quirks.
Currently, we support a vector of arbitrary hull points + a vector of
bounding boxes.
The only use case for arbitrary hull points in OpenMS is storing mass
traces (mainly for debug purposes).
I propose to only store the vector of bounding boxes and think about a
mechanism to store arbitrary mass traces.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4289?email_source=notifications&email_token=AADRJDQVGGIO2IKRZHWCIJTQNRKCHA5CNFSM4I6PQT4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQJSZLQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADRJDTI7ERSLXPOBBRVESDQNRKCHANCNFSM4I6PQT4A>
.
The other places I found using multiple hull points are in the MRM feature code.
I guess these just correspond to mass traces of chromatograms so I am currently thinking about whether we should add both an (in most cases empty) vector of chromatograms & a vector of masstraces to each feature.
Would add about 2 * 24 Byte per Feature.
I guess these just correspond to mass traces of chromatograms so I am currently thinking about whether we should add both an (in most cases empty) vector of chromatograms & a vector of masstraces to each feature.
both sounds like a waste - what about adding a ptr and only when the feature is used it consumes memory? (except the 8 bytes for the ptr)
why a set? the number of items will be small. Use vector (performance)
I'm not sure about the best design for mass traces. The most efficient way to store this optional information would be inside the FeatureMap, as a vector m_ which has the same length as the feature vector or empty (if features do not have mass traces). However, then there is no way to directly request the MTs given a feature. You'd always need the map.
If the current code would allow this without much hassle, I'd go for that. Otherwise, unique_ptr as Hannes suggested.
why a set? the number of items will be small. Use vector (performance)
I agree with this. If you don't need ordering or uniqueness, there's no good reason for a set.
I'm not sure about the best design for mass traces.
I would question whether they need to be stored in a feature map at all. For debugging/visualisation, couldn't they go in an optional mzML output (as chromatograms)?
Yeah probably better to just reference the mass traces.
The problem is that it is already used at quite some places for e.g., fitting a model to the points in the convex hull (= as mass trace).
Don't know if I will find time to refactor that now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
hroest commentedon Oct 8, 2019
timosachsenberg commentedon Oct 10, 2019
The other places I found using multiple hull points are in the MRM feature code.
I guess these just correspond to mass traces of chromatograms so I am currently thinking about whether we should add both an (in most cases empty) vector of chromatograms & a vector of masstraces to each feature.
Would add about 2 * 24 Byte per Feature.
hroest commentedon Oct 10, 2019
both sounds like a waste - what about adding a ptr and only when the feature is used it consumes memory? (except the 8 bytes for the ptr)
timosachsenberg commentedon Oct 10, 2019
Yes thats possible
hroest commentedon Oct 10, 2019
yes they do
cbielow commentedon Oct 11, 2019
why a set? the number of items will be small. Use vector (performance)
I'm not sure about the best design for mass traces. The most efficient way to store this optional information would be inside the
FeatureMap, as a vectorm_which has the same length as the feature vector or empty (if features do not have mass traces). However, then there is no way to directly request the MTs given a feature. You'd always need the map.If the current code would allow this without much hassle, I'd go for that. Otherwise, unique_ptr as Hannes suggested.
hendrikweisser commentedon Oct 28, 2019
I agree with this. If you don't need ordering or uniqueness, there's no good reason for a set.
I would question whether they need to be stored in a feature map at all. For debugging/visualisation, couldn't they go in an optional mzML output (as chromatograms)?
timosachsenberg commentedon Oct 28, 2019
Yeah probably better to just reference the mass traces.
The problem is that it is already used at quite some places for e.g., fitting a model to the points in the convex hull (= as mass trace).
Don't know if I will find time to refactor that now.
hroest commentedon Oct 28, 2019
thats what we currently do in OpenSWATH
github-actions commentedon Feb 2, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.