geneFilter: Filtering for Low Count and Low Variance Genes

Description Usage Arguments Value Author(s) Examples

View source: R/lungFunctionsForWGCNA.R

Description

Gene filtering based on the mean expression level and standard deviation for each gene across samples.

Usage

1
geneFilter(dat, mean.thred, sd.thred)

Arguments

dat

Expression matrix with genes in columns and samples in rows.

mean.thred

Threshold for mean.

sd.thred

Threshold for standard deviation.

Value

Indices of genes that should be kept after the filtering.

Author(s)

Yun Zhang

Examples

1
2
3
4
data(lungData)
dat <- t(lungData)
i.keep <- geneFilter(dat = dat, mean.thred = 6, sd.thred = 3)
newdat <- dat[i.keep,]

yunzhang813/rGTExNetwork documentation built on May 4, 2019, 7:45 p.m.