-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DimPlot cannot color correctly #4124
Comments
Please check to make sure all items in |
Hi! I also run into the same error. I am setting the Idents back to the originally created I checked my meta.data columns or NA or empty entries: So as far as I am aware my meta.data has no missing value. Do you know how to resolve this? |
Check to make sure that your Seurat object's metadata has retained the row names (should be cell barcode by default) as those are required for some Seurat plotting functions.
I've received a similar error message after manipulating the metadata data.frame, and found that I had accidentally converted it to a tibble and removed the rownames. |
Hey, Facing the same problem, but only for violin plots. Did someone find the way to fix it ? Thanks, |
I solved the error in the same way as @ncalistri did. |
How do I fix missing values from my seurat meta data? |
Hi there, I was trying to use Dimplot to do a simple visualization of my data. The identity I used is a column called "label_coarse" stored in metadata, and is of data type "chr", I used the code below
Idents(seu.integrated) <- "label_coarse"
DimPlot(seu.integrated, group.by = "label_coarse",reduction = "umap"),
and the following error pops up:
Error: Must request at least one colour from a hue palette.
do you know how to resolve this? Thank you very much in advance!
The text was updated successfully, but these errors were encountered: