No description
  • Python 50.7%
  • YAML 41.6%
  • Lambdapi 5%
  • Answer Set Programming 2%
  • Shell 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-10 17:02:44 +02:00
conf Switch from graph_tool to networkx 2026-06-17 16:01:32 +02:00
container feat: Add apptainer definition file 2026-09-09 10:51:32 +02:00
docs fix(docs): deps: use doc optional dependencies 2026-09-10 16:59:07 +02:00
performance refactoring 2026-06-10 16:57:23 +02:00
src/pan2met feat: pathway operon filler 2026-09-10 16:33:00 +02:00
submodules Add metabiantes as submodule and create a mock SQLite database 2026-09-09 14:44:54 +02:00
tests feat: pathway operon filler 2026-09-10 16:33:00 +02:00
.direnv feat: Initial attempt to reproduce the decision rules of PathoLogic 2026-01-23 17:09:40 +01:00
.gitattributes chore: Setup pixi as an alternative to conda env 2025-12-17 11:10:45 +01:00
.gitignore tabula rasa 2026-09-09 10:50:30 +02:00
.gitmodules Add metabiantes as submodule and create a mock SQLite database 2026-09-09 14:44:54 +02:00
.pre-commit-config.yaml feat: Update sql queries to match to new metabiantes schema (item id is now the BioCyc identifier) 2026-09-08 15:16:21 +02:00
.readthedocs.yaml fix(docs) readthedocs: use miniforge3 python toolset 2026-09-10 16:52:05 +02:00
AUTHORS feat: A script to identify chimeric pathways 2026-05-27 13:04:24 +02:00
LICENSE feat: Progress towards an import of a subset of MetaCyc 2025-11-25 16:13:14 +01:00
MANIFEST.in fix: MANIFEST.in 2026-04-14 15:18:46 +02:00
pixi.lock rm uv.lock and update pixi.lock 2026-09-10 14:38:56 +02:00
pyproject.toml chore: Update pixi lock 2026-09-09 14:27:28 +02:00
README.md docs: Add readthedocs documentation URL 2026-09-10 17:02:44 +02:00
VERSION Initial commit 2025-11-04 10:26:43 +01:00

pan2met

A python library / CLI to predict metabolic networks at the pangenome scale.

Usage

To predict metabolic pathways with pan2met, you will need a set of catalyzed reactions. To identify such a set of reactions, you can use the nextflow workflow pan2met-wf. This workflow supports multiple enzyme annotation sources to map proteins to MetaCyc reactions.

Given a file reaction.list with a list of MetaCyc reaction identifiers, you can use the following command to predict pathways using a set of decision rules.

python3 -m pan2met metabolism \
    --reactions reaction.list \
    --output pathway.list \
    --taxon-id 561 \
    --reason pan2met.log
usage: pan2met metabolism [-h] -r REACTIONS -o OUTPUT [--reason REASON] [-t TAXON_ID]

infer the (pan)metabolism (i.e., a set of expected metabolic pathways)

options:
  -h, --help            show this help message and exit
  -r, --reactions REACTIONS
                        a file listing the reactions found in the (pan)-reactome
  -o, --output OUTPUT   the path of the output file listing all identifiers of pathway infered to be present
  --reason REASON       the path to an output file with a reason log.
  -t, --taxon-id TAXON_ID
                        the NCBI-Taxonomy tax id of the target organism.

For more information on how to use pan2met, please refer to the pan2met documentation

Installation

From source

  1. Clone this repository

    git clone https://github.com/labgem/pan2met.git
    cd pan2met
    
  2. Install locally in a pixi virtual environment

    pan2met uses graph-tool to manage the pangenome graph datastructure. As graph-tool is not available on PyPI.org, being a C++ backed Python package, you will need to install graph-tool on your own with your OS package management system, or using the conda-forge distribution. For an easy environment creation, you can use pixi:

    pixi shell
    

    Then, the pan2met command line interface should be installed and available in your PATH:

    pan2met --version
    

Setup

Create a configuration file, in e.g. conf/configuration.ini, from provided example configuration file.

You will most probably need to adapt the [reference] section.

  1. Update ncbi_taxonomy directory path, with the path to the directory with a dump of the NCBI-Taxonomy.
  2. Update the source key, to either metabiantes or padmet depending of the format of metabolism knowledge base to use.

If you use metabiantes as the reference knowledge base for metabolism, please refer to the metabiantes git repository for instructions on how to setup a metabiantes SQL database.

How to download support materials

Reference taxonomy from the NCBI Taxonomy database

Download a NCBI Taxonomy dump from https://ftp.ncbi.nih.gov/pub/taxonomy/ to a local folder, and adapt the path in the configuration file in section [reference], key ncbi_taxonomy.