transformBarycentric: Conversion to barycentric coordinates

Description Usage Arguments Value Examples

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)

saeyslab/triwise documentation built on May 29, 2019, 12:56 p.m.