Skip to content

Problem with centWave peak detection on peaks with discontinuous signal #315

Closed
@jorainer

Description

@jorainer

This is @zizekw original comment in issue #290:

@jotsetung, thanks for the insight within this thread, I've been able to learn a lot about some issues I was observing in my own work.

Building off of what you described, I had performed CentWave peak detection and upon batch visualizing dozens of runs, I noticed I had some discontinuous lines on my chromatograms as was shown exactly in above examples. However, going a little deeper, this discontinuity in my data is actually impacting my peak detection. Calling clean on my individual Chromatogram objects with na.rm = TRUE and then re-calling findChromPeaks solves my issue, but are you aware of any way to remove these NA values prior to an initial call of findChromPeaks? I would ideally like to minimize the amount of calls to findChromPeaks and just detect these peaks outright since I am dealing with large amounts of data. Calling clean on my MSnExp object does not seem to solve things.

My CentWaveParam settings work for ~95% of my peaks (hundreds of runs), but upon visualization with the aid of highlightChromPeaks, the discontinuous peaks can not be detected no matter how much fiddling I did with the parameters. Calling clean and saving as a new Chromatogram object and then re-calling findChromPeaks which does indeed detect the peaks this second time around. However, I am returned a matrix object and can not now utilize my existing custom batch plotting functions (including the use of highlightChromPeaks) as before. Further, because I have to call it per file, I would have to add extra annotation steps to reincorporate these separately detected peaks with the rest of the experimental data. Let me know if I can provide any further information for context or clarify my comments.

Apologies...is this question better suited for MSnbase @lgatto?

Originally posted by @zizekw in #290 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions