Chemeleon framework for De Novo Generation (DNG) and Crystal Structure Prediction (CSP) tasks
Low maintenance activity. Last release 10 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install chemeleon-dngREADME as published on PyPI with version 0.1.5.
Chemeleon-DNG: Chemeleon for De Novo Generation
While Chemeleon GitHub repository focuses on text-guided crystal structure generation, this repository provides a framework for De Novo Generation (DNG) and Crystal Structure Prediction (CSP) tasks.
- CSP (Crystal Structure Prediction): Predicts stable crystal structures from given atom types
- DNG (De Novo Generation): Generates new crystal structures from scratch
Installation
Prerequisites
- Python 3.11+
- PyTorch >= 2.1.0
- CUDA (optional, for GPU acceleration)
Install via pip
pip install chemeleon-dng
Install from Source
If you don't have uv installed:
curl -LsSf https://astral.sh/uv/install.sh | sh
Then install the package:
git clone https://github.com/hspark1212/chemeleon-dng.git
cd chemeleon-dng
uv sync
Quick Start
Crystal Structure Prediction (CSP)
Generate crystal structures for given chemical formulas:
from chemeleon_dng.sample import sample
sample(
task="csp",
formulas=["NaCl", "LiMnO2"],
num_samples=10,
output_dir="results",
device="cpu"
)
[!TIP] Invoke
help(sample)to explore all available parameters and usage examples.
Command-Line Interface
After installing via pip, you can use the chemeleon-dng command directly:
chemeleon-dng --task=csp --formulas="NaCl,LiMnO2" --num_samples=10 --output_dir="results" --device=cpu
This command generates 10 crystal structures for the given formulas using the CSP task and saves the CIF files of the generated structures in the results/ directory using CPU.
De Novo Generation (DNG)
Generate novel crystal structures without predefined compositions:
from chemeleon_dng.sample import sample
sample(
task="dng",
num_samples=200,
batch_size=100,
output_dir="results",
device="cuda"
)