Skip to content

error can't run escape::performNormalization? #172

@Sa753

Description

@Sa753

Dear team,

I have seurat object and I used the gene set provided as an example in the package. I then run runEscape and it runs well but I can't perform the normalisation because performNormalization function gives an error.

Here is the code I used

pbmc_small <- runEscape(pbmc_small,
method = "ssGSEA",
gene.sets = escape.gene.sets,
groups = 1000, min.size = 3, new.assay.name = "escape.ssGSEA")

pbmc_small <- escape::performNormalization(input.data = pbmc_small,
assay = "escape.ssGSEA",
gene.sets = escape.gene.sets)

Error in (function (cond) :
error in evaluating the argument 'x' in selecting a method for function 't': subscript out of bounds

(function (cond)
.Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "subscript out of bounds",
call = GetAssayData(object = x)[i, j, ..., drop = FALSE],
object = structure(c(80.1955263737123, -15.8737762524596, ...
5.
[.Assay(sc[[name]], "data")
4.
sc[[name]]["data"]
3.
Matrix::t(sc[[name]]["data"])
2.
.pull.Enrich(input.data, assay) at #24
1.
escape::performNormalization(input.data = pbmc_small, assay = "escape.ssGSEA",
gene.sets = escape.gene.sets)

I am using R version >4.4.2, Seurat version 4.4.0, Seuratobject 4.1.4, escape 2.5.5

Please advise
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions