LieberInstitute / Visium_SPG_AD

Visium SPG AD project (n = 10) using Visium Spatial Proteogenomics (Visium-SPG) on dissections from the inferior temporal cortex (ITC) from Alzheimer's disease cases and controls.
https://research.libd.org/Visium_SPG_AD
4 stars 0 forks source link

Explore BayesSpace k results: are they related to pathology? #23

Closed lcolladotor closed 2 years ago

lcolladotor commented 2 years ago

One way to do this will be with boxplots for the percent of the spot covered by pTau and Abeta (separately) for each BayesSpace cluster. We'll likely make one page per sample (so PDFs with 10 pages) or one huge page with 10 facets. So in total this involves:

Screen Shot 2022-02-08 at 3 57 09 PM

To do this, we can use spatialLIBD::cluster_import() to read in the BayesSpace k search results from https://github.com/LieberInstitute/Visium_IF_AD/blob/master/code/08_harmony_BayesSpace/02_BayesSpace_k_search.R#L74-L78. You can use a similar code to https://github.com/LieberInstitute/Visium_IF_AD/blob/master/code/08_harmony_BayesSpace/02_BayesSpace_k_search.R#L35-L47 for loading the SpatialExperiment objects.

lcolladotor commented 2 years ago

Once #25 is done, we could check the frequency of the 5 pathological domains in each of the BayesSpace clusters for each k (and sample?).