as.ExpressionSet {readat} | R Documentation

## Convert objects into ExpressionSets or MSnSets.

### Description

Converts objects into `ExpressionSet` or `MSnSet` instances.

### Usage

    as.ExpressionSet(x, log2Transform = TRUE, ...)

    ## S3 method for class 'WideSomaLogicData'
    as.ExpressionSet(x, log2Transform = TRUE, ...)

    soma2eset(somaObj, log2Transform = TRUE)

    ## S3 method for class 'WideSomaLogicData'
    as.MSnSet(x, log2Transform = FALSE, ...)

    as.MSnSet(x, log2Transform = FALSE, ...)

### Arguments

`x` | An object to transform. Currently only `WideSomaLogicData` objects are supported.
`log2Transform` | whether to log2 transform intensities or not
`...` | Passed between methods.
`somaObj` | A `WideSomaLogicData` object to transform.

### Value

ExpressionSet or MSnSet object

### Author(s)

Aditya Bhagwat

### Examples

    somaFile <- extractSampleData()
    wideSomaData <- readAdat(somaFile)
    as.ExpressionSet(wideSomaData)
    if(requireNamespace("MSnbase"))
    {
      as.MSnSet(wideSomaData)
    }

    unlink(somaFile)

[Package readat version 1.6.0 Index]