filterByControl: filterByControl

Description Usage Arguments Value Examples

View source: R/ascend_filtering.R

Description

Filter cells in an expression matrix based on the expression levels of a specific control. This function should be used AFTER the cells have undergone general filtering with the filterByOutliers function.

Usage

1
filterByControl(object, control = NULL, pct.threshold = 20)

Arguments

object

An EMSet.

control

Name of the control group, as used in the named list supplied to the EMSet object.

pct.threshold

Percentage threshold to filter cells by, as a whole number. Default: 20.

Value

An EMSet with filtered controls.

Examples

1
2
3
4
5
6
# Load EMSet
raw_emset <- ascend::raw_set

# Filter by outliers with default settings
filtered_emset <- filterByControl(raw_emset, control = "Mt", 
pct.threshold = 20)

IMB-Computational-Genomics-Lab/ascend documentation built on Aug. 29, 2019, 4:10 a.m.