Skip to main content

An automated workflow for protein condensate simulations, covering the main stages from coarse-grained (CG) to all-atom (AA)

Project description

CondenSimAdapter

CondenSimAdapter is an automated workflow for protein condensate simulations, covering the main stages from coarse-grained (CG) to all-atom (AA).

Installation

Quick Start (Recommended)

Step 1: Create conda environment and install heavy dependencies

# Create environment with Python 3.11
conda create -n condensim python=3.11 -y
conda activate condensim

# Install OpenMM (from conda-forge)
conda install -c conda-forge openmm=8.2.0

# Install PyTorch (adjust CUDA version as needed, here using CUDA 12.1)
conda install pytorch=2.4.1 pytorch-cuda=12.1 -c pytorch -c nvidia

# Install DGL for CUDA 12.1
conda install -c dglteam/label/cu121 dgl=1.1.3

For different CUDA versions, adjust the PyTorch and DGL installation:

  • CUDA 11.8: pytorch-cuda=11.8 and conda install -c dglteam/label/cu118 dgl=1.1.3
  • CPU only: conda install pytorch=2.4.1 cpuonly -c pytorch and conda install -c dglteam dgl=1.1.3

Step 2: Install CondenSimAdapter from PyPI

pip install CondenSimAdapter

This installs the core package with ML backmapping support (requires Step 1 conda dependencies to be pre-installed).

Step 3: Verify installation

adapter --version

Alternative: Pure pip Installation (Not Recommended)

If you cannot use conda, you can install ML dependencies via pip:

pip install CondenSimAdapter[ml]

⚠️ Warning: Installing PyTorch and DGL via pip may fail or cause CUDA compatibility issues. Use conda installation (above) for best results.

Minimal Installation (No ML Backmapping)

If you don't need backmapping functionality:

pip install CondenSimAdapter[minimal]

Development Installation

# 1. Follow Step 1 above to install conda dependencies

# 2. Clone and install in editable mode
git clone https://github.com/hanlab-computChem/CondenSimAdapter.git
cd CondenSimAdapter
pip install -e ".[dev]"

Testing

# Run tests
pytest tests/

# Run with coverage
pytest tests/ --cov=CondenSimAdapter

Usage

Command Line Interface

# Show help
adapter --help

# Run backmapping
adapter backmap -c cg_structure.pdb -o aa_structure.pdb

# Check model status
adapter models status

Python API

from CondenSimAdapter import backmap

# Backmap CG structure to AA
backmap.convert("cg_input.pdb", "aa_output.pdb")

Requirements

  • Python >= 3.10, < 3.12 (3.11 recommended)
  • CUDA >= 12.1 for cg2all backmapping (adjust conda packages for your CUDA version)
  • GROMACS >= 2023 (install separately)

Links

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

condensimadapter-1.0.3.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

condensimadapter-1.0.3-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file condensimadapter-1.0.3.tar.gz.

File metadata

  • Download URL: condensimadapter-1.0.3.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for condensimadapter-1.0.3.tar.gz
Algorithm Hash digest
SHA256 407b12de4658eea909ed21c115c10c7021b7b3ffa31a79f602a33d04bcafd18f
MD5 1b9b89a3733a61f895e1cda460a477b2
BLAKE2b-256 7a931920db91aa405c498234aa650da2dcf2af4f8ce0e17e3ad1b218623d59c1

See more details on using hashes here.

File details

Details for the file condensimadapter-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for condensimadapter-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a58efcd54b84ab34d7060a032bbc03f94d96dc44160a7c28cd9637aed4fb96b
MD5 b564ea616dcb93ccb17844efe5cedccc
BLAKE2b-256 9386d4fe4dd1c146052ad107f3f3cb5f898080e943aff7fd312cb6c1387db002

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page