Hello, I know that MaAsLin2 does not consider all features (dependent variables such as taxa) together in a single analysis. However, I am encountering an unusual problem:
-
I have one metadata file and two data files (data file 1 and data file 2).
-
The two data files have a number of dependent variables (taxa), some of which are unique to the data file 1 and data file 2, and a couple are the same dependent variable that is just present in both data file 1 and data file 2 (e.g., OTU_Shannon).
-
When I use the same metadata against two different data files, I get different responses for associations between my metadata and the identical shared dependent variable (e.g., OTU_Shannon).
My codes are below - does someone know what the issue may be here?
fit_data = Maaslin2(
input_data = data_file_1,
input_metadata = metadata,
output = “Energy”,
analysis_method = “LM”,
normalization = “NONE”,
standardize = TRUE,
min_prevalence = 0.1,
min_abundance = 0.001,
plot_heatmap = TRUE,
fixed_effects = c(“energy”))
fit_data = Maaslin2(
input_data = data_file_2,
input_metadata = metadata,
output = “Energy”,
analysis_method = “LM”,
normalization = “NONE”,
standardize = TRUE,
min_prevalence = 0.1,
min_abundance = 0.001,
plot_heatmap = TRUE,
fixed_effects = c(“energy”))
Again, the metadata is identical: “energy” is going up against data file 1 and data file 2, both of which have the same dependent variable (OTU_Shannon) but also unique dependent variables (specific taxa). In data file 1, energy is associated with OTU_Shannon, but when using data file 2 it is not.