addXIC: Add XIC to pyopenms experiment

Description Usage Arguments Value Author(s) Examples

View source: R/pyopenms.R

Description

A chromatogram and its repective native ID (transition ID) is added to MSExperiment object.

Usage

1
addXIC(ropenms, expriment, xic, nativeId)

Arguments

ropenms

(pyopenms module) get this python module through get_ropenms().

expriment

(python object) an MSExperiment() created using ropenms.

xic

(data-frame) must have two numeric columns.

nativeId

(integer) transition ID of the xic.

Value

(None)

Author(s)

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

ORCID: 0000-0003-3500-8152

License: (c) Author (2020) + GPL-3 Date: 2020-06-06

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
ropenms <- get_ropenms(condaEnv = "envName", useConda=TRUE)
expriment <- ropenms$MSExperiment()
data(XIC_QFNNTDIVLLEDFQK_3_DIAlignR)
xic <- XIC_QFNNTDIVLLEDFQK_3_DIAlignR[["hroest_K120808_Strep10%PlasmaBiolRepl1_R03_SW_filt"]][["4618"]][[1]]
addXIC(ropenms, expriment, xic, 34L)
chroms <- expriment$getChromatograms()
reticulate::py_to_r(chroms[[0]]$getNativeID())
reticulate::py_to_r(chroms[[0]]$get_peaks())

## End(Not run)

Roestlab/DIAlignR documentation built on March 3, 2021, 9:09 a.m.