This function create a list of unevaluated expressions representing a collection of signatures. The resulting expressions can be evaluated as FilterRules inside an environment such as a data.frame of sample-by-gene detection events.

makeFilterExpression(object)

# S4 method for GeneSetCollection
makeFilterExpression(object)

# S4 method for Sets
makeFilterExpression(object)

Arguments

object

An object of class inheriting from Sets or GeneSetCollection.

Value

A list of expression that combines the markers listed in each gene set.

Examples

# Example data ---- library(unisets) gmt <- system.file(package = "hancock", "extdata", "seurat_pbmc3k.gmt") genesets <- import(gmt) # Example usage ---- fe <- makeFilterExpression(genesets)