exprsToRatios-methods {MSnbase} | R Documentation

## Calculate all ratio pairs

### Description

Calculations all possible ratios for the `assayData` columns in an `"MSnSet"`. The function `getRatios(x, log = FALSE)` takes a matrix `x` as input and is used by `exprsToRatios`.

### Methods

`signature(object = "MSnSet", log = "logical")`

  If `log` is FALSE (default) the ratios for all the `assayData` columns are computed; otherwise, log ratios (differences) are calculated.

`signature(object = "matrix", log = "logical")`

  As above, but for a `matrix` instance.

### Examples

    data(msnset)
    pData(msnset)
    head(exprs(msnset))
    r <- exprsToRatios(msnset)
    head(exprs(r))
    pData(r)

[Package MSnbase version 2.12.0 Index]