Open adkinsrs opened 2 months ago
I imagine that this work could be on a new page where you are required to import a saved analysis that has the "compareGenes" step complete. The single-cell workbench could include a linkout to a new page, automatically passing along the analysis ID information as well.
We would also need to figure out which projectR algorithm to use as well. I believe any of them are feasible but a default needs to be decided (I guess PCA).
attaching image Chris Shults had in the original email as well
https://scanpy.readthedocs.io/en/stable/tutorials/spatial/basic-analysis.html
Leaving these here for potential reference
Step 4 will occur via cloud run function. Step 5 could potentially be a serverless function as well depending on the memory requirements.
scanorama.correct_scanpy
which will integrate and perform batch correction on the single-cell and spatial datasets.Many of these steps are redundant to the ProjectR workflow, with the biggest difference being the tool used. To me, the distance calculations would be the only potential memory-heavy stepl
Some example supplementary graphs after identifying cell type labels. It may also be worth just storing the weights per cluster as observation columns as well, so that we can take advantage of the extra data.
Showcases neighborhood enrichment + spatial visualization of clusters (though we would use the single-cell clusters instead of deriving them from the spatial dataset).
The Fertig lab also requested a similar "projectR->transfer clusters to second dataset" feature in gEAR as well. This may also loosely overlap with #411
We can also run leiden clustering on the spatial data itself and do a cross-modality clustering comparison for some validation.
From Chris Shults (+ my edits for gEAR purposes)
gEAR would be most useful for users to compare their scRNASeq or scATACSeq data to for cell annotation. They should directly take the unlabeled clusters derived from the single-cell workbench and project them onto a reference spatial dataset that is already annotated to determine cell types.
From Wei Song
Easy comparison or projection between spatial data and traditional scRNA-seq data, to match corresponding cell types, and to highlight marker gene expression, DEGs and so on.
(from me now)
I think the way this could work would be – DEGs would be calculated for each cluster against the remaining clusters in the "compare genes" step of the workbench. This will give us a list of unweighted genes per cluster (or a labeled gene collection as per #598). That list could then be applied with ProjectR to the reference dataset. All of this could be automated so that gEAR outputs a downloadable file (h5ad, Seurat object for R, etc.) for the user to take back to RStudio for downstream analysis.