transformBarycentric: Conversion to barycentric coordinates

Description Usage Arguments Value Examples

View source: R/analyze.R

Description

Converts the expression matrix containing three biological conditions to barycentric coordinates, reducing its dimensionality by one while retaining information of differential expression.

Usage

1
transformBarycentric(E, transfomatrix = NULL)

Arguments

E

Expression matrix

transfomatrix

NULL (default) or a numeric matrix containing the transformation matrix

Value

Dataframe containing for every original point its new coordinates in 'd-1' dimensions

Examples

1
2
3
4
Eoi = matrix(rnorm(1000*3, sd=0.5), 1000, 3, dimnames=list(1:1000, c(1,2,3)))
Eoi[1:100,1] = Eoi[1:100,1] + 1
barycoords = transformBarycentric(Eoi)
hist(barycoords$angle)

Zouter/triwise documentation built on June 3, 2017, 10:50 a.m.