JEFworks-Lab / STdeconvolve

Reference-free cell-type deconvolution of multi-cellular spatially resolved transcriptomics data
http://jef.works/STdeconvolve/
98 stars 12 forks source link

deconvolved cell-types to seurat object #27

Closed AteeqMKhaliq closed 1 year ago

AteeqMKhaliq commented 1 year ago

Hi Brendan, Sorry for bothering you again, I have deconvolved the cell types and I have compared them in terms of clustering the barcodes transcriptionally as detailed in 10X tutorials. Now I have 18 beautiful clusters, is there a way I can add or convert or create a 2D t-SNE embedding into a Seurat object? I wanted to do the downstream analysis between these clusters. Sorry if I am asking too many questions, but trust me you are my last hope. Thanks again for creating such a beautiful tool. Best wishes, Regards, AK

bmill3r commented 1 year ago

Hi @AteeqMKhaliq,

Glad that you are finding STdeconvolve useful! Could you clarify a little bit more about the downstream analyses you would like to do? When you say add a 2D t-SNE into a Seurat object, you mean to perform t-SNE on the barcodes of your spatial datasets based on their gene counts? If that is the case, and your spatial data is already in a Seurat object, I believe Seurat already has a built in function to perform a t-SNE. The result of this should be placed in a slot in the Seurat object for dimensionality reductions.

Let me know if this helps or you have more questions, Brendan

AteeqMKhaliq commented 1 year ago

Thank you Brendan for the quick reply, I did dimensionality reduction on the counts matrix, and now I have 18 clusters, I wanted to run pathway analysis between these clusters and I feel Seurat makes it a bit easier for me to handle. So, can I include the dimensionality reductions in my existing Seurat object, if yes can you please let me know how to go about it? Thanks again Best, AK

bmill3r commented 1 year ago

Hi @AteeqMKhaliq,

Yes, Seurat does have built in functions to perform dimensionality reductions like t-SNE. Check out one of their tutorials here. Also the slot DimReduc will contain the outputs of the reduction that you will want. I am not a developer of Seurat, however, so you may want to look into the tutorials for this package specifically and reach out to the respective authors via their own GitHub page or website.

Hope this helps, Brendan

AteeqMKhaliq commented 1 year ago

Thank you, i have solved this, thanks for your help.

cathalgking commented 1 year ago

Hi @AteeqMKhaliq

I would also be interested in using this package to deconvolve the cell types and then perform the remaining analysis with Seurat. Can I ask how you did this? Thanks