scaleGroups: Signatures with grouping variable

Description Usage Arguments Details Value Examples

View source: R/signatureDistance.r

Description

scaleGroups compares each group vs. the remaining groups using a Student's t-test

Usage

1
scaleGroups(x, groups)

Arguments

x

Numerical matrix with genes in rows and samples in columns

groups

Vector of same length as columns has the dset containing the labels for grouping the samples

Details

This function compute signatures using groups information

Value

Numeric matrix of signatures (z-scores) with genes in rows and groups in columns

Examples

1
2
3
data(bcellViper, package="bcellViper")
res <- scaleGroups(exprs(dset)[, 1:20], rep(1:4, rep(5, 4)))
res[1:5, ]

viper documentation built on Nov. 8, 2020, 7:37 p.m.