GithubHelp home page GithubHelp logo

How to access S/N values about rawrr HOT 5 OPEN

fgcz avatar fgcz commented on September 27, 2024
How to access S/N values

from rawrr.

Comments (5)

tobiasko avatar tobiasko commented on September 27, 2024

Dear @papanlipotype,

the S/N values are never stored in the raw file. They need to be calculated. This is for instance done by the plot method for rawrrSpectrum objects in case SN = TRUE:

plot.rawrrSpectrum <- function(x, relative = TRUE, centroid = FALSE, SN = FALSE,
                              legend = TRUE, diagnostic = FALSE, ...){

    stopifnot(is.rawrrSpectrum(x))

    if (centroid) {

        stopifnot(x$centroidStream)

        if (SN) {

            plot(x = x$centroid.mZ, y = x$centroid.intensity/x$noise,
                 type = "h",
                 xlim = x$massRange,
                 xlab = "Centroid m/z",
                 ylab = "Centroid Signal/Noise",
                 frame.plot = FALSE, ...
            )

Currently the plot function only supports this for centroided data, although it has meanwhile become clear that the noise attribute is also available for (reduced) profile mode data.

But you could easily write a function that combines data retrieval and S/N calculation.

Hope this helps,
Tobi

from rawrr.

papanlipotype avatar papanlipotype commented on September 27, 2024

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

Apparently reduced profile mode is what the Q Exactive series uses when you select profile mode in the instrument method. see #37. I also thought that full profile mode would be triggered by selecting profile mode acquisition, but that doesn't seem to be the case.

I had a look at recent data from our Q Exactive for a "FTMS + p NSI Full ms [350.0000-1500.0000]" scan. rawrr just gives access to the intensity and m/z values (no noise attributes). But I guess the noise was written to the raw file. Most likely to a different data stream that our managed code currently ignores (again, have a look at issue #37).

@cpanse We should really push the code changes to make this stream available!

btw: I already filed a GitHub project for this: Support for reduced profile mode spectra

from rawrr.

papanlipotype avatar papanlipotype commented on September 27, 2024

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

ok. We will try to do our best to make this happen in the near future, since quite some people requested this already!

from rawrr.

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.