Skip to main content

PyMOL plugin for ViennaPTM post-translational modification library

Project description

ViennaPTM PyMOL plugin

PyPI version
License
Python Version


This plugin is used for applying ViennaPTM post-translational modifications to protein side-chains directly inside PyMOL. It should be compatible with both the proprietary and the open-source version of PyMOL.

Installation

There are two different ways to install the plugin, either via direct installation of the library or by importing a zip file from the plugin manager dialog within PyMOL.

Using a dedicated conda environment (recommended)

# create an environment and install the version of PyMOL you need
# here, it uses the open-source iteration
conda create --name viennaptm_pymol python=3.11
conda activate viennaptm_pymol
conda install -c conda-forge "pymol-open-source>=3.1.0" "numpy<2"

# install the plugin from the pypi server, it will register itself directly
pip install viennaptm-pymol

In order for the plugin to show up, you need to restart PyMOL if it was open at the time of installation.

Troubleshoot: If the plugin does not load automatically, try to execute teh installation manually.

viennaptm-pymol-install

Using a zip file

Install the dependencies first (the following only registers the plugin with PyMOL):

pip install viennaptm-pymol

Then:

  1. Download viennaptm-<version>.zip from the GitHub Releases page.
  2. In PyMOL, open Plugin -> Plugin Manager -> Install and select the ZIP file.
  3. Restart PyMOL.

Developer's notice: Locations of PyMOL plugins

Open-source PyMOL scans **$PYMOL_DATA/startup/**. The install tries to copy the startup wrapper there when that directory is writable (typical for conda envs). Otherwise it falls back to ~/.pymol/startup/ and registers that path with PyMOL.

Usage

  1. Launch PyMOL. If you are using a dedicated environment, first activate it:

    conda activate viennaptm_pymol
    pymol
    
  2. Load a protein structure.

  3. Select a residue (click an atom or select resi 50 and chain A).

Select a residue.

  1. Open Plugin -> ViennaPTM -> Modify selected residue…

Plugin position in top menu.

Select available modification from dialog.

  1. Choose a modification and click Apply modification.
  2. The structure is updated in place, or a new object is created if Make copy is checked.
  3. Save or export the structure as needed.

Example of result: GLN → QME.

If multiple residues are selected, a separate picker dialog lets you choose one residue to modify.

Authors / Contributors

  • Sophie Margreitter - GitHub
  • Christian Margreitter - GitHub

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

viennaptm_pymol-0.1.0.tar.gz (592.6 kB view details)

Uploaded Source

Built Distribution

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

viennaptm_pymol-0.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file viennaptm_pymol-0.1.0.tar.gz.

File metadata

  • Download URL: viennaptm_pymol-0.1.0.tar.gz
  • Upload date:
  • Size: 592.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for viennaptm_pymol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae5ccb128f59363430f3bab6610f6d84fa9702cfc284ad7e8a1a62b67c116a63
MD5 fc8edc2480a925adea29fd039be1b9cf
BLAKE2b-256 2e64ba0754798a02cd571a78f0bd1f7572ca51db9cc138d2efee61bf0ed4ca96

See more details on using hashes here.

File details

Details for the file viennaptm_pymol-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for viennaptm_pymol-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8f050b70afb9364b295b124edae53396c7b2f008c381b7e07159b7990a5a74
MD5 fdd84dcdff0cccb59c53bc87bcb3142e
BLAKE2b-256 76f709a78472cbeb5ddc721d7decf5d7ebd4da8855c8aafd3f36349b2d45ecfc

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