Skip to content

AggregateExpression() does not work with runEscape() output #153

@toobiwankenobi

Description

@toobiwankenobi

Hi there,

Thanks a lot for the amazing package!

I have a question regarding the interoperability of escape and Seurat. Somehow, I can't use the AggregateExpression function on a Seurat object created by runEscape. Ideally, I want to aggregate the enrichment scores using this function for downstream analysis.

GS <- list(Bcells = c("MS4A1", "CD79B", "CD79A", "IGH1", "IGH2"),
           Tcells = c("CD3E", "CD3D", "CD3G", "CD7","CD8A"))
pbmc_small <- SeuratObject::pbmc_small

pbmc_small <- runEscape(pbmc_small, 
                        gene.sets = GS, 
                        min.size = NULL)

pbmc_aggr <- AggregateExpression(pbmc_small, 
                           assays = "escape",
                           return.seurat = T, 
                           group.by = "groups")

Error in data.return[[1]] : subscript out of bounds

Am I doing something wrong? Thanks for your feedback.

Best wishes,
Tobi

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions