空转第19课生态位绘图补充

本文介绍了如何使用生态位绘图来分析单细胞空间转录组数据,特别是针对恶性细胞周围的细胞类型组成。通过计算每个细胞类型的邻里得分,直接衡量相邻位置的细胞类型分布。详细步骤包括数据加载、处理、临近位点计算、得分计算、均一化和可视化。此外,提到了多种单细胞空间联合分析方法以及空间转录组的多种分析和绘图技术。
摘要由CSDN通过智能技术生成
作者,Evil Genius
这一篇要实现一下生态位绘图,参考图片在

首先我们需要理解这个图片的内容,解读如下:Characterizing ST spots by cell type neighborhood. In the top schematic grey spots indicate the 462 presence of the cell type of interest, orange indicates ‘Malignant’ spots, and dashed lines their 463 surrounding spots. the spots are colored by neighborhood 464 macrophage score. 内容就是选择目标spot,分析其周围spot含有细胞类型A的分数(比如肿瘤spot周围spot含有巨噬细胞的含量),并用颜色梯度进行空间展示。
这么做的意义,To characterize the cell type composition surrounding each ‘Malignant’ spot(目标细胞类型), we calculated, for each cell type, two score indices meant to capture their microenvironment. We defined the ‘neighborhood score’ as the fraction of surrounding spots containing that cell type。This score thus directly measures the cell type composition in the adjacent spots。

我们来绘制一下,效果如下:

我们来实现一下:
加载并读取数据
library(Seurat)
library(dplyr)
library(dbscan)
library(ggplot2)

cortex_sp = readRDS('/root/singlepipeline/demodata/cell2locat
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值