# env/requirements.txt
#
# The runtime dependencies of the released package: pyproject.toml reads this file
# ([tool.setuptools.dynamic]), so every line here is installed by `pip install torchcell`.
# Rules:
#   - Only what `torchcell/` imports. Development tools live in the `dev` extra of
#     pyproject.toml, test tools in env/requirements_test.txt, type stubs in
#     env/requirements_mypy.txt, and packages only `experiments/` imports in the
#     `experiments` extra.
#   - Every module `torchcell/` imports directly is declared here, even when another
#     dependency happens to install it (numpy, tqdm, PyYAML, requests, ...).
#   - A line is a floor (`>=`). An upper bound or an exact pin carries a comment with
#     its reason and is listed in env/deps_policy.toml, which the weekly update job
#     (scripts/deps_weekly.py) reads: it raises the floors to the versions the test
#     suite last passed on and tries each bound without its cap.

# scientific computing stack
numpy>=2.0
pandas>=2.1.1
# parquet engine of pandas (label tables, isolate genotypes)
pyarrow>=15.0.0
# pandas Excel engines: openpyxl for .xlsx, xlrd for .xls
openpyxl>=3.1.2
xlrd>=2.0.1
# pure-python .Rdata reader (Boocock 2025; needs no R install)
rdata>=1.1.0
scipy>=1.11.4
networkx>=3.2.1
umap-learn>=0.5.3
# hypergraphs; hypernetx imports fastjsonschema at top level and declares it only
# from 2.4.3, so it stays listed until the hypernetx floor reaches 2.4.3
hypernetx>=2.3.10
fastjsonschema>=2.21.1
# chemistry: InChIKey from SMILES in torchcell/datamodels/compound_identity.py
rdkit>=2026.3.6
pillow>=10.0

# configuration
hydra-core>=1.3.2
omegaconf>=2.3
pyyaml>=6.0
python-dotenv>=1.0.0

# torch stack
# torch-scatter is not listed: it has no PyPI wheel and is installed after torch from
# the PyG wheel index (env/requirements_dependent.txt). The dataset loaders import
# without it.
torch>=2.11.0
torch_geometric>=2.8.0
torchmetrics>=1.2.1
lightning>=2.4.0

# logging and visualization
wandb>=0.22.0
matplotlib>=3.9  # boxplot(tick_labels=); the labels keyword was removed in 3.11
seaborn>=0.12.2
tqdm>=4.66

# ML stack
scikit-learn>=1.2.2
scikit-image>=0.22  # torchcell/sga watershed colony segmentation
geomloss>=0.2.6

# Transformer / Hugging Face stack
transformers>=4.55.4
# imported by the T5 tokenizer of the ProtT5 model
sentencepiece>=0.1.99
# the GenSLM codon tokenizer (torchcell/models/genslm.py)
tokenizers>=0.19

# Bio stack
biopython>=1.81
goatools>=1.3.1
gffutils>=0.12
GEOparse>=2.0.4
# genome-scale metabolic models
cobra>=0.29.1

# data stack
sortedcontainers>=2.4.0
attrs>=23.1.0
pydantic>=2.8.2
h5py>=3.9.0
lmdb>=1.4.1
filelock>=3.20.1

# web stack
requests>=2.31
certifi>=2024.2.2
# HTTP client of the tc-data and tc-lit clients (torchcell/datasets/client.py,
# torchcell/endpoint_http.py)
httpx>=0.27

# knowledge graph
# biocypher (stock upstream on PyPI; fork Mjvolk3/biocypher retired 2026-07). Exact
# pin: it writes the neo4j-admin import files, so a bump is adapter-path code under
# the build-manifest policy and moves with the 24 build scripts that name the version.
biocypher==0.15.2
# Driver 4.4 line. The cap has no recorded reason (added 2024-08-19); the weekly job
# tries the suite without it.
neo4j>=4.4.11,<5.0

# Literature / Zotero capture pipeline (MinerU OCR runs in the separate
# swanki-mineru env, so mineru is NOT listed here)
pyzotero>=1.5.0
# Read/write the Dendron bibliography (torchcell/literature/bib.py uses the v1
# modules bibdatabase and bwriter, which v2 rewrote)
bibtexparser>=1.4,<2
unidecode>=1.3.0

# Keyed read-only endpoints (tc-lit-server, tc-data-server)
fastapi>=0.115
uvicorn[standard]>=0.30
