filterGenes: Filter specific genes

Description Usage Arguments Value Examples

View source: R/filterGenes.R

Description

The main use case for this function is the removal of sex-chromosome genes. Alternatively, filter genes that are not protein-coding.

Usage

1
2
filterGenes(obj, labels = c("X", "Y", "MT"),
  featureName = "chromosome_name", keepOnly = FALSE)

Arguments

obj

ExpressionSet object.

labels

Labels of genes to filter or keep, eg. X, Y, and MT

featureName

FeatureData column name, eg. chr

keepOnly

Filter or keep only the genes with those labels

Value

Filtered ExpressionSet object

Examples

1
2
3
data(skin)
filterGenes(skin,labels = c('X','Y','MT'),featureName='chromosome_name')
filterGenes(skin,labels = 'protein_coding',featureName='gene_biotype',keepOnly=TRUE)

yarn documentation built on Nov. 8, 2020, 7:50 p.m.