Views
No views yet

1conda env create -f environment.yml # or use micromamba instead of conda
2
3conda activate flow
4
5pip install torch-scatter -f https://data.pyg.org/whl/torch-2.0.0+cu117.html
6
7pip install joblib lmdb easydict
8git clone https://github.com/Ced3-han/PepFlowww.git1export PYTHONPATH=$(pwd):$PYTHONPATH
2python setup.py developPepMerge_release.zip contains filtered data of peptide-receptor pairs. For example, in the folder 1a0n_A, the P chain in the PDB file 1a0n is the peptide. In this folder, we provide the FASTA and PDB files of the peptide and receptor. The postfix _merge means the peptide and receptor are in the same PDB file. We also extract the binding pocket of the receptor, where our model is trained to generate peptides based on the binding pocket. You can also download PepBDB and QBioLip, and use playgrounds/gen_dataset.ipynb to reproduce the dataset.PepMerge_lmdb.zip contains several different splits of the dataset. We use mmseqs2 to cluster complexes based on receptor sequence identity. See playgrounds/cluster.ipynb for details. The names.txt file contains the names of complexes in the test set. You can use models_con/pep_dataloader.py to load these datasets. We suggest putting these LMDBs in a single Data folder.model1.pt and model2.pt are two checkpoints that you can load using models_con/flow_model.py together with the config file configs/learn_angle.yaml. We suggest using model1 for benchmark evaluation and model2 for real-world peptide design tasks, the latter is trained on a larger dataset.models_con/sample.py to sample, and models_con/inference.py to reconstruct PDB files.models_con/pep_dataloader/preprocess_structure to parse a single data point.eval. Please refer to our paper for details and download the corresponding packages for evaluation. Please use different python environments for these tools.train.py on single GPU training and train_ddp.py for multiple GPT training.1@InProceedings{pmlr-v235-li24o,
2 title={Full-Atom Peptide Design based on Multi-modal Flow Matching},
3 author={Li, Jiahan and Cheng, Chaoran and Wu, Zuofan and Guo, Ruihan and Luo, Shitong and Ren, Zhizhou and Peng, Jian and Ma, Jianzhu},
4 booktitle={Proceedings of the 41st International Conference on Machine Learning},
5 pages={27615--27640},
6 year={2024},
7 editor={Salakhutdinov, Ruslan and Kolter, Zico and Heller, Katherine and Weller, Adrian and Oliver, Nuria and Scarlett, Jonathan and Berkenkamp, Felix},
8 volume={235},
9 series={Proceedings of Machine Learning Research},
10 month=21--27 Jul},
11 publisher={PMLR},
12}