projection: Calculates the projection of an expression matrix onto a gene...

Description Usage Arguments Value Examples

Description

Calculates the projection of an expression matrix onto a gene set matrix

Usage

1
projection(expr.mat, gs.mat)

Arguments

expr.mat

matrix containing expression of genes (rows) in samples (columns)

gs.mat

matrix containing fold changes of genes (rows) for each gene set (columns)

Value

projection scores for each gene set (row) for each sample (column)

Examples

1
2
3
gs.mat <- matrix(rnorm(20), nrow=10, ncol=2)
expr.mat <- matrix(rnorm(50), nrow=10, ncol=5)
projection(expr.mat, gs.mat)

agentlans/ShadowPlayer documentation built on May 15, 2019, 12:04 p.m.