dpsd: Differential probes by standard deviation

Description Usage Arguments Details Value Examples

View source: R/dpsd.R

Description

dpsd Find most variable features by standard deviation.

Usage

1
dpsd(x, n, .order = TRUE)

Arguments

x

Matrix of numbers with columns indicating samples and rows indicating features.

n

Number of features to choose.

.order

Logical. Return features in decreasing SD values.

Details

Identifies the most variable features across samples by standard deviation (sd). The n features with highest sd is returned as a matrix.

Value

A matrix of nrow = n features with highest sd.

Examples

1
2
3
4
5
x1 <- matrix(rnorm(1000), nrow = 50)
rownames(x1) = paste('LowSD', 1:50, sep='_')
x2 <- matrix(rnorm(1000, sd = 3), nrow = 50)
rownames(x2) = paste('HighSD', 1:50, sep='_')
dpsd(rbind(x1,x2),20)

sean-cho/toolkit documentation built on May 29, 2019, 4:24 p.m.