Code Monkey home page Code Monkey logo

Comments (4)

jorainer avatar jorainer commented on June 8, 2024

OnDiskMSnExp: this object might replace the xcmsRaw object. It combines all raw data from a whole MS experiment (reading the data on-demand from the disk). The data itself is organized in spectra, one spectrum for each scan/retention time. Extraction of spectra data is thus straight forward. Extraction of chromatogram data might be more complicated (time consuming).

Some notes:

  • Use a as.matrix or as.data.frame method on the Spectrum1 classes to get the M/Z - intensity value pairs from each scan in one call, cbind that data and pass it to the low level do_ low level methods.
  • getEIC or similar methods: is there something available for MSnExp/OnDiskMSnExp?

from xcms.

hpbenton avatar hpbenton commented on June 8, 2024

just want to chime in on this…

Over the years xcms has had many functions removed from it sometimes even becoming whole packages themselves, mzR is one example. I would feel that unless OnDiskMSnExp from msnBase has huge benefits over xcmsRaw in terms of reading data faster, compressing on storage etc that we stick with xcmsRaw. Many developer use this structure in their packages both public and private. I think we want to avoid xcms becoming a wrapper of mzR and msnBase.

Also happy to lend a hand in xcms3 re-write if I can be of any help, just let me know.

On Jul 27, 2016, at 11:31 AM, Johannes Rainer [email protected] wrote:

OnDiskMSnExp: this object might replace the xcmsRaw object. It combines all raw data from a whole MS experiment (reading the data on-demand from the disk). The data itself is organized in spectra, one spectrum for each scan/retention time. Extraction of spectra data is thus straight forward. Extraction of chromatogram data might be more complicated (time consuming).

Some notes:

Use a as.matrix or as.data.frame method on the Spectrum1 classes to get the M/Z - intensity value pairs from each scan in one call, cbind that data and pass it to the low level do_ low level methods.
getEIC or similar methods: is there something available for MSnExp/OnDiskMSnExp?

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #41 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACJZDNL-K0WLYsgGFbU9uEJMHxQAyUDlks5qZ6QWgaJpZM4JWfEu.

from xcms.

jorainer avatar jorainer commented on June 8, 2024

Dear Paul I really appreciate discussions on this! There are no plans to remove xcmsRaw immediately.

For me the obvious advantage of OnDiskMSnExp would be in the following use-case:

  • Features are identified (we have an xcmsSet) and we want to get the EIC for these across multiple samples. Currently we would call e.g. getEIC, which will then however read the whole raw data from each file. With the OnDiskMSnExp on the other side, only the required data will be extracted from the raw files. So there will be a huge performance gain here. Also, the OnDiskMSnExp class keeps track of any data manipulations that have been performed (also such as baseline correction etc).

from xcms.

jorainer avatar jorainer commented on June 8, 2024

Using the OnDiskMSnExp object in xcms as a container for the raw data and the XCMSnExp (defined inxcms and extending the OnDiskMSnExp) has proven to be useful. Biggest advantages are the direct link to the raw data, all already implemented and reusable subsetting and filter methods.

from xcms.

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.