selectTopMax: selectTopMax

Description Usage Arguments Details Value Author(s) Examples

View source: R/utlis.R

Description

Facilitates gene selection prior to unsupervised clustering.

Usage

1
selectTopMax(cpm, n)

Arguments

cpm

matrix; Counts per million.

n

Number of genes to select. If n > dim(data)[1] all data is returned.

Details

Returns the index for the n genes (rows) with the maximum expression in the spCounts object. The expression matrix in the counts.cpm slot is used for the calculation.

Value

A numeric vector containing the indices of selected genes.

Author(s)

Jason T. Serviss

Examples

1
s <- selectTopMax(getData(CIMseqSinglets_test, "counts.cpm"), 10)

jasonserviss/CIMseq documentation built on Jan. 11, 2020, 4:42 a.m.