FrederickHuangLin / ANCOMBC

Differential abundance (DA) and correlation analyses for microbial absolute abundance data
https://www.nature.com/articles/s41467-020-17041-7
108 stars 29 forks source link

bug fix for ancombc2 when a similar function with model.matrix function is loaded from AlgDesign package #285

Closed ChiLiubio closed 1 month ago

ChiLiubio commented 2 months ago

When the AlgDesign package is loaded, its model.matrix function interferes with the model.matrix from the stats package used in the ancombc2 function, making it unable to recognize data formats similar to data.frame. It is fixed by using stats::model.matrix to avoid wrong call.