alignToRefMST {DIAlignR} | R Documentation

## Aligns an analyte for an edge of MST

### Description

df contains unaligned features for an analyte across multiple runs. This function aligns eXp run to ref run and updates corresponding features.

### Usage

    alignToRefMST(iNet, net, fileInfo, XICs, params, analytes, df, globalFits, RSE)

### Arguments

`iNet` | (integer) the index of edge to be aligned in the net.
`net` | (matrix) each row represents an edge of MST.
`fileInfo` | (data-frame) output of `getRunNames`.
`XICs` | (list of dataframes) fragment-ion chromatograms of the analytes for all runs.
`params` | (list) parameters are entered as list. Output of the `paramsDIAlignR` function.
`analytes` | (string) precursor IDs of the requested peptide.
`df` | (dataframe) a collection of features related to analytes.
`globalFits` | (list) each element is either of class lm or loess. This is an output of `getGlobalFits`.
`RSE` | (list) Each element represents Residual Standard Error of corresponding fit in globalFits.

### Value

invisible NULL

### Author(s)

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

ORCID: 0000-0003-3500-8152

License: (c) Author (2021) + GPL-3 Date: 2021-05-15

### See Also

`mstAlignRuns, MSTperBatch, setAlignmentRank, getMultipeptide`

### Examples

    dataPath <- system.file("extdata", package = "DIAlignR")

[Package DIAlignR version 2.2.0 Index]