immunogenomics / harmony

Fast, sensitive and accurate integration of single-cell data with Harmony
https://portals.broadinstitute.org/harmony/
Other
529 stars 99 forks source link

Error in harmony #228

Closed ydai3 closed 11 months ago

ydai3 commented 11 months ago

I am using Harmony to integrate several batches of CosMx data, but encountered the following error:

Error in harmonyObj$init_cluster_cpp(0) : matrix multiplication: incompatible matrix dimensions: 100x1499771 and 1497760x6

Hope to get some ideas why this could happen.

Thank you very much!

pati-ni commented 11 months ago

Hi @ydai3,

I guess you have 1499771 cells? Can you give me a table() with the factors you are trying to correct?

ydai3 commented 11 months ago

Hi @pati-ni Thank you very much! I checked the correcting factor, and the reason is that some cells have missing values in the correcting factor. Change that will resolve the problem.

pati-ni commented 11 months ago

Great!