【miloR】differential abundance testing

miloR适用于对比两个或多个条件下的生物学重复样本,通过构建KNN图和定义细胞邻域来检测条件间的差异丰度。建议K值至少为样本数的3到5倍,以确保足够的细胞数量。过大的K值可能导致稀有亚群比较困难。通过plotNhoodSizeHist函数选择K值,确保平均邻域大小不超过兴趣亚群的10%。对于抽样比例,大于100k细胞的数据集推荐p=0.05,其他情况p=0.1。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

library(miloR)
library(SingleCellExperiment)
library(scater)
library(scran)
library(dplyr)
library(patchwork)

miloR的使用场景:两个或多个condition,每个condition都有生物学重复。主要分为三步:

  1. Sampling of representative neighbourhoods
  2. Testing for differential abundance of conditions in all neighbourhoods
  3. Accounting for multiple hypothesis testing using a weighted FDR procedure that accounts for the overlap of neighbourhoods

对workflow的基本描述:

1,数据预处理与降维

2,minimizing batch effects.如harmony等整合多sample的算法,但不要使用conos

3,building the KNN graph

4,definition of cell neighbourhoods and index cell samplling 

5,testing for differencial abundance in neighbourhoods

选择参数的建议:

K值过小时每个neigubourhood的细胞数可能过少,以至于不能进行组间DA差异

建议K >= samples X3~5

但是如果K值选的过大,每个neighbou

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值