ctFilter: Create a filtered subset of count matrix based on supplied...

Description Usage Arguments Details Examples

View source: R/RNASeqSuite.R


Subsets and filters the count matrix based on supplied group and filters.


ctFilter(data, frame, group, htsfilter=TRUE, cfilter=0, cutoff=0)



A data frame of the raw counts


A data frame containing the selected samples and their respective groups


The factor created from grpSelection containing the different group names


A boolean determining whether or not to use HTSFilter to filter count matrix


A numeric value controlling the use of cfilter, a custom outlier detector


Filters based on a hard cutoff of read counts


htsfilter calls the HTSFilter library if set to TRUE. This will remove genes based on a similarity ranking via a Jaccard index. Genes with constant, low counts will be removed.

cfilter is a custom outlier detector. cfilter normalizes the count vectors and then takes the difference between the two groups. The standard deviation and mean of the difference vector is stored and the genes are subsequently filtered based on the value of cfilter. Gene count values that lie outside of the standard deviation times the cfilter will be filtered. The lower the value of cfilter, the more stringent the filter will be. The default value of 0 disables this filter.

cutoff is a hard count cutoff. The average of every group is calculated and if the average for all groups falls below the specified cutoff value, the gene is removed. The default value of 0 disables this filter.


ct <- ctFilter(data, frame, group, htsfilter=TRUE, cfilter=2, cutoff=100)

Dudemanguy/RNASeqSuite documentation built on Dec. 5, 2019, 12:45 a.m.