Description Usage Arguments Details Value Examples
Computes Ratios between matrices to one control
1 | metagene_ratio(m, samples, control, transform_fun = NULL, ...)
|
m |
the object to create the metagene aggregate for |
samples |
sample names for one or more matrices from m to be used |
control |
sample name for one of the matrices from m to be used as denominator |
transform_fun |
a function to be applied to vlues before aggregate function is applied. |
... |
other arguments passed to fun |
Ratio of values. transform_fun takes a matrix as input and returns a similar sized matrix. ie p1 <- function(m)m+1 Computes the ratio to the control matrix. Handles all groups if there is more than one group present.
a metagene object
1 2 3 4 | fname <- system.file("extdata", "matrix_grouped.gz", package = "RMetaTools")
m <- load_deeptoolsmatrix3_new(fname)
p1 <- function(m){return(m+1)}
ratios <- metagene_ratio(m, c('RRP40', 'ZCCHC8', 'ZFC3H1'), 'MTR4', transform_fun=p1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.