Converting Spectre file to Seurat Object after running FlowSOM #110
-
Hi, Thank you again for a great package! I was wondering if there is a way to convert the Spectre data.table file obtained after running FlowSOM (or maybe even after t-sne or umap analysis) into a Seurat object? The main reason I'd like to do this is to use the mouse cell atlas as a reference for integration and label transfer with Seurat. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@pavitraviswanath yes absolutely you can! We are doing a bunch of integration of cytometry and single-cell multiomic data with some new functions and workflows that will come out with v2 (it works with v1 now, but it's just more fiddly). If you are interested in trying it out, we could certainly give you early access! In the meantime, creating a Seurat object from the data.table is pretty straightforward. I'll put some instructions online and send you a link -- I've tested a few of the integration approaches after doing this conversion and they seem to work just fine. |
Beta Was this translation helpful? Give feedback.
-
To get you started:
Here's a quick example with the demo dataset:
Here you pick whichever columns you want for the primary 'data' (i.e, in this case replacing counts)
Here we can turn the data into a matrix, then into a sparse matrix, and transpose it.
We can then use this input to initialise a Seurat object.
You can then explore the object and add extra data
|
Beta Was this translation helpful? Give feedback.
@pavitraviswanath
To get you started:
Here's a quick example with the demo dataset:
Here you pick whichever columns you want for the primary 'data' (i.e, in this case replacing counts)
Here we can turn the data into a matrix, then into a sparse matrix, and transpose it.
We can then use this input to initialise a Seurat obj…