Skip to content

Error in CalcPerturbSig #7

@Saharprh

Description

@Saharprh

Hello,

I have an issue with running the CalcPerturbSig on my own data.
seurat_objcompass_perturb <- CalcPerturbSig(
object = seurat_objcompass,
assay = "RNA",
slot = "data",
gd.class ="gene",
nt.cell.class = "neg",
reduction = "pca",
ndims = 40,
num.neighbors = 20,
new.assay.name = "PRTB_compass",
split.by = NULL) # to specify the metadata column if multiple biological contexts (e.g., cell lines) exist

I received this error message:
Error in nn2(data = numeric(0), query = c(-9.89631522133093, -15.278225783592, :
Cannot find more nearest neighbours than there are points.

I appreciate if you can help me solve this issue.
Thank you!
Sahar

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