Skip to main content

PDB Format transformation from Maestro to CHARMM-GUI. This can make the CHARMM-GUI recognise the original orientation of the hydrogen atoms generated by Maestro.

Project description

Maestro2CharmmGUI

PDB Format transformation from Maestro to CHARMM-GUI. This can make the CHARMM-GUI recognise the original orientation of the hydrogen atoms generated by Maestro.

Get started

# install by pypi
pip install maestro2charmmgui

# install by poetry
poetry add maestro2charmmgui
from maestro2charmmgui.rename import transform_with_resname

# rename the atoms by using a residue-based corresponding dictionary with a single function
input = "path/to/pdbfile.pdb"
output = "path/to/pdbfile_charmm.pdb"

transform_with_resname(input, output)

For further usage, see the jupyter notebook for renaming the hydrogens defined in Maestro into CHARMM's definition.

Change log

0.1.6

  • fix bugs in rename.py: transform_self_defined_dict. Use resname to find the key for self defined dictionary.

0.1.5

  • addional hydrogen at terminal nitrogen renaming (H -> HT3)
  • change the order of the conditions of universal modifications of the hydrogen and the termini atoms' modification

Developer note

Check whether it works:

poetry run pytest

# 2 passed, 1 warnining

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

maestro2charmmgui-0.1.6.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

maestro2charmmgui-0.1.6-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file maestro2charmmgui-0.1.6.tar.gz.

File metadata

  • Download URL: maestro2charmmgui-0.1.6.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/5.15.0-107-generic

File hashes

Hashes for maestro2charmmgui-0.1.6.tar.gz
Algorithm Hash digest
SHA256 76cdd9f7f58a958e0482693ba20e04157d8f5c30e442f1721acb8916b9a138a6
MD5 a9c799bdf0e44ad0d0bd75da482e64d0
BLAKE2b-256 236e9ea93f88640be64beb1f7518b7b1d1d129f1766c41ec60c94e64603134a5

See more details on using hashes here.

File details

Details for the file maestro2charmmgui-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: maestro2charmmgui-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/5.15.0-107-generic

File hashes

Hashes for maestro2charmmgui-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 75db60a5438bb3d624ab6bf0e8cb2c4dee12ce47dd5aa8cdf78859ca34c6e074
MD5 4eeed06c3abfee60c3dc919766d549bf
BLAKE2b-256 49203d62f13440d03cc0b287ba74ca5c8225a822b0cf37c26e2f7d2260fec92b

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