Dear qiime2 developers,
When I run a linear mixed effect model with q2-longitudinal, I noticed that the command would fail if the -p-random-effects contains variables with missing values in the metadata file. For example when I run:
qiime longitudinal linear-mixed-effects
--m-metadata-file sample-metadata-modified.tsv
--m-metadata-file 2018-lme-filtered-core-metrics-results/shannon_vector.qza
--p-metric shannon_entropy
--p-random-effects Week,pH,conductivity,WaterTemp,WaterDepth,ammonia,nitrate
--p-group-columns TreatP
--p-state-column Week
--p-individual-id-column Site
--o-visualization 2018-lme-filtered-core-metrics-results/2018-lme-shannon.qzv
this would fail because variables "pH", "ammonia", "nitrate" contain missing values in the metadata for some samples.
when I got rid of these variables and run it again:
qiime longitudinal linear-mixed-effects
--m-metadata-file sample-metadata-modified.tsv
--m-metadata-file 2018-lme-filtered-core-metrics-results/shannon_vector.qza
--p-metric shannon_entropy
--p-random-effects Week,conductivity,WaterTemp,WaterDepth
--p-group-columns TreatP
--p-state-column Week
--p-individual-id-column Site
--o-visualization 2018-lme-filtered-core-metrics-results/2018-lme-shannon.qzv
The command worked perfectly, and I was able to obtain the visualization.
Is there any way to ask qiime to consider those variables with missing values, or should I just simply delete the rows containing missing values? Much appreciation!
Rui
- q2 version: 2020.8.0
- installation: docker image on an HPC