cpanse / protViz

Visualizing and Analyzing Mass Spectrometry Related Data in Proteomics
https://CRAN.R-project.org/package=protViz
GNU General Public License v3.0
11 stars 3 forks source link

centroidv2 #13

Open wolski opened 4 years ago

wolski commented 4 years ago

Hi,

I did implement a slightly different version of centroid and called it centroidv2. It uses diff to find the peak maxima and peak starts and ends and does not require the eps parameter. The implementation is more concise. With the sample data it seems to pick all the peaks which centroid does. See figure below. Of course it will need more testing.

centroid_vs_centroidv2

Could you please review my pull request?