Dear all,
I am using seurat to analyze spatial data. I have 8 datasets from 2 batches merged together. I aim to use dittoSeq for visualizations, however, I am facing a problem regarding NA values. The batches are saved in the metadata slot of my seurat object. DimPlot from Seurat is working well.
dittoDimPlot(brain.merge, var="Batch")
Error: Cannot find 'NA' in this Seurat object
Best, Nina
You're right. After RunUMAP it changes to "umap" and it is working without any error.
Thanks!
Great, you're welcome. I submitted a PR to dittoSeq GitHub with a fix for this: https://github.com/dtm2451/dittoSeq/pull/123
I've updated the fix and just pushed through to both the release and devel versions of the package! It'll take a few days to go through.
Ultimately, running RunUmap and then re-running dittoDimPlot() was indeed your correct path... ATpoint and my fix just makes it so you'd actually have gotten the error message -- "No dimensionality reduction slots in 'object'. Add one, or provide embeddings directly to 'reduction.use'." -- which was intended to point you in that direction.