Tools for Desmond Molecular Dynamics
Introduction
DesmondTools have a set of command-line scripts and a python library written to make setting up the molecular dynamics simulations easier for Desmond.
Install
$ pip install desmondtools
Documentation
See https://sunghunbae.github.io/desmondtools/
Use of desmondtools library
from desmondtools 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 desmondtools 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| desmondtools-1.4.0.tar.gz | 39.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| desmondtools-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.8 kB
Release files / desmondtools-1.4.0.tar.gz
| Download URL | desmondtools-1.4.0.tar.gz |
|---|---|
| Size | 39.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2684aec6415f8fc5abe3c80eaeec46cd2ee83d22c33261463bf5a4f97402d99
|
|
BLAKE2b-256 checksum How to use checksums |
fdd696dbfcd0a44e749f117abb964b5ac68ec98404fbd65153c002814bf104a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / desmondtools-1.4.0-py3-none-any.whl
| Download URL | desmondtools-1.4.0-py3-none-any.whl |
|---|---|
| Size | 53.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8ae6f3788f18dc787ffabbbd2cb622f1a75f4b5fcffd23ed6a98bce676a02e8
|
|
BLAKE2b-256 checksum How to use checksums |
9f0a663b17be8475bb4903fc1d8233dc252c294d93aa90b63058fe781ce5f8e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|