getXICs4AlignObj: Extract XICs of analytes

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get_peaks_chromatograms.R

Description

For all the analytes requested, it fetches chromatogram indices from prec2chromIndex and extracts chromatograms using mzPntrs.

Usage

1
getXICs4AlignObj(mzPntrs, fileInfo, runs, prec2chromIndex, analytes)

Arguments

mzPntrs

a list of mzRpwiz.

fileInfo

(data-frame) output of getRunNames().

runs

(vector of string) names of mzML files without extension.

prec2chromIndex

(list of data-frames) output of getChromatogramIndices(). Each dataframe has two columns: transition_group_id and chromatogramIndex.

analytes

(integer) a vector of precursor IDs.

Value

A list of list of data-frames. Each data frame has elution time and intensity of fragment-ion XIC.

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca

ORCID: 0000-0003-3500-8152

License: (c) Author (2019) + GPL-3 Date: 2019-12-13

See Also

getChromatogramIndices, getRunNames

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
dataPath <- system.file("extdata", package = "DIAlignR")
runs <- c("hroest_K120809_Strep0%PlasmaBiolRepl2_R04_SW_filt",
          "hroest_K120808_Strep10%PlasmaBiolRepl1_R03_SW_filt")
analytes <- c(32L, 898L, 2474L)
fileInfo <- getRunNames(dataPath = dataPath)
fileInfo <- updateFileInfo(fileInfo, runs)
precursors <- getPrecursorByID(analytes,fileInfo)
mzPntrs <- getMZMLpointers(fileInfo)
prec2chromIndex <- getChromatogramIndices(fileInfo, precursors, mzPntrs)
XICs <- getXICs4AlignObj(mzPntrs, fileInfo, runs, prec2chromIndex, analytes)
rm(mzPntrs)

DIAlignR documentation built on Nov. 8, 2020, 8:22 p.m.