log2FC | R Documentation |
Generates log2(foldchange) matrix/assay, eventually on a per-batch fashion.
log2FC( x, fromAssay = NULL, controls, by = NULL, isLog = NULL, agFun = rowMeans, toAssay = "log2FC" )
x |
A numeric matrix, or a 'SummarizedExperiment' object |
fromAssay |
The assay to use if 'x' is a 'SummarizedExperiment' |
controls |
A vector of which samples should be used as controls for foldchange calculations. |
by |
An optional vector indicating groups/batches by which the controls will be averaged to calculate per-group foldchanges. |
isLog |
Logical; whether the data is log-transformed. If NULL, will attempt to figure it out from the data and/or assay name |
agFun |
Aggregation function for the baseline (default rowMeans) |
toAssay |
The name of the assay in which to save the output. |
An object of same class as 'x'; if a 'SummarizedExperiment', will have the additional assay named from 'toAssay'.
log2FC( matrix(rnorm(40), ncol=4), controls=1:2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.