Learn R Programming

SISPA (version 1.2.2)

callZSCORE: Row ZSCORES

Description

Estimates the zscores for each row in the data matrix

Usage

callZSCORE(x)

Arguments

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

Value

A gene-set by sample matrix of zscores.

Details

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

Examples

Run this code
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)

Run the code above in your browser using DataLab