Skip to content

iSMNN vignette not working #1

@AlbertNitu

Description

@AlbertNitu

Hi,
iSMNN is a wonderful tool - thank you for making it.
I've been facing some trouble with the vignette, however.
Whenever the vignette code is run (please see this colab file for code), the following error is returned:

Finding neighborhoods for endothelial cells ...
Error in nn2(data = numeric(0), query = numeric(0), k = 31, eps = 0) : 
  Cannot find more nearest neighbours than there are points
Calls: <Anonymous> ... FindAnchors -> FindNN -> NNHelper -> do.call -> nn2

I'm assuming this is because the number of endothelial cells is too small in both batch1 and batch2. I've played with the k.filter parameter to try to fix this, but to no success.

So instead, I exclude endothelial cells from both the clusters.info and matched.clusters vectors, and remove the endothelial cell marker Pecam1 from the markers vector . However, when I do this (code here), I get the following error after iSMNN finds and filters the anchors for fibroblast and macrophage cells:

Error in new(Class = "AnchorSet", object.list = object.list, reference.objects = reference %||%  : 
  trying to generate an object from a virtual class ("AnchorSet")
Calls: <Anonymous> ... <Anonymous> -> withVisible -> iSMNN -> iSMNN_FindSMNNs -> new

Is there a solution to either of these issues?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions