这是一个用于分析微生物组组成数据中平衡的R包。使用了一种前向选择方法来鉴定两组相对丰度或平衡相关的响应类群,以此来寻找特征菌群。
library(devtools) install_url(url="https://github.com/malucalle/selbal/archive/master.zip",INSTALL_opt= "--no-multiarch") library(selbal)
data <- read.table("data.txt", header = T,row.names=1,sep = '\t',stringsAsFactors=T) x <- data[,1:64] y <- data[,65]
CV.Bal <- selbal.cv(x,y,n.fold = 5, n.iter = 10,covar = NULL, logit.acc = "AUC")
CV.Bal$opt.nvar
/TJPROJ5/META_ASS/16s/mengyanliang/work/Process_optimization/2022_Q3/Selbal/Selbal.R
Rivera-Pinto, J.; Egozcue, J. J.; Pawlowsky-Glahn, V.; Paredes, R.; Noguera-Julian, M.; Calle, M. L.; Lozupone, Catherine (2018). Balances: a New Perspective for Microbiome Analysis. mSystems, 3(4), –. doi:10.1128/mSystems.00053-18