immunedeconv估算免疫细胞比例

immunedeconv:一个R软件包,用于统一访问从大量RNA测序数据估算免疫细胞组分的计算方法。

an R package for unified access to computational methods for estimating immune cell fractions from bulk RNA sequencing data.

1. 安装

conda create -n deconvolution
conda activate deconvolution
conda install -c bioconda -c conda-forge r-immunedeconv

## 连接超时
#install.packages("remotes")
#remotes::install_github("icbi-lab/immunedeconv")

#devtools::install_github('icbi-lab/immunedeconv', repos='http://cran.rstudio.com')

2. 准备表达谱数据

The input data is a gene ×× sample gene expression matrix. In general values should be

  • TPM-normalized
  • not log-transformed.
gene_expr <- read.table("/data/query_expr_ready.txt",
                        sep='\t',header=T)

head(gene_expr)

colnames(gene_expr)
rownames(gene_expr)

rownames(gene_expr) <- gene_expr$ID

gene_expr <- gene_expr[,-1]
exprs_matrix <- as.matrix(gene_expr)
head(exprs_matrix)

3. 估算免疫细胞比例

library(tidyr)
library(immunedeconv)

res = deconvolute(exprs_matrix, "quantiseq")

res = deconvolute(exprs_matrix, "quantiseq") %>%
  map_result_to_celltypes(c("T cell CD4+"), "quantiseq")

knitr::kable(res, digits=2)

res1 <- deconvolute(your_mixture_matrix, "mcp_counter")

res2 <- deconvolute(your_mixture_matrix, "xcell")

res3 <- deconvolute(your_mixture_matrix, "epic")

## method: 
#quantiseq
#timer
#cibersort
#cibersort_abs
#mcp_counter
#xcell
#epic

参考:

https://github.com/icbi-lab/immunedeconv

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值