A collection of Jupyter notebooks for visualizing outputs from AMR++ (resistome profiling), MetaPhlAn (taxonomic profiling), and HUMAnN (functional profiling) on human gut metagenome datasets. These scripts generate PCA plots, bar charts, heatmaps, bubble plots, and clustered visualizations for resistome and taxonomic abundance analysis.
- Visualizations Include:
- PCA plots for HUMAnN pathway abundance by country.
- Bar plots and stacked contributions for AMR classes, mechanisms, and genes.
- Heatmaps (scaled and clustered) for taxonomic and AMR profiles.
- Bubble plots for non-zero abundances.
- Supports country-wise metadata merging for grouped analysis.
- Easy customization: Update file paths in notebooks to your data.
Other visualisation plot examples provided in 'images/'.
-
Clone the repo: git clone https://github.com/dxsillydzeko/AMR-Metagenome-Visualizer.git cd AMR-Metagenome-Visualizer
-
Install dependencies (use a virtual environment like venv or conda): pip install -r requirements.txt
-
Install Jupyter: pip install jupyter
-
Launch Jupyter: jupyter notebook
- Place your data files (e.g., merged_pathabundance-cpm.tsv, metadata.csv) in the
data/folder or update paths in the notebooks. - Open a notebook in Jupyter (e.g.,
notebooks/humann_pca_plot.ipynb). - Run the cells – outputs will generate plots inline or as saved files (e.g., PNGs).
- Customize: Edit country/sample metadata columns as needed.
For HUMAnN PCA:
- Input: Pathway abundance TSV and country metadata CSV.
- Output: Scatter plot with country-wise colour coding.
See notebooks for detailed comments.
- AMR++ outputs: AMR++ will provide you with gene,class,type,mechanism outputs for all samples seperately, you shall merge them into combined gene/class/mechanism CSV files.
- MetaPhlAn: Species abundance TSV file for all samples.
- HUMAnN: Pathway abundance TSV (CPM normalized) file.
- Metadata: CSV file with SAMPLE and COUNTRY columns.
Sample input file formats provided in 'data/'.
Pull requests welcome! See CONTRIBUTING.md for guidelines.
MIT License – see LICENSE for details.
Built for visualisation aid in resistome analyses on human gut metagenomes. Inspired by tools like AMR++, MetaPhlAn, and HUMAnN.

