Learn R Programming

viper (version 1.6.0)

scaleGroups: Signatures with grouping variable

Description

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

Usage

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

Value

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

Details

This function compute signatures using groups information

Examples

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

Run the code above in your browser using DataLab