QihuangZhang / CeLEry

CeLEry: cell location recovery in single-cell RNA sequencing
MIT License
31 stars 3 forks source link

RuntimeError: mat1 and mat2 shapes cannot be multiplied #7

Closed kewinds closed 7 months ago

kewinds commented 7 months ago

Thank you so much for this resource! I was trying to apply to my own spatial dataset and ran everything successfully through cel.Fit_cord. However, when I ran cel.Predict_cord, I received the following error:

image

I'm new to Scanpy so maybe an issue with the way I prepared the anndata? Thanks for looking into this!

QihuangZhang commented 7 months ago

Have you checked that your Test data has the exactly same dimension (number of genes) as your training data? If not, you might need to obtain the common genes for both.

kewinds commented 7 months ago

The suggested fix worked. Apologies, I just saw the indicated checks further into the tutorial than I had reached. Maybe consider putting those in the beginning as well? Thanks again for this package!