I am doing differential abundance analysis of antibiotic resistance genes present in metagenomic samples using MetagenomeSeq (using fitZig). I have sequence files from control mice and mice treated with antibiotic at different time periods (samples harvested at 24, 48 and 72 hrs). I want to find out if there are any statistically significant antibiotic resistance genes present in the treatment samples compared to controls.
Also, these mice are grouped in cages where there are six mice in each cage, and I am trying to find out if adding the cage grouping as a covariate to the GLM has any effect. I am new to this type of analysis and I have run my model with and without the covariate. I am not sure how to figure out if the cage grouping covariate has any effect on the model. Any help would be appreciated.
My model matrix is as follows:
sampType <- c("control","control","control","control","hrs24","hrs24","hrs24","hrs24","hrs48","hrs48","hrs48","hrs48","hrs72","hrs72","hrs72","hrs72")
cageGrps <- c("9","9","10","10","11","11","11","12","13","13","13","14","15","15","15","16")
mod <- model.matrix(~sampType + cageGrps)
Thanks Kevin. Will try that.