getAlignedFigs {DIAlignR} | R Documentation

## Plot aligned XICs group for a specific peptide.

### Description

AlignObj is the output from getAlignObjs fucntion. This function prepares ggplot objects from AlignObj.

### Usage

    getAlignedFigs(AlignObj, XICs.ref, XICs.eXp, refPeakLabel,
      annotatePeak = FALSE)

### Arguments

`AlignObj` | (S4 object)
`XICs.ref` | (list) List of extracted ion chromatograms (dataframe) from reference run. The dataframe has two columns: first column is for time and second column indicates intensity.
`XICs.eXp` | (list) List of extracted ion chromatograms (dataframe) from experiment run.The dataframe has two columns: first column is for time and second column indicates intensity.
`refPeakLabel` | (numeric vector) It contains peak apex, left width and right width.
`annotatePeak` | (logical) TRUE: Peak boundaries and apex will be highlighted.

### Value

A plot to the current device.

### Author(s)

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

ORCID: 0000-0003-3500-8152

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

### Examples

    dataPath <- system.file("extdata", package = "DIAlignR")
    runs <- c("hroest_K120809_Strep0%PlasmaBiolRepl2_R04_SW_filt",
     "hroest_K120809_Strep10%PlasmaBiolRepl2_R04_SW_filt")
    AlignObjOutput <- getAlignObjs(analytes = "QFNNTDIVLLEDFQK_3", runs, dataPath = dataPath)
    AlignObj <- AlignObjOutput[["QFNNTDIVLLEDFQK_3"]][[1]]
    XICs.ref <- AlignObjOutput[["QFNNTDIVLLEDFQK_3"]][[2]]
    XICs.eXp <- AlignObjOutput[["QFNNTDIVLLEDFQK_3"]][[3]]
    refPeakLabel <- AlignObjOutput[["QFNNTDIVLLEDFQK_3"]][[4]]

[Package DIAlignR version 0.99.12 Index]