No description
  • Python 87.9%
  • Lambdapi 7.5%
  • Answer Set Programming 3%
  • Shell 0.9%
  • Dockerfile 0.5%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-27 09:48:09 +01:00
.github/workflows Add mockdatabase build before running tests 2026-10-27 09:45:21 +01:00
conf feat: Add a single reaction specific to a pathway rule 2026-10-26 16:50:16 +01:00
container remove pathologic and wip towards rule kit 2026-10-12 16:21:12 +02:00
docs tests: change test folder names 2026-10-22 10:40:37 +02:00
src/pan2met feat: Add a single reaction specific to a pathway rule 2026-10-26 16:50:16 +01:00
submodules Add metabiantes as submodule and create a mock SQLite database 2026-09-09 14:44:54 +02:00
tests fix: make the taxonomy dependent functional test skip when no taxonomy dump is available 2026-10-27 09:48:09 +01:00
.direnv feat: Initial attempt to reproduce the decision rules of PathoLogic 2026-01-23 17:09:40 +01:00
.dockerignore tests: added tests on BioPAXFolder / DuckDB rdf knowledgebase and discovered some errors 2026-10-02 10:32:28 +02:00
.gitignore tabula rasa 2026-09-09 10:50:30 +02:00
.gitmodules tests: change test folder names 2026-10-22 10:40:37 +02:00
.pre-commit-config.yaml chore: remove end-of-file-fixer from precommits hooks 2026-09-23 11:26:16 +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
CHANGELOG.md docs: Update 2026-09-21 15:49:37 +02:00
CODE_OF_CONDUCT.md docs: Add changelog, code of conduct and contributing documentation 2026-09-10 17:17:34 +02:00
codemeta.json Remove pathwaytools from codemeta 2026-10-14 11:07:05 +02:00
CONTRIBUTING.md docs: Update 2026-09-21 15:49:37 +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 make the tests standalone 2026-10-22 11:36:32 +02:00
pyproject.toml force ouisparql version >=0.2.0 for duckdb driver 2026-10-22 10:21:17 +02:00
README.md Add pip install . to docs 2026-10-22 15:24:21 +02:00
TODO.md Add TODO list 2026-10-12 14:02:45 +02:00
uv.lock update github readthedocs workflow 2026-10-22 15:22:53 +02:00
VERSION bump version 2026-10-27 09:16:27 +01:00

pan2met

CI Lint Typecheck Docs License: CeCILL-C

Version

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
    
    pip install .
    

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

    pan2met --version
    

Setup

Create a configuration file, in e.g. configuration.yaml, from provided example configuration file. You can consult the configuration yaml schema the configuration must stick to.

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 knowledge_base 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.

Download the reference material

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.