stevexniu / SPOTS-paper

Supplementary notes for the SPOTS paper
MIT License
5 stars 2 forks source link

Error when running Seurat script #1

Open ttgump opened 1 year ago

ttgump commented 1 year ago

Hi, I am trying to run the Seurat analysis of the two spleen samples to get the labels of the spots (Macrophage, B, T cells). It will report an error in the line 76

spleen <- merge(rep_1, rep_2, add.cell.ids = c("Rep_1", "Rep_2"), project = "Spleen") Error in if (!DefaultAssay(object = value) %in% Assays(object = x)) { : the condition has length > 1

Do you have any suggest?

mcrewcow commented 1 year ago

Hi ttgump,

It is a bit hard to say right now what went wrong with your datasets merging. If the datasets have been already normalized, you could try adding the parameter merge.data = TRUE.

I would be glad to help you solving the issue if you provide more information about your datasets structure (View, head), whether any processing was performed before merging, and your R/Seurat versions.