🎑 Con2SES: Grid-Context Convolutional Model for Efficient Molecular Surface Construction from Neighboring Point Clouds
This repository implements Con2SES, including data preprocessing, loading, model training, and evaluation. The code is written in Python using PyTorch, enabling rapid prototyping and experimentation. In addition to the Python implementation, a C++ version of the Con2SES inference pipeline using LibTorch is included in the AmberTools25 release.
If you use this code, please cite the paper using the BibTeX reference below.
@article{wu2025grid,
title={Grid-Context Convolutional Model for Efficient Molecular Surface Construction from Point Clouds},
author={Wu, Yongxian and Luo, Ray},
journal={Journal of chemical theory and computation},
volume={21},
number={15},
pages={7648--7661},
year={2025},
publisher={ACS Publications}
}Requirements
-
Python >= 3.9
-
Packages
pip install -r requirements.txt
All datasets used for training and validation are located in the datasets folder. The grid data can be generated using the PBSA module in AMBER.
To train the model on all image files:
# Con2SES-2D
sh scripts/2d/bash/train_on_sparse.sh
# Con2SES-3D
sh scripts/3d/bash/train_3d.shTo eval the model on desired image files:
# Con2SES-2D
python scripts/2d/test.py
# Con2SES-3D
sh scripts/3d/bash/test_3d.sh