Comments (2)
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:
- Use
SNR = 0
and ignore thesnr
value in the resulting peaks object. - Increase the
halfWindowSize
argument (for your example data there are just negative SNR values forhalfWindowSize <= 7
(essentially removes the first and last little peaks), if you want noise estimation to filter lower intense peaks you may consider increasing thehalfWindowSize
anyway). - Use a fixed
span
argument (and maybe run a cross validation for 3 different span values yourself before). - 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). - 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.
@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)
- Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘transformIntensity’ for signature ‘"character"’ HOT 9
- Add weighted average to the spectrum smoothing? HOT 1
- One more thought on the average smoothing HOT 2
- binPeaks tolerance documentation HOT 3
- Error and question regarding alignSpectra function HOT 7
- raw MSI spectra as MassSpectra objects - size in memory HOT 25
- warping - obtain number of matched peaks HOT 1
- MALDIquant::binpeaks() silently propagates values to empty MassPeaks objects HOT 1
- MALDIquant With WATERS DESI Data HOT 11
- Massive memory usage while using mergeMassPeaks and FilterPeaks HOT 6
- Error in plot,AbstractMassObject,missing with R-devel
- Averaging warping functions - plate by plate effect HOT 2
- Extracting intensities from a file from a predifined m/z list HOT 4
- Peak binning on reference peaks HOT 2
- Unable to plot MALDI-TOF proteomics data collected in reflectron mode HOT 2
- Quality Control HOT 2
- Change to new cran checks badge URL HOT 2
- Python version planned? HOT 1
- MALDI mass spec data format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maldiquant.