Entering edit mode
7 months ago
geno89
▴
20
I want to add a column containing cell type (ct) information into my Seurat object whether in Metadata or in ident type so i can colour plot them in my DIMplots. Following is the data frame (meta) i have. I am working with Xenium data. I tried doing
AddMetaData(object = xenium.obj, metadata = meta, col.name = 'cell.type')
Error in `[[<-`:
! None of the meta data requested was found in the data frame
Run `rlang::last_trace()` to see where the error occurred.
If your dataframe is named
meta
, this should work :