filter_by_variance | R Documentation |
This function is used to improve the quality of the hits. It compute the variance among the hits and filter the one with a value greater than the threshold set
filter_by_variance(
screenR_Object,
genes,
matrix_model,
variance = 0.5,
contrast
)
screenR_Object |
The ScreenR object obtained using the
|
genes |
The genes for which the variance as to be computed. Those genes are the result of the three statistical methods selection |
matrix_model |
a matrix created using |
variance |
The maximum value of variance accepted |
contrast |
The variable to use as X for the linear model for the Treatment |
A data frame with the variance for the treatment and the control for each gene
object <- get0("object", envir = asNamespace("ScreenR"))
matrix_model <- model.matrix(~ slot(object, "groups"))
colnames(matrix_model) <- c("Control", "T1_T2", "Treated")
contrast <- limma::makeContrasts(Treated - Control, levels = matrix_model)
data <- filter_by_variance(
screenR_Object = object, genes = c("Gene_42"),
matrix_model = matrix_model, contrast = contrast
)
head(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.