Hi all,
I’m using Maaslin3 for the first time and I have a few questions about random effects. I have a dataset that includes 3 microbiome sample types per individual, with individuals from different species. I’m interested in the differences in presence/absence and relative abundances between the sample types. I’m currently using the following formula: formula = '~ sample_type + reads + (1|subject_id)’, where reads = sample read depth, and with small random effects.
I have the following questions:
- Since there are multiple host species in the dataset, is it sensible to add host species identity and host phylogeny as added random effects to the formula? Or is it sufficient to add only subject ID as a random effect, since subject ID and host species+phylogeny are collinear?
- If I do want to add host species and phylogeny as random effects, how can I do this within Maaslin3? I have a species co-variance matrix with phylogentic distances between species, is it possible to add this? Or can I add for example phylogenetic eigenvectors?
Many thanks in advance!