Skip to main content

A tool for membrane protein preparation and molecular dynamics analysis

Project description

GateWizard

PyPI version Python Documentation DOI License: MIT GitHub stars

A library and GUI application tool for membrane protein preparation and molecular dynamics analysis.

📖 Read the Documentation

Features

  • Protein Structure Preparation: Clean PDB files, add missing atoms, and optimize structures
  • Propka Integration: pKa calculations with automatic protonation state assignment
  • Protein Capping: Add ACE/NME caps to protein termini before analysis
  • Force Field Support: Compatible with Amber force fields (ff14SB, ff19SB, etc.)
  • Membrane System Building: Automated membrane protein insertion and equilibration
  • Modern GUI: Built with CustomTkinter for an intuitive user experience

Installation

Quick Installation from PyPI (Recommended)

  1. Create a conda environment with scientific dependencies:

    conda create -n gatewizard -c conda-forge python sqlite ambertools=24 parmed=4.3.0 -y
    
  2. Activate the environment:

    conda activate gatewizard
    
  3. Install GateWizard from PyPI:

    pip install gatewizard
    

Alternative: Development Installation

For developers or to install from source:

  1. Clone the repository:

    git clone https://github.com/maurobedoya/gatewizard.git
    cd gatewizard
    
  2. Create environment from file:

    conda env create -f environment.yml
    conda activate gatewizard
    
  3. Install in development mode:

    pip install -e .
    

Dependencies

Core Dependencies (Automatically Installed)

  • Python ≥ 3.8
  • CustomTkinter ≥ 5.0.0 - Modern GUI framework
  • NumPy ≥ 1.21.0 - Numerical computing
  • Matplotlib ≥ 3.5.0 - Plotting and visualization
  • MDAnalysis ≥ 2.0.0 - Molecular analysis toolkit
  • Propka ≥ 3.2.0 - pKa calculations
  • RDKit ≥ 2023.3.1 - Ligand 2D structure visualization

Scientific Computing Dependencies (Via Conda)

  • AmberTools 24 - Molecular dynamics preparation and analysis
  • Parmed 4.3.0 - Parameter/topology file manipulation (must be from conda-forge for compatibility)

External Requirements

  • NAMD 3.0.1 - Required for molecular dynamics simulations and equilibration

  • MemPrO - Required for membrane protein orientation (not available on PyPI)

    • Must be installed manually from GitHub:
      pip install git+https://github.com/pstansfeld/MemPrO.git
      

Usage

Launch the GUI

gatewizard

Command Line Options

gatewizard --help              # Show all options
gatewizard --screen 1          # Launch on secondary monitor
gatewizard --debug             # Enable debug logging
gatewizard --version           # Show version

Upgrading

To upgrade to the latest version:

# Activate your environment
conda activate gatewizard

# Upgrade GateWizard
pip install --upgrade gatewizard

To check your current version:

gatewizard --version

Troubleshooting

Common Issues

ImportError with numpy.compat: This indicates a version conflict between NumPy and Parmed. Make sure to install Parmed via conda-forge as shown in the installation instructions.

pdb4amber command not found: Ensure AmberTools is installed via conda-forge and the gatewizard environment is activated.

GUI not launching: Check that CustomTkinter is properly installed. Try reinstalling with pip install --force-reinstall customtkinter.

Development

Setting up for Development

# Clone the repository
git clone https://github.com/maurobedoya/gatewizard.git
cd gatewizard

# Create and activate environment
conda env create -f environment.yml
conda activate gatewizard

# Install in development mode
pip install -e .

Project Structure

gatewizard/
├── gatewizard/          # Main source code
│   ├── gui/             # GUI components
│   ├── analysis/        # Analysis modules
│   └── ...
├── docs/                # Documentation (GitHub Pages)
├── tests/               # Test suite
├── environment.yml      # Conda environment
├── pyproject.toml      # Project configuration
└── README.md           # This file

Running Tests

All tests are in the tests/ directory. See tests/README.md for detailed testing documentation.

# Run all tests
python -m pytest tests/

# Run with verbose output
python -m pytest tests/ -v

# Run specific test file
python -m pytest tests/test_propka_improvements.py

# Run with coverage
python -m pytest tests/ --cov=gatewizard --cov-report=html

Documentation

Documentation is built with MkDocs and hosted on GitHub Pages.

# Install MkDocs
pip install mkdocs mkdocs-material

# Serve documentation locally
mkdocs serve

# Build documentation
mkdocs build

# Deploy to GitHub Pages
mkdocs gh-deploy

View documentation at: http://localhost:8000 (when serving locally)

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add/update tests
  5. Update documentation
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

Code Style

  • Follow PEP 8 guidelines
  • Add docstrings to functions and classes
  • Include type hints where appropriate
  • Write tests for new features

License

GateWizard is licensed under the MIT License.

Copyright (c) 2025 Constanza González and Mauricio Bedoya

Authors

  • Constanza González
  • Mauricio Bedoya

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

gatewizard-1.0.31.tar.gz (428.6 kB view details)

Uploaded Source

Built Distribution

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

gatewizard-1.0.31-py3-none-any.whl (551.3 kB view details)

Uploaded Python 3

File details

Details for the file gatewizard-1.0.31.tar.gz.

File metadata

  • Download URL: gatewizard-1.0.31.tar.gz
  • Upload date:
  • Size: 428.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gatewizard-1.0.31.tar.gz
Algorithm Hash digest
SHA256 07e342edb3337ef931b5171ecbbde26f3ecdf594e1b77937df5c68c8188b4a39
MD5 cdec6d8189e4198c40b0fe54411522d8
BLAKE2b-256 e1287eb1ee1ca39135b716297f09a92c115973ffb5cff17a845de4dd8d20a62f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gatewizard-1.0.31.tar.gz:

Publisher: publish-to-pypi.yml on maurobedoya/gatewizard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gatewizard-1.0.31-py3-none-any.whl.

File metadata

  • Download URL: gatewizard-1.0.31-py3-none-any.whl
  • Upload date:
  • Size: 551.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gatewizard-1.0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 16c3b5157c1a43d1cb661e1e4ea719ab6e486c76fd433f889959f03b3c7419cd
MD5 6f0a8193b520f1a99b605de46103ba96
BLAKE2b-256 7b041ec00a7bfbd5b97e1b0bec968997275063ef8e5520df8d3b1f22079741cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gatewizard-1.0.31-py3-none-any.whl:

Publisher: publish-to-pypi.yml on maurobedoya/gatewizard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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