keepCells: exclude cells from CNR bundle

Description Usage Arguments Value Examples

View source: R/keepCells.R

Description

Both keepCells and excludeCells perform similar functions; keep cells with positive selection, and excludeCells with negative selection

Usage

1
keepCells(cnr, keep)

Arguments

cnr

the cnr bundle

keep

a string vector of cellID to keep

Value

Returns a CNR bundle with only the cells we want to keep

Examples

1
2
3
4
5
6
7
data(cnr)

cnr2 <- excludeCells(cnr, excl = cnr$Y$cellID[cnr$qc$ReadsKept < 800000])

cnr3 <- keepCells(cnr, keep = cnr$Y$cellID[cnr$qc$ReadsKept >= 800000])

all.equal(cnr2, cnr3)

SingerLab/gac documentation built on July 22, 2021, 3:27 a.m.