How labgem/pan2met works
pan2met is a Python library and CLI for inferring metabolic pathways and related pangenome-scale results from reaction, protein, and pangenome inputs. The principal workflow accepts catalyzed reactions, consults a configured metabolism knowledge base, applies pathway-inference rules, and writes inferred pathways. The CLI also exposes reactome, reverse-reactome, protein-complex, and pathway-operon-filler operations; the package includes pangenome analysis and genomic-context capabilities. Edges follow shown CLI dispatches, imports, and documented behavior; unsampled implementations are represented only where the tree and index establish a subsystem.
Main entry points: __main__.py Command dispatcher · __init__.py Knowledge base API · metabolism.py Rule-based metabolism · reactome.py Reactome inference
Components 17
CLI and configuration
- Command dispatcher
src/pan2met/__main__.py - Configuration
src/pan2met/config.py
Knowledge base
- Knowledge base API
src/pan2met/io/knowledge_base/__init__.py - MetaBiantes adapter
src/pan2met/io/knowledge_base/metabiantes.py - PADMet adapter
src/pan2met/io/knowledge_base/padmet.py - BioPAX adapter
src/pan2met/io/knowledge_base/biopax_folder.py
Metabolic inference
- Reactome inference
src/pan2met/inference/reactome.py - MinPath inference
src/pan2met/inference/minpath/minpath.py - Rule-based metabolism
src/pan2met/inference/rulekit/metabolism.py - Rule engine
src/pan2met/rulekit/rulekit.py - Protein complexes
src/pan2met/inference/proteic_complex.py - NCBI taxonomy
src/pan2met/taxonomy.py
Pangenome analysis
- Pathway operon filler
src/pan2met/inference/pathway_operon_filler.py - Genomic context
src/pan2met/inference/genomic_context.py - Pangenome input
src/pan2met/io/pangenome.py - Pangenome analyses
src/pan2met/analysis
Other components
- User
Connections 21
- User → Command dispatcher: runs command
README.md - Command dispatcher → Configuration: loads configuration
src/pan2met/__main__.py - Command dispatcher → Reactome inference: dispatches inference
src/pan2met/__main__.py - Command dispatcher → MinPath inference: dispatches inference
src/pan2met/__main__.py - Command dispatcher → Rule-based metabolism: dispatches inference
src/pan2met/__main__.py - Command dispatcher → Protein complexes: dispatches inference
src/pan2met/__main__.py - Command dispatcher → Pathway operon filler: dispatches analysis
src/pan2met/__main__.py - Configuration → Knowledge base API: configures backend
src/pan2met/config.py - Knowledge base API → MetaBiantes adapter: selects backend
src/pan2met/io/knowledge_base/__init__.py - Knowledge base API → PADMet adapter: selects backend
src/pan2met/io/knowledge_base/__init__.py - Knowledge base API → BioPAX adapter: selects backend
src/pan2met/io/knowledge_base/__init__.py - Reactome inference → Knowledge base API: queries reactions
src/pan2met/inference/reactome.py - MinPath inference → Knowledge base API: queries pathways
src/pan2met/inference/minpath/minpath.py - Rule-based metabolism → Knowledge base API: queries pathway data
src/pan2met/inference/rulekit/metabolism.py - Rule-based metabolism → Rule engine: uses rules
src/pan2met/inference/rulekit/metabolism.py - Rule-based metabolism → NCBI taxonomy: uses taxonomic range
src/pan2met/inference/rulekit/metabolism.py - Reactome inference → Protein complexes: infers complexes
src/pan2met/inference/reactome.py - Protein complexes → Knowledge base API: queries components
src/pan2met/inference/proteic_complex.py - Pathway operon filler → Genomic context: uses context search
src/pan2met/inference/pathway_operon_filler.py - Command dispatcher → Pangenome input: reads pangenome inputs
- Pangenome input → Pangenome analyses: supplies analysis data
src/pan2met/analysis/completion_pangenome.py