opossom.new | R Documentation |
This function initializes the oposSOM environment and sets the preferences.
opossom.new(preferences)
preferences |
list with the following optional values:
|
The package accepts the indata
parameter in two formats:<br>
Firstly a simple two-dimensional numerical matrix, where the columns and rows represent the samples and genes, respectively. The expression values are usually obtained by calibration and summarization algorithms (e.g. MAS5, VSN or RMA), and transformed into logarithmic scale prior to utilizing them in the pipeline. Secondly the input data can also be given as Biobase::ExpressionSet
object.
Please check the vignette for more details on the parameters.
A new oposSOM environment which is passed to opossom.run
.
env <- opossom.new(list(dataset.name="Example",
note="a test with 10 random samples",
max.cores=2,
dim.1stLvlSom="auto",
dim.2ndLvlSom=10,
training.extension=1,
rotate.SOM.portraits=0,
flip.SOM.portraits=FALSE,
database.dataset="auto",
activated.modules = list(
"largedata.mode" = NULL,
"reporting" = TRUE,
"primary.analysis" = TRUE,
"sample.similarity.analysis" = TRUE,
"geneset.analysis" = TRUE,
"psf.analysis" = TRUE,
"group.analysis" = TRUE,
"difference.analysis" = TRUE ),
standard.spot.modules="dmap",
spot.coresize.modules=4,
spot.threshold.modules=0.9,
spot.coresize.groupmap=4,
spot.threshold.groupmap=0.7,
feature.centralization=TRUE,
sample.quantile.normalization=TRUE,
pairwise.comparison.list=list(
list("groupA"=c("sample1", "sample2"),
"groupB"=c("sample3", "sample4")))))
# definition of indata, group.labels and group.colors
env$indata = matrix( runif(1000), 100, 10 )
env$group.labels = c( rep("class 1", 5), rep("class 2", 4), "class 3" )
env$group.colors = c( rep("red", 5), rep("blue", 4), "green" )
# alternative definition of indata, group.labels and group.colors using Biobase::ExpressionSet
library(Biobase)
env$indata = ExpressionSet( assayData=matrix(runif(1000), 100, 10),
phenoData=AnnotatedDataFrame(data.frame(
group.labels = c( rep("class 1", 5), rep("class 2", 4), "class 3" ),
group.colors = c( rep("red", 5), rep("blue", 4), "green" ) ))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.