STUtility icon indicating copy to clipboard operation
STUtility copied to clipboard

STUtility supported version of IntegrateData command?

Open corecontingency opened this issue 1 year ago • 0 comments

The IntegrateData command from base Seurat deletes the tools/Staffli subobject which contains the Spatial Data that STUtility is storing. This normally would not be a problem as it is useless to use SpatialData in the integrated object.

However, in my case, I would like to use the IntegrateData() function to merge multiple samples together, than normalize that combined sample. Then, I use the subset() function to separate out each individual sample from the merged object.

I am using this to remove batch effect between spatial data samples. Unfortunately, tools/Staffi item is deleted from the merged object when the IntegrateData() function is used, which deletes all spatial data that STUtility stores. This makes it impossible to run commands like SpatialPlot as the spatial data is deleted.

Is there an STUtility supported version of the IntegrateData command? Or if not, a way to normalize multiple samples together to remove batch effect variation between samples?

Reproducible sample code is here. Notice how the last two graphs do not plot as the spatial data has been deleted. Any example spatial dataset should work, but let me know if you need a copy of mine.

Best, corecontingency

corecontingency avatar Aug 16 '23 01:08 corecontingency