高精度空间转录组平台分析框架(python版本)

本文介绍高精度空间转录组分析的关键点,包括细胞表型、空间分析、细胞邻域等,并强调在10X HD、Xenium等平台上进行空间关系量化的重要性。使用scimap库进行距离计算、空间交互网络分析和样本接近度比较,为后续的细胞间距离关系、空间通讯与共定位、样本接近度和空间邻域研究提供指导。
摘要由CSDN通过智能技术生成
作者,Evil Genius
现在的趋势是空间转录组都走向了高精度平台,包括现在的10X HD、10X Xenium、华大、百迈客的平台,包括空间蛋白组常用的CODEX,那么高精度平台的分析上我们需要注意什么呢?
空间转录组一个关键的方面在量化不同尺度上细胞之间的空间关系,从相邻细胞的相互作用到多种类型细胞的空间网络。
高精度空转平台分析框架

其中包括的分析内容有:
Cell Phenotyping

🤹🏼♂️ Phenotype cells by unsupervised clustering
👽 Phenotype cells using a hierarchical probabilistic model
🙌 Add Regions of Interest (ROIs) for exploration
🤩 Explore the composition of defined cell types between samples and ROIs

Spatial Analysis

📍 Calculate and visualize distances between cell types
🤏 Cell-cell interaction/ co-occurrence analysis
⚖️ Compare proximity scores between samples
🔭 Search for spatial patterns

Cellular Neighbourhoods

🌳 Compute neighborhoods using cell-type or cluster information (includes LDA method)
🚀 Compute neighborhoods using expression data

我们这一篇来填补这些空间分析内容,前面空间降维聚类差异富集的基础处理大家自行分析。
先来看第一个,量化细胞间的距离关系,即拿到如下的结果,这个地方包括多个样本的距离比较处理
# import packages
import anndata as ad
# Load the data that we saved in the last tutorial (with ROIs added)
adata = ad.read_h5ad('/Users/aj/Dropbox (Partners HealthCare)/nirmal lab/resources/exemplarData/scimapExampleData/scimapExampleData.h5ad')
Compute the distances among cell types
import scimap as sm
adata = sm.tl.spatial_distance (adata, phenotype='phenotype')####就是细胞类型
sm.pl.spatial_distance (adata, figsize=(5,4))

对于包含多个图像的数据集,默认行为是对所有图像的距离取平均值。
sm.pl.spatial_distance (adata, heatmap_summarize=False, figsize=(9,4))

  • 28
    点赞
  • 29
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值