How do I change the identity of a sample from spatial 'Visium' data preprocessing in Seurat v3? I'm wanting to create a merged object in Seurat using 2 10x Visium 'slices'. However, when I create an object, Seurat assigns an identity &quot;SeuratProject&quot; to the objects (by default I'm guessing; see attached plot). This will be problematic when I attempt to merge the objects as there will be unintended duplicates of the objects.
Here's what I'm attempting to use to create the 10x Spatial Object:
brain1 &lt;-Load10X_Spatial(data.dir = &quot;~/xxx&quot;, filename = &quot;filtered_feature_bc_matrix.h5&quot;, assay = &quot;Spatial&quot;, slice = &quot;slice1&quot;, filter.matrix = TRUE, to.upper = FALSE)
I'd need the ability to assign unique ident to each of these (and any subsequent) slices/data.
Thank you!!
You can re-assign orig.ident after creating the object. For example:
brain1 &lt;-Load10X_Spatial(data.dir = &quot;~/xxx&quot;, filename = &quot;filtered_feature_bc_matrix.h5&quot;, assay = &quot;Spatial&quot;, slice = &quot;slice1&quot;, filter.matrix = TRUE, to.upper = FALSE)
brain1$orig.ident &lt;- &quot;Visium&quot;