STUtility icon indicating copy to clipboard operation
STUtility copied to clipboard

Enrichment plot function in STUtility

Open krigia opened this issue 1 year ago • 2 comments

Hello @jbergenstrahle @ludvigla @davidecrs

Does STutility have any option/function to generate enrichment spatial plots and UMAPs for Visium data? Similar to those generated by another pipeline for spatial analysis:

image

Thank you.

krigia avatar Jun 17 '23 01:06 krigia

Hi @krigia,

Could you please elaborate a little? If the goal is simply to calculate an enrichment score based on a gene set there are some options available. You could for example use the AddModuleScore function from Seurat to compute an enrichment score that can be plotted with FeaturePlot on a UMAP or with ST.FeaturePlot to visualize it spatially.

Another option is to use the fgsea R package to compute enrichment scores. AUcell and Ucell might also be interesting alternatives.

Cheers, Ludvig

ludvigla avatar Jun 26 '23 08:06 ludvigla

@ludvigla Thank you. I was able to run AddModuleScore and estimate an enrichment score for each spot. Is there any way to estimate an enrichment score for each cluster separately (and no individual spot)? Thank you!

krigia avatar Jul 13 '23 23:07 krigia