Giter Club home page Giter Club logo

Comments (2)

sgibb avatar sgibb commented on August 11, 2024

I am sorry for the late reply!

I can confirm that the supsmu function returns negative values.
To be honest MALDIquant was never designed for Orbitrap data (if it works for your case its great). Your data are more or less just peak shapes (no profile data, because there are no baseline artefacts, no equal spaced points between peaks, ...). I guess you want to create centroided data (just single peak values instead of peak shapes). While this not answering your question I am wondering if a filtering based on SNR is needed at all.
I see a few different possible solutions:

  1. Use SNR = 0 and ignore the snr value in the resulting peaks object.
  2. Increase the halfWindowSize argument (for your example data there are just negative SNR values for halfWindowSize <= 7 (essentially removes the first and last little peaks), if you want noise estimation to filter lower intense peaks you may consider increasing the halfWindowSize anyway).
  3. Use a fixed span argument (and maybe run a cross validation for 3 different span values yourself before).
  4. Use "MAD" for noise estimation (which is very low as well, because there are no real noisy profile data to estimate anything but it would be positive).
  5. Suggest/Implement a different noise estimator that I/you could add/contribute.

I know this might not be the answer you were looking for because it is no real or easy solution.

I am wondering if I should implement a warning if the supsmu yield negative SNR values.

from maldiquant.

zdens avatar zdens commented on August 11, 2024

@sgibb, thank you for your reply!

the further analysis shows that in our case negative noise values are being placed only at the edges of the spectrum, so our solution now is to pad mz/intensity list with zero intensity points from left and right sides and thus to eliminate these boundary effects.

Interesting fact is that for this current case https://github.com/sgibb/MALDIquant/files/8574094/spectra_353.gz the negative noise values are vanished completely in case of padding with 100 points at every sides of the spectrum whereas in case of padding with 50 points the negative values are kept.

So the size of padding depends on the spectrum itself.

from maldiquant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.