MDITRE: scalable and interpretable machine learning for predicting host status from temporal microbiome dynamics
We present a new differentiable model that learns human interpretable rules from microbiome time-series data for classifying the status of the human host.
First install mditre package from pip via web or source. Then install pytorch.
pip install mditre
git clone https://github.com/gerberlab/mditre.git
cd mditre
pip install .
pip install torch==1.4.0 torchvision==0.5.0 -f https://download.pytorch.org/whl/cu100/torch_stable.html
pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.4.0 torchvision==0.5.0
We provide 2 tutorials, one for 16s-based data here and another for shotgun metagenomics (Metaphlan) based data here, which show how to use MDITRE for data loading and preprocessing, running the model code and using the GUI to interpret the learned rules for post-hoc analysis.
MDITRE operation requires a list of configuration options to be passed as arguments as explained here.