Transform data by taking the log2(count+1)

log2_plus1_transform(x)

Arguments

x

A matrix containing un-transformed expression (in some count format)

Value

A matrix with transformed values

Examples

log2_plus1_transform(matrix(c(1, 2, 4, 8)))
#> [,1] #> [1,] 1.000000 #> [2,] 1.584963 #> [3,] 2.321928 #> [4,] 3.169925