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

Merge multiple instances of the same seurat object where steps were performed in parallel? #165

Closed
rdalbanus opened this issue Aug 9, 2023 · 1 comment

Comments

@rdalbanus
Copy link

Hello,

I'm very excited about the upcoming Seurat 5. While experimenting with some of the new methods, I wondered if there is a way to run different operations in a Seurat object in parallel and then combine them (e.g. using separate scripts and then combining the outputs back into a single object). Is this possible?

The closest I can think of is merge, but it would treat each copy of the seurat object as an independent experiment so that the pre-existing data would be duplicated. The function I have in mind would take two (or more) instances of a Seurat object and update the first object with all the slots only present in the other(s).

Example scenario: Run all the IntegrateLayers methods in parallel from the same starting Seurat object RDS file. Save each output Seurat object in an RDS file. Load all the RDS files and create a single object with all the new slots to compare the integrations.
The alternative is running each step in sequence (time-consuming) or manually adding the embedding/assay to the original object (cumbersome and error-prone). I feel this type of use scenario will become very common with the new layer-based framework.

Cheers

@rdalbanus
Copy link
Author

Wrong repository

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