Dear Vitalii,
Following private communication, I post this issue as a reminder of the following bug.
After training the regression model, I am getting the following error
ValueError: shapes (1000,20) and (21,12931) not aligned: 20 (dim 1) != 21 (dim 0)
when trying to plot the QC.
As you mentioned, the problem is that the QC is plotted for a random subset of cells and if not all cell types are represented (20/21) this error occurs.
The way to address this on user side is to increase the number of cells in the subset with the parameter use_n_obs (for example, if mod is the regression model, using mod.plot_QC(use_n_obs=5000)).
Thank you so much for your help.
All the best,
Daniele
Dear Vitalii,
Following private communication, I post this issue as a reminder of the following bug.
After training the regression model, I am getting the following error
ValueError: shapes (1000,20) and (21,12931) not aligned: 20 (dim 1) != 21 (dim 0)
when trying to plot the QC.
As you mentioned, the problem is that the QC is plotted for a random subset of cells and if not all cell types are represented (20/21) this error occurs.
The way to address this on user side is to increase the number of cells in the subset with the parameter use_n_obs (for example, if mod is the regression model, using mod.plot_QC(use_n_obs=5000)).
Thank you so much for your help.
All the best,
Daniele