Installation#

AtomWorks can be installed in several ways, depending on your workflow and environment. Below are the recommended methods:

0. Prerequisites#

Before installing AtomWorks, ensure you have the following prerequisites:

  • Python 3.11 or higher

  • dotenv

2. Development Installation#

For development:

git clone https://github.com/RosettaCommons/atomworks.git
cd atomworks
make install  # or pip install -e ".[dev]"

To install in a fresh environment:

git clone https://github.com/RosettaCommons/atomworks.git
cd atomworks
make env

3. Running the Test Suite#

To run the AtomWorks test suite, you need to download the test data and configure environment variables.

Step 1: Download test data

From the repository root, run:

atomworks setup tests

This downloads and extracts the test pack (~500 MB) to tests/data/, which includes:

  • tests/data/pdb/ — A mini PDB mirror with test structures

  • tests/data/ccd/ — A mini CCD mirror with test ligand definitions

  • tests/data/shared/ — MSA files, templates, and metadata for ML tests

Step 2: Create a .env file

Create a .env file in the repository root with the paths to the test data:

# For running tests with the test pack:
PDB_MIRROR_PATH=tests/data/pdb
CCD_MIRROR_PATH=tests/data/ccd

You can copy .env.sample as a starting point:

cp .env.sample .env
# Then edit .env to set the paths above

Step 3: Run the tests

# Run all tests (excluding very slow ones)
pytest tests -m "not very_slow"

# Run tests in parallel for faster execution
pytest tests -m "not very_slow" -n auto

# Run a specific test file
pytest tests/io/components/test_parser.py

4. Setting Up Full PDB/CCD Mirrors#

For production use or training on the full PDB, you’ll want complete mirrors rather than the test subset. See Data Mirrors for detailed instructions on:

  • Setting up a full PDB mirror (~100 GB)

  • Setting up a CCD mirror (~2 GB)

  • Configuring environment variables for production use