Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STUtility supported version of IntegrateData command? #33

Open
corecontingency opened this issue Aug 16, 2023 · 0 comments
Open

STUtility supported version of IntegrateData command? #33

corecontingency opened this issue Aug 16, 2023 · 0 comments

Comments

@corecontingency
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant