keepCells: keep cells from CNR bundle

View source: R/keepCells.R

keepCellsR Documentation

keep cells from CNR bundle

Description

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

Usage

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


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 March 23, 2024, 5:15 a.m.