Entering edit mode
2.8 years ago
aimanbarki
▴
20
I am trying to integrate after using SCT transform and receiving the following error:
Integrating data
Error: Cannot add more or fewer cell meta.data information without values being named with cell names
obj.list <- SplitObject(merged_seurat_filtered, split.by = 'orig.ident')
for(i in 1:length(obj.list)){
obj.list[[i]] <- NormalizeData(object = obj.list[[i]])
obj.list[[i]] <- FindVariableFeatures(object = obj.list[[i]])
}
# select integration features
features <- SelectIntegrationFeatures(object.list = obj.list)
# find integration anchors (CCA)
anchors <- FindIntegrationAnchors(object.list = obj.list,
anchor.features = features)
# integrate data
seurat.integrated <- IntegrateData(anchorset = anchors)
# Scale data, run PCA and UMAP and visualize integrated data
seurat.integrated <- ScaleData(object = seurat.integrated)
seurat.integrated <- RunPCA(object = seurat.integrated)
seurat.integrated <- RunUMAP(object = seurat.integrated, dims = 1:20)
seurat.integrated <- RunTSNE(object = seurat.integrated, dims = 1:20)
Can someone explain the error? Why I am getting this? What I need to do?
I am not sure what is causing this error. I think that the seurat github issues page would be lead to a quicker answer, though.