Learn R Programming

DeLorean (version 1.5.0)

filter_cells: Filter cells

Description

Filter cells

Usage

filter_cells(dl, .filter = function(x) x %in% cells, number = NULL,
  cells = sample(colnames(dl$expr), number))

Arguments

dl

de.lorean object

.filter

Function that takes 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
# NOT RUN {
data(WindramDeLorean)
dl <- de.lorean(windram.expr, windram.gene.meta, windram.cell.meta)
dl <- filter_cells(dl, number = 7)

# }

Run the code above in your browser using DataLab