monocle3 icon indicating copy to clipboard operation
monocle3 copied to clipboard

Monocle 3 error: plot_cells(cds, color_cells_by="cao_cell_type") gives the following error:color_cells_by must one of 'cluster', 'partition', 'pseudotime, or a column in the colData table.

Open yojetsharma opened this issue 2 years ago • 4 comments

How do I correct the above error? I have loaded the my scRNA data using load_mm_data. Please help. And before that step, I received the following: plot_cells(cds) No trajectory to plot. Has learn_graph() been called yet? cluster not found in colData(cds), cells will not be colored cluster_cells() has not been called yet, can't color cells by cluster

yojetsharma avatar May 29 '22 08:05 yojetsharma

I have the same problem, do anyone have fixed the problem please?

Marfa-chan avatar Jul 29 '22 09:07 Marfa-chan

have you solved the problem? I have the same problem. It seems we do not have a colData table containing "cell_type"?

chen-peng-1874 avatar Feb 14 '23 22:02 chen-peng-1874

replace "celltype" to a column in the colData, pData(cds) to view colData table

Matt-Lamm avatar Feb 14 '24 07:02 Matt-Lamm

replace “cell_type” to a column in colData,colnames(pData(cds))[3] = "cell_type".

kriswangchunyan avatar May 21 '24 07:05 kriswangchunyan