createListOfMsExperimentFromListOfSpectra: Create list of 'MsExperiment' objects from list of 'Spectra'...

View source: R/createListOfMsExperimentFromListOfSpectra.R

createListOfMsExperimentFromListOfSpectraR Documentation

Create list of MsExperiment objects from list of Spectra objects

Description

The function createListOfMsExperimentFromListOfSpectra will provide the input (after subsetting the resulting list) for the MsQuality workflow for QC metric calculation.

The function createListOfMsExperimentFromListOfSpectra returns a list of MsExperiment objects. It will take as input a list of Spectra objects.

Usage

createListOfMsExperimentFromListOfSpectra(sps_l)

Arguments

sps_l

list of one or multiple Spectra objects

Details

When type == "MetIDQ", the function will return a list of length 2. The first entry contains a MsExperiment object with all features found in the experiment files. The second entry contains a MsExperiment object with the features found in the experiment files that have available information on their retention time.

When type == "mzML", the function will return a lit of length 1. The entry contains a MsExperiment object derived from all mzML files in path.

Author(s)

Thomas Naake

Examples

## type == "MetIDQ"
path <- system.file("metidq", package = "MsQualityUtils")
sps_l <- createListOfSpectra(type = "MetIDQ", path = path, sheet = 1)
createListOfMsExperimentFromListOfSpectra(sps_l = sps_l)

## type == "mzML"
path <- system.file("sciex", package = "msdata")
sps_l <- createListOfSpectra(type = "mzML", path = path)
createListOfMsExperimentFromListOfSpectra(sps_l = sps_l)


tnaake/MsQualityUtils documentation built on Feb. 3, 2023, 6:32 a.m.