Learn R Programming

DeLorean (version 1.2.5)

filter.cells: Filter cells

Description

Filter cells

Usage

# S3 method for cells
filter(dl, .filter = function(x) x %in% cells,
  number = NULL, cells = sample(colnames(dl$expr), number))

Arguments

dl

de.lorean object

.filter

Function that gakes a list of cells as input and returns a vector of TRUE/FALSE

number

Number to sample if filter function or cells not supplied.

cells

The cells to keep.

Examples

Run this code

cells <- c('cell1', 'cell2', 'cell3', 'cell4')
filter.cells(dl, .filter = function(x) x %in% cells)
filter.cells(dl, number = 4)
filter.cells(dl, cells = cells)


Run the code above in your browser using DataLab