Python Utilities for Molecular Dynamics
Introduction
MDScribe is a set of command-line scripts and a library written to make setting up the molecular dynamics simulations easier for Desmond, OpenMM, and Amber.
Install
$ pip install mdscribe
Documentation
See https://sunghunbae.github.io/mdscribe/
Example for Desmond
from mdscribe.desmond import Multisim
# read template .msj and .cfg
md_msj = Multisim(template="desmond-md.msj")
md_cfg = Multisim(template="desmond-md.cfg")
with open(msj_file,"w") as msj:
# modify desmond msj template
md_msj.dot.simulate[-1].cfg_file = cfg_file_basename
# Setting up restraints using the restraints keyword:
# https://www.schrodinger.com/kb/332119
if args.posres_force > 0.0:
# print the restraints in the multisim log file
md_msj.dot.simulate[-1].print_restraint = 'true'
# add the new terms defined in "restraints.new" to existing restraints.
# The default is restraints.existing = ignore which will
# delete existing terms before adding any new ones.
# md_msj.dot.simulate[-1].restraints.existing = 'retain'
md_msj.dot.simulate[-1].restraints.new = [
{
'name' : 'posre_harm',
'atoms' : [ f'"{args.posres}"' ],
'force_constants' : [ args.posres_force, ] * 3,
}
]
# force constants in the x, y, and z direction
md_msj.write(msj)
with open(cfg_file,"w") as cfg:
# modify desmond cfg template
md_cfg.dot.randomize_velocity.seed = random.randint(1000, 9999)
md_cfg.dot.time = total_simulation_time
md_cfg.dot.temperature = t_schedule
md_cfg.dot.trajectory.interval = args.interval
md_cfg.write(cfg)
Metadata
Release files for mdscribe 0.7.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mdscribe-0.7.4.tar.gz | 52.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mdscribe-0.7.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.4 kB
Release files / mdscribe-0.7.4.tar.gz
| Download URL | mdscribe-0.7.4.tar.gz |
|---|---|
| Size | 52.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdba2627ac7b40f134b1fb216d8d7e50fbad1469180fdc3f15a19ecc28368c0b
|
|
BLAKE2b-256 checksum How to use checksums |
10cea74477891d3c792284d58e605c2544fb3fd5fcfd40c1eb0da2a54cee8589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / mdscribe-0.7.4-py3-none-any.whl
| Download URL | mdscribe-0.7.4-py3-none-any.whl |
|---|---|
| Size | 57.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f3acee88b2b0292cc1d03059ef9674a93e5b823b85fc8722083b85982657dc1
|
|
BLAKE2b-256 checksum How to use checksums |
acde79d68930411015e2255312d796a760b0f1f5f8d6e3a78df64a44dbe219b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|