filterCounts: Filtration of gRNAs with Low Counts

Description Usage Arguments Value Examples

View source: R/filter.counts_function.R

Description

Filtration and visualization of counts

Usage

1
filterCounts(counts, thresh = 1, minsample.ids = 2)

Arguments

counts

input matrix containing normalized gRNA counts with gRNA ids as row names

thresh

numerical cutoff for low counts

minsample.ids

minimum number of samples for which counts must be present per gene

Value

new matrix of filtered counts

Examples

1
2
3
4
y <- matrix(rnorm(100*9, mean = 10, sd = 1),100,9)
y[seq(1,100,10),] <- y[seq(1,100,10),]/20
counts.filtered <- filterCounts(y, thresh = 1, minsample.ids = 3)
...

christensensm/COMPOSE documentation built on Dec. 22, 2020, 3:43 a.m.