topVarRowsByMeanBinning: Bin rows by mean expression, and return rows with the highest...

View source: R/pca.R

topVarRowsByMeanBinningR Documentation

Bin rows by mean expression, and return rows with the highest variations from each bin

Description

Bin rows by mean expression, and return rows with the highest variations from each bin

Usage

topVarRowsByMeanBinning(matrix, ntop = NULL, nbin = NULL)

Arguments

matrix

A numeric matrix

ntop

Integer, the total number of rows that are expected to be returned

nbin

Integer, how many bins should be formed? If NULL, an automatic value is used.

Value

A subset of the matrix, containing exactly ntop rows.

See Also

topVarRowIndByMeanBinning

Examples

# myMat <- matrix(rnorm(2000), ncol=10, byrow=FALSE)
# myTopVarMat <- topVarRowsByMeanBinning(myMat, ntop=130, nbin=15)
# myTopVarMat2 <- topVarRowsByMeanBinning(myMat, ntop=135, nbin=15)

bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.