Rna-seq 去除批次效应ComBat-seq

ComBat-seq




library(sva)
df=read.table("all_gene_count_raw.xls",head=T,check.names=F,comment.char="")
head(df)



attachments-2024-01-DTp1iVEA659cb531094a5.png

batch=c("3D","3D","3D","7D","7D","7D","3D","3D","3D","7D","7D","7D")

#group=c(0,0,0,0,0,0,1,1,1,1,1,1)
df[,-c(1,13)] <- ComBat_seq(df[,-c(1,13)], batch=batch, group=NULL)
write.table(df,file = "all_gene_count.xls",sep="\t",quote = F,row.names = F)
参考:https://github.com/zhangyuqing/ComBat-seq
  • 发表于 2024-01-09 10:54
  • 阅读 ( 1385 )
  • 分类:转录组

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

702 篇文章

作家榜 »

  1. omicsgene 702 文章
  2. 安生水 350 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 82 文章
  6. rzx 78 文章
  7. 红橙子 78 文章
  8. CORNERSTONE 72 文章