aggregate_samples {geneExpression} R Documentation

calculate the sum value of the gene expression for each sample group.

Description

<br /> this method can be apply for reduce data size when create some plot for <br /> visualize the gene expression patterns across the sample groups.

Usage

aggregate_samples(matrix, ...);

Arguments

matrix

a gene expression matrix object. [as Matrix]

groups

a tuple list of the sample group information: the slot key of the list is the sample group label and the slot value is a character vector of the sample id that belongs to the corresponding sample group. [as list]

env

the R# runtime environment object. [as Environment]

Details

Authors

phenotype_kit

Value

a new expression matrix object that each sample column is the sum value of the sample columns in the corresponding sample group;

this function returns a R# error message object if the given sample group information is empty.

clr value class

Examples


[Package geneExpression version 1.0.0.0 Index]