Skip to main content

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

Release files for viennaptm-pymol 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viennaptm-pymol 0.1.0
File Size Uploaded
viennaptm_pymol-0.1.0.tar.gz 592.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viennaptm-pymol 0.1.0
File Interpreter ABI Platform
viennaptm_pymol-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 611.3 kB

Release files / viennaptm_pymol-0.1.0.tar.gz

Download URL viennaptm_pymol-0.1.0.tar.gz
Size 592.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ae5ccb128f59363430f3bab6610f6d84fa9702cfc284ad7e8a1a62b67c116a63
BLAKE2b-256 checksum
How to use checksums
2e64ba0754798a02cd571a78f0bd1f7572ca51db9cc138d2efee61bf0ed4ca96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / viennaptm_pymol-0.1.0-py3-none-any.whl

Download URL viennaptm_pymol-0.1.0-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec8f050b70afb9364b295b124edae53396c7b2f008c381b7e07159b7990a5a74
BLAKE2b-256 checksum
How to use checksums
76f709a78472cbeb5ddc721d7decf5d7ebd4da8855c8aafd3f36349b2d45ecfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page