as.ExpressionSet: Convert objects into ExpressionSets or MSnSets.

Description Usage Arguments Value Author(s) Examples

View source: R/soma2eset.R

Description

Converts objects into ExpressionSet or MSnSet instances.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
5
6
7
8
9
somaFile <- extractSampleData()
wideSomaData <- readAdat(somaFile)
as.ExpressionSet(wideSomaData)
if(requireNamespace("MSnbase"))
{
  as.MSnSet(wideSomaData)
}

unlink(somaFile)

readat documentation built on Oct. 31, 2019, 8:19 a.m.