Skip to content

Merged CellChat Object netVisual_diffInteraction error #449

@jmo3pay

Description

@jmo3pay

Hello!

I've been running into problems when trying to compute differential interactions in a merged CellChat object.

> netVisual_diffInteraction(cellchat, weight.scale = T, sources.use = 1, targets.use = 2,
+                           measure = "count.merged", label.edge = T)
Error in names(x) <- value : 
  'names' attribute [2] must be the same length as the vector [1]

The one difference in CellChat object structure I can see is my object is structured cellchat@net$experimental$count instead of just cellchat@net$control$count. There is also a nonzero number of valid connections:

> cellchat@net$control$count[1,2]
[1] 14
> cellchat@net$experimental$count[1,2]
[1] 10

Let me know if there's any other information you need from me. Thanks in advance!

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