Hi. I've been using the new ancombc plugin within qiiime2 python notebooks, and I'd like to customize the plotting of results. I know I can tabulate the differentials artifact and then extract/export to file, but is there a simpler way to read/view the differentials in a dataframe?
Here is an example I use to generate differentials results
from qiime2.plugins.composition.methods import ancombc
ancombc_formula = "Treatment"
reference_levels = ["Treatment::Positive_Control"]
ancombc_differentials = ancombc(table=feature_table, metadata=metadata_table, formula=ancombc_formula,
p_adj_method='holm', prv_cut=0.1, lib_cut=0,
reference_levels=reference_levels, # comment out this argument if no reference is used
neg_lb=False, tol=1e-05, max_iter=100,
conserve=False,
alpha=0.05).differentials
With metadata or some feature table artifacts it is possible to view the data in a dataframe, e.g.,
feature_table.view(pd.DataFrame)
metadata.view(qiime2.Metadata).to_dataframe()
Is there an option to visualize the differentials results as well. Or the tabulated artifact of differentials?
Thank you very much for the feedback.