Learn R Programming

CTD (version 1.3)

data.zscoreData: Z-transform available data

Description

The z-transform is meant to work with normalized, imputed metabolomics data

Usage

data.zscoreData(data, ref)

Value

zscored.data - Z-transformed data.

Arguments

data

- Normalized, imputed data. Data matrix includes features as rows, samples as columns.

ref

- Normalized, imputed reference sample data. Data includes features as rows, samples as columns.

Examples

Run this code
dis_data = matrix(rexp(500), ncol=100)
rownames(dis_data)=sprintf("Feature%d",seq_len(nrow(dis_data)))
colnames(dis_data)=sprintf("Sample%d",seq_len(ncol(dis_data)))
ref_data = matrix(rexp(500), ncol=100)
rownames(ref_data)=sprintf("Feature%d",seq_len(nrow(ref_data)))
colnames(ref_data)=sprintf("Sample%d",seq_len(ncol(ref_data)))
zscored.data=data.zscoreData(dis_data,ref_data)

Run the code above in your browser using DataLab