How zhangruochi/pepland works
PepLand turns peptide SMILES into atom/fragment heterogeneous graphs, pretrains representations in canonical and then non-canonical stages, and uses trained models for peptide embeddings or property prediction. The graph highlights fragmentation, graph construction, message passing, training, and inference, with prediction variants retained as distinct product capabilities. Some checkpoint and evaluation internals are unsampled; their paths identify subsystems, but uncertain wiring is omitted or marked dashed.
Main entry points: inference_pepland.py Embedding inference · pretrain_masking.py Pretraining workflow · data.py Graph dataset · pep2fragments.py Amiibo / AdaFrag
Components 20
Peptide representation
- Amiibo / AdaFrag
tokenizer/pep2fragments.py - Graph dataset
model/data.py - Heterogeneous graph builder
model/data.py - Pretraining graphs
cpkt/model/code/model/data.py
Pretraining and models
- Trained checkpoints
inference/cpkt - Multi-view HGT
model/model.py - Masking trainer
trainer.py - Pretraining workflow
pretrain_masking.py
Inference and prediction
- Inference workflow
inference.py - Embedding inference
inference/inference_pepland.py - Property predictors
cpkt/linear_pred_pharms/code/model/model.py - Atom prediction
cpkt/linear_pred_atoms/code/model/model.py - Bond prediction
cpkt/linear_pred_bonds/code/model/model.py
Data and utilities
- Evaluation statistics
data/eval/statistics.py - Dataset splitting
splitters.py - Graph feature processing
utils/process.py - Representation core
model/core.py - Shared graph utilities
utils/commons.py
Other components
- Researcher
- Peptide SMILES
Connections 20
- Researcher → Peptide SMILES: provides
- Peptide SMILES → Amiibo / AdaFrag: fragments
- Amiibo / AdaFrag → Graph dataset: supplies fragments
model/data.py - Graph dataset → Heterogeneous graph builder: builds graphs
model/data.py - Graph dataset → Dataset splitting: uses splitting
model/data.py - Pretraining workflow → Pretraining graphs: loads dataset
pretrain_masking.py - Pretraining workflow → Multi-view HGT: configures model
pretrain_masking.py - Pretraining workflow → Masking trainer: starts training
pretrain_masking.py - Masking trainer → Multi-view HGT: optimizes
trainer.py - Multi-view HGT → Trained checkpoints: produces weights
- Inference workflow → Embedding inference: runs inference
- Embedding inference → Trained checkpoints: loads model
inference/inference_pepland.py - Embedding inference → Graph feature processing: builds representations
inference/inference_pepland.py - Embedding inference → Property predictors: loads configured model
- Embedding inference → Atom prediction: loads configured model
- Embedding inference → Bond prediction: loads configured model
- Representation core → Shared graph utilities: uses utilities
model/core.py - Representation core → Graph feature processing: uses processing
model/core.py - Graph feature processing → Amiibo / AdaFrag: uses fragmentation
utils/process.py - Researcher → Evaluation statistics: reviews evaluation