callZSCORE: Row ZSCORES

Description Usage Arguments Details Value Examples

View source: R/callZSCORE.R

Description

Estimates the zscores for each row in the data matrix

Usage

1

Arguments

x

A data frame or matrix of gene or probe expression values where rows corrospond to genes and columns corrospond to samples

Details

This function compute row zscores per sample when number of genes is less than 3

Value

A gene-set by sample matrix of zscores.

Examples

1
2
3
4
5
6
7
8
g <- 2 ## number of genes
s <- 60 ## number of samples
## sample data matrix with values ranging from 1 to 10
rnames <- paste("g", 1:g, sep="")
cnames <- paste("s", 1:s, sep="")
expr <- matrix(sample.int(10, size = g*s, replace = TRUE), nrow=g, ncol=s, dimnames=list(rnames, cnames))
## Estimates zscores
callZSCORE(expr)

BhaktiDwivedi/SISPA documentation built on Aug. 31, 2021, 7:41 p.m.