degFilter: Filter genes by group

Description Usage Arguments Value Examples

View source: R/methods.R

Description

This function will keep only rows that have a minimum counts of 1 at least in a min number of samples (default 80

Usage

1
degFilter(counts, metadata, group, min = 0.8, minreads = 0)

Arguments

counts

matrix with expression data, columns are samples and rows are genes or other feature

metadata

data.frame with information about each column in counts matrix. Rownames should match colnames(counts).

group

character column in metadata used to group samples and applied the cutoff

min

numeric value indicating the minimum number of samples in each group that should have more than 0 in count matrix.

minreads

integer minimum number of reads to consider a feature expressed.

Value

count matrix after filtering genes (features) with not enough expression in any group.

Examples

1
2
3
4
data(humanSexDEedgeR)
idx <- c(1:10, 75:85)
c <- degFilter(humanSexDEedgeR$counts[1:1000, idx],
humanSexDEedgeR$samples[idx,], "group", min=1)

Bioconductor-mirror/DEGreport documentation built on July 7, 2017, 10:53 p.m.