viperSignature-methods: Generic S4 method for signature and sample-permutation null...

Description Usage Arguments Value Examples

Description

This function generates a viperSignature object from a test dataset based on a set of samples to use as reference

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
viperSignature(eset, ...)

## S4 method for signature 'ExpressionSet'
viperSignature(eset, pheno, refgroup,
  method = c("zscore", "ttest", "mean"), per = 100, bootstrap = TRUE,
  seed = 1, cores = 1, verbose = TRUE)

## S4 method for signature 'matrix'
viperSignature(eset, ref, method = c("zscore",
  "ttest", "mean"), per = 100, bootstrap = TRUE, seed = 1,
  cores = 1, verbose = TRUE)

Arguments

eset

ExpressionSet object or numeric matrix containing the test dataset, with genes in rows and samples in columns

...

Additional parameters added to keep compatibility

pheno

Character string indicating the phenotype data to use

refgroup

Vector of character string indicatig the category of pheno to use as reference group

method

Character string indicating how to compute the signature and null model, either ttest, zscore or mean

per

Integer indicating the number of sample permutations

bootstrap

Logical, whether null model should be estimated with bootstrap. In this case, only reference samples are used.

seed

Integer indicating the seed for the random sample generation. The system default is used when set to zero

cores

Integer indicating the number of cores to use (only 1 in Windows-based systems)

verbose

Logical, whether progression messages should be printed in the terminal

ref

Numeric matrix containing the reference samples (columns) and genes in rows

Value

viperSignature S3 object containing the signature and null model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data(bcellViper, package="bcellViper")
ss <- viperSignature(dset, "description", c("N", "CB", "CC"), per=100) # Only 100 permutations to reduce computation time, but it is recommended to perform at least 1000 permutations
res <- viper(ss, regulon)
dim(exprs(dset))
exprs(dset)[1:5, 1:5]
regulon
dim(res)
exprs(res)[1:5, 1:5]
data(bcellViper, package="bcellViper")
d1 <- exprs(dset)
pos <- pData(dset)[["description"]] %in% c("N", "CB", "CC")
ss <- viperSignature(d1[, !pos], d1[, pos], per=100) # Only 100 permutations to reduce computation time, but it is recommended to perform at least 1000 permutations
res <- viper(ss, regulon)
dim(d1)
d1[1:5, 1:5]
regulon
dim(res)
res[1:5, 1:5]

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