add.model | R Documentation |
This function aggregates the data required to predict class in classify
.
add.model(x, model, groupMeans, groupSDs, groupNames, groupColors, threshold,
geneNames, geneTs, geneMs)
x |
An object of class |
model |
A |
groupMeans |
Numeric vector of length 2, the means of the scores in each group as computed on a training series. If |
groupSDs |
Numeric vector of length 2, the standard deviations of the scores in each group as computed on a training series. If |
groupNames |
Character vector of length 2, the names of the group described in |
groupColors |
Character vector of length 2, the colors to use to plot each group (see |
threshold |
Single numeric vector, the confidence threshold to use for prediction (a call will be made only if it is at least at this level of certainty). If |
geneNames |
Character vector, the names of the genes whose expression is to be used. If |
geneTs |
Numeric vector, for each gene in |
geneMs |
Numeric vector, for each gene in |
Returns an S3 object of class fsaModel
.
Sylvain Mareschal
classify
# Example FSA file provided
fsa <- read.fsa(system.file("extdata/fsa_GEP/A5918.fsa", package="FSAtools"))
# Add model from design file
design <- designFile(system.file("extdata/design_GEP.conf", package="FSAtools"))
fsa <- add.model(fsa, model=design$GLOBALS$MODEL)
# Observe model
print(attr(fsa, "model"))
plot(attr(fsa, "model"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.