Skip to content

Issue with runEscape() and counts Layer #114

Closed

Description

@monikaramos

Hi there,

I'm encountering the following error when running runEscape() but not when I run escape.matrix()

pbmc_small <- runEscape(pbmc_small,

  •                     method = "ssGSEA",
    
  •                     gene.sets = gene.sets, 
    
  •                     groups = 1000, 
    
  •                     min.size = 5,
    
  •                     new.assay.name = "escape.ssGSEA")
    

[1] "Using sets of 1000 cells. Running 1 times."
Warning: Layer counts isn't present in the assay object; returning NULL

I am working with a seurat v5 object and it will successfully run when I use the escape.matrix function. Unfortunately, I would like to be able to use the runEscape function so I can have more ease with and more plotting functions. Please advise, thank you!

I've updated the escape package too.

Version R 4.4

Activity

  1. ncborcherding commented on Aug 19, 2024

    @ncborcherding
    Member

    Hey @monikaramos,

    This appears to be an issue with the Seurat version - find out more info here.

    In the meantime, you can add the output of escape.matrix() to your Seurat object using:

    new.assay <- CreateAssayObject(data = as.matrix(t(enrichment.results))))
    
    SeuratObj[["escape"]] <- new.assay)
    

    Hope that helps, let me know if you have any other questions.

    Thanks,
    Nick

  2. monikaramos commented on Aug 20, 2024

    @monikaramos
    Author
  3. yeroslaviz commented on Aug 30, 2024

    @yeroslaviz

    I'm getting the same error here. Was this solved?

  4. mjquackenbush commented on Mar 11, 2026

    @mjquackenbush

    Following up here, still getting same issue.

  5. ncborcherding commented on Mar 11, 2026

    @ncborcherding
    Member

    @mjquackenbush

    This should be installed with the most recent version of escape in the github repo and in the bioconductor release. Please let me know if upgrading doesn't fix the issue and follow up with a repro example would be immensely helpful/

    Nick

  6. mjquackenbush commented on Mar 11, 2026

    @mjquackenbush

    @ncborcherding I installed the newest version of escape listed on the github repository using bioconductor and I am still getting the same error detailed above.

    escape.gene.sets <- getGeneSets(library = "H", species = 'Mus musculus')

    scRep_example <- runEscape(scRep_example,

    •                        method = "ssGSEA",
      
    •                        gene.sets = escape.gene.sets, 
      
    •                        groups = 1000, 
      
    •                        min.size = 3,
      
    •                        new.assay.name = "escape.ssGSEA")
      

    [1] "Using sets of 1000 cells. Running 16 times."
    Warning: Layer counts isn't present in the assay object; returning NULL

    My seurat object is Version 5.3.0.

    Version(scRep_example)
    [1] ‘5.3.0’

    I am including a screenshot of inspecting the seurat object where the escape.ssGSEA assay is stored.

    Image
  7. ncborcherding commented on Mar 12, 2026

    @ncborcherding
    Member

    @mjquackenbush,

    Sorry to clarify - escape is running and storing the outputs, but Seurat is giving you a warning. So you are fine to go forward, because there is a difference between Seurat v5 and v3 assays still that exist in 5.3.0 of Seurat, this is more of a annoyance than anything.

    Apologies for the confusion

    Nick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions