Learn R Programming

DeLorean (version 1.5.0)

filter_genes: Filter genes

Description

Filter genes

Usage

filter_genes(dl, .filter = function(x) x %in% genes, number = NULL,
  genes = sample(rownames(dl$expr), number))

Arguments

dl

de.lorean object

.filter

Function that takes a list of genes as input and returns a vector of TRUE/FALSE

number

Number to sample if filter function or genes not supplied.

genes

The genes to keep.

Examples

Run this code
# NOT RUN {
data(WindramDeLorean)
dl <- de.lorean(windram.expr, windram.gene.meta, windram.cell.meta)
dl <- filter_genes(dl, number = 37)

# }

Run the code above in your browser using DataLab