Description Usage Arguments Value Author(s) Examples
Converts objects into ExpressionSet
or MSnSet
instances.
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, ...)
|
x |
An object to transform. Currently only |
log2Transform |
whether to log2 transform intensities or not |
... |
Passed between methods. |
somaObj |
A |
ExpressionSet or MSnSet object
Aditya Bhagwat
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.