immunogenomics / harmony

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

Error in harmony #228

Closed ydai3 closed 9 months ago

ydai3 commented 9 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 9 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 9 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 9 months ago

Great!