Skip to content

non-conformable matrix dimensions when running computeCommunProb() #14

@wykpenguin

Description

@wykpenguin

I was able to run SpatialCellChat with the imputed Merfish data from Allen. However, when running my own Xenium data set with imputed gene expression data I ran into the following error. All of the prior steps successfully ran through. What might be the most probable cause?

The n_count, n_feature plots as well as the UMAP of the imputed dataset are as below:
Image

Image

The error message:

> chat <- computeCommunProb(
  chat,
  distance.use = TRUE, scale.distance = 1,
  contact.dependent = TRUE,
  interaction.range = 250, contact.range = 20
)
>>>  Analyzing spatial transcriptomic data and preferring to infer interactions between individual cells...
>>>  Apply a predefined spatial distance threshold based on the interaction length(=250um)...
>>> Contact range is set as 20um, to restrict the contact-dependent signaling.
>>> Run CellChat on spatial transcriptomic data using distances as constraints <<< [2026-05-14 18:11:49.824442]
>>>  The input L-R pairs have both secreted signaling and contact-dependent signaling. Run CellChat in a contact-dependent manner for `Cell-Cell Contact` signaling, and in a diffusion manner based on the `interaction.range` for other L-R pairs. 
ℹ Future strategy in use: `parallel with 4 workers`                           
  0% [----------------------------------------------------------]  ?s :message
Progress interrupted by simpleError condition: non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
Error: non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions