Skip to content

Data structures for SWATH data #346

Closed
@michaelwitting

Description

@michaelwitting

To start to work on SWATH data we would need some tweeks for the data structures. Currently, I perform alignment etc on the MS1 level, which is fine. MS2 data is shifted accordingly.
However, to work with the SWATH data and to perform peak picking for the individual SWATH pockets I'm splitting the data like this:

xrms <- readMSData(files, mode = "onDisk", centroided = TRUE)

xrms_ms1 <- filterMsLevel(xrms, msLevel = 1)
xrms_ms2 <- filterMsLevel(xrms, msLevel = 2)

precursors <- fData(xrms_ms2)$precursorMZ

xrms_ms2_swath <- split(xrms_ms2, f = as.integer(precursors))

Then I'm performing peak picking on the individual levels.

ms1data <- findChromPeaks(xrms_ms1, param = cwp, msLevel = 1)

ms2data <- lapply(xrms_ms2_swath, FUN = findChromPeaks, param = cwp, msLevel = 2)

Working with real data sets this might lead to confusion to have different lists etc.

It would be good if we can have methods and results for a single object. E.g. picked peaks can flagged with the MS level and the precursor mass or the index of the SWATH pocket.

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