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
10
11
12
13
14
15
16
somaFile <- extractSampleData()
wideSomaData <- readAdat(somaFile)
as.ExpressionSet(wideSomaData)
if(requireNamespace("MSnbase"))
{
    as.MSnSet(wideSomaData)
}

unlink(somaFile)
if (interactive()) {
    # Not testing, since this is a repeat of readAdat() examples
    somaFile <- extractSampleData()
    wideSomaData <- readAdat(somaFile)
    as.ExpressionSet(wideSomaData)
    unlink(somaFile)
}

graumannlab/readat documentation built on May 16, 2020, 10:15 p.m.