Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PanGBank tutorials

This repository contains runnable tutorials for PanGBank, a web-based platform for exploring, analyzing, and downloading pangenomes built with PPanGGOLiN.

These notebooks walk through real analyses, from AMR gene distribution to genome projection, so you can see PanGBank in action and adapt it to your own data.

Quick start

The best place to start is the paper use case: the complete, end-to-end workflow used in the PanGBank publication, from a pre-computed pangenome to AMR gene analysis and genome projection.

Google Colab: Open In Colab

Opens the notebook directly in Google Colaboratory — no installation required.

Running locally with docker

A self-contained docker image is available to run the tutorials:

docker run -p 8888:8888 ghcr.io/labgem/pangbank-tutorial:latest pangbank-tuto article_use_case

A jupyterlab instance will then be available at http://localhost:8888.

Running locally with conda

Note

Cloning the repository requires git-lfs.

  • deb: apt install git-lfs
  • rpm: dnf install git-lfs

Install the conda environment

git clone https://github.com/labgem/PanGBank-tutorial.git
cd PanGBank-tutorial
conda env create -f environment.yaml
conda activate pangbank-tutorial
pip install pangbank-cli pangbank-api[sdk]==0.5.0 plotly>=6.1.1 kaleido fa2

Then run jupyter-notebook in the tutorial directory:

cd tutorials/article_use_case/ && jupyter-notebook notebook.ipynb

Note

The notebook code expects the current working directory to be tutorials/article_use_case/. Be sure to launch Jupyter from the correct directory.

Other tutorials

Shorter, standalone notebooks covering focused analyses — several of these were used to build the paper use case above.

Antimicrobial resistance analyses: find Regions of Genome Plasticity (RGPs) and Spots with AMR-related annotations.

name description notebook
Acinetobacter_baumannii Downstream analysis based on pre-computed PPanGGOLiN outputs. Open In Colab
Acinetobacter_nosocomialis End-to-end tutorial using a small pangenome. Open In Colab

Genome Projection

name description notebook
Projection Augment a pangenome with AMR annotations, then project a new genome onto the annotated pangenome. Open In Colab

See the tutorials/ directory for the full list of notebooks and examples.

About

Tutorials for PanGBank: explore, analyze, and download PPanGGOLiN pangenomes

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

Contributors

Languages