metagene_ratio: Metagene Ratio

Description Usage Arguments Details Value Examples

Description

Computes Ratios between matrices to one control

Usage

1
metagene_ratio(m, samples, control, transform_fun = NULL, ...)

Arguments

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

Details

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.

Value

a metagene object

Examples

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)

manschmi/RMetaTools documentation built on Dec. 14, 2021, 4:33 a.m.