simpleFilter: simpleFilter Function to filter expression data of a countDat...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/simpleFilter.R

Description

simpleFilter is a filtering function used to remove rows (genes) of various expression data.

Usage

1
2
simpleFilter(cD, mean_cutoff=NULL, min_cutoff=NULL, median_cutoff=
NULL, counts=TRUE)

Arguments

cD

A countDat object.

mean_cutoff

The lower cutoff, using mean.

min_cutoff

The cutoff, expressed as a minimum acceptable value.

median_cutoff

The cutoff, using a median value.

counts

Boolean, use raw counts data (default) or RPKM.

Details

This function filters the expression of the supplied countDat object, based on a selected cutoff.

Value

Returns a filtered countDat object.

Author(s)

AJ Vaestermark, JR Walters.

References

The "doseR" package, 2018 (in press).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(hmel.data.doser)
reps <- c("Male", "Male", "Male", "Female", "Female", "Female")
annotxn <- data.frame("Chromosome" = factor(hmel.dat$chromosome,
levels = 1:21))
hm.tr<-hmel.dat$trxLength
hm<-new("countDat",data=hmel.dat$readcounts,seglens=hm.tr,
annotation=annotxn)
replicates(hm) <- reps
libsizes(hm) <- getLibsizes2(hm, estimationType = "total")
rpkm(hm) <- make_RPKM(hm)
f_hm <- simpleFilter(hm, mean_cutoff=0.5)

avastermark19/doseR_0.99.4 documentation built on May 6, 2019, 12:08 p.m.