Skip to content

[FEATURE] FeatureFinderCentroided Performance - #4652

Merged
timosachsenberg merged 6 commits into
OpenMS:developfrom
IceFreez3r:feature-finder-centroided-threshold
Apr 20, 2020
Merged

timosachsenberg merged 6 commits into
OpenMS:developfrom
IceFreez3r:feature-finder-centroided-threshold

Conversation

@IceFreez3r

Copy link
Copy Markdown
Contributor

As mentioned here: #4359, the FeatureFinderCentroided is too slow.
@cbielow gave me the original file from the issue.
Times before:
FeatureFinderCentroided took 02:06:33 h (wall), 02:06:26 h (CPU), 6.18 s (system), 02:06:20 h (user).
Then I've implemented the idea of using ThresholdMover from the issue and:
Times afterwards:
FeatureFinderCentroided took 31:11 m (wall), 31:07 m (CPU), 4.42 s (system), 31:03 m (user).

Filter out spectra in FeatureFinderCentroided with ThresholdMower to reduce runtime
@cbielow

cbielow commented Apr 17, 2020

Copy link
Copy Markdown
Contributor

@timosachsenberg

Copy link
Copy Markdown
Contributor

Is there a difference? Maybe the threshold filter also takes care that associated float/string/int dataarrays are filtered

@jpfeuffer

jpfeuffer commented Apr 18, 2020 •

Copy link
Copy Markdown
Contributor

One does not even load the 0 intensity data, so I agree there should be an advantage.

@timosachsenberg

Copy link
Copy Markdown
Contributor

Agree but we should check if the data arrays are also correctly filtered e.g. ion mobility

@timosachsenberg

Copy link
Copy Markdown
Contributor

Though for FFC it currently does not use them

@cbielow

cbielow commented Apr 18, 2020

Copy link
Copy Markdown
Contributor

metadata is handled correctly AFAIKT.
This would also be a different issue -- this is just using the functionality offered by MzMLFile....

@timosachsenberg timosachsenberg self-assigned this Apr 20, 2020
@timosachsenberg

Copy link
Copy Markdown
Contributor

ok so the maximum of the range is: PositionType::maxPositive()
and the minimum std::numeric_limits::epsilon()
I guess

Comment thread src/topp/FeatureFinderCentroided.cpp Resolved
@timosachsenberg
timosachsenberg merged commit 1bd22ce into OpenMS:develop Apr 20, 2020
#include <OpenMS/FORMAT/MzQuantMLFile.h>
#include <OpenMS/METADATA/MSQuantifications.h>
#include <OpenMS/SYSTEM/File.h>
#include <OpenMS/FILTERING/TRANSFORMERS/ThresholdMower.h>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be removed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k will do in another PR - thanks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed that on my fork. I don't know if I need to open another PR or if you can just reopen this one

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks but I already pushed it to develop. So I guess its fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants