library(sva)
df=read.table("all_gene_count_raw.xls",head=T,check.names=F,comment.char="")
head(df)
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)
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!