Skip to main content

Tools for automatic parametrization of bonded terms in coarse-grained molecular models, with respect to an all-atom trajectory

Project description

Swarm-CG

Swarm-CG is designed for the optimization of bonded terms in coarse-grained (CG) molecular models, with respect to a reference all-atom (AA) trajectory. The package is designed for usage with Gromacs and contains 3 routines for:

  1. Evaluating the bonded parametrization of a CG model
  2. Optimizing bonded terms of a CG model
  3. Monitoring an optimization procedure

Publication

Swarm-CG: Automatic Parametrization of Bonded Terms in Coarse-Grained Models of Simple to Complex Molecules via Fuzzy Self-Tuning Particle Swarm Optimization
C. Empereur-Mot, L. Pesce, D. Bochiocchio, C. Perego, G.M. Pavan, ChemRxiv

Installation & Usage

# pick one
pip install swarm-cg
pip3 install swarm-cg

# commands description
scg_evaluate -h
scg_optimize -h
scg_monitor -h

1. Evaluate bonded parametrization of a CG model

scg_evaluate -aa_tpr G1_DATA/aa_topol.tpr -aa_traj G1_DATA/aa_traj.xtc -cg_map G1_DATA/cg_map.ndx -cg_itp G1_DATA/cg_model.itp -cg_tpr G1_OPTI_mode1_200ns_valid/longer_run.tpr -cg_traj G1_OPTI_mode1_200ns_valid/longer_run.xtc

This is particularly useful to assess the need to run an optimization procedure (assuming one has an initial CG model). It is also suited to the assesssment of geometrical changes triggered by a modification of CG beads types (defining non-bonded parameters) or after manually editing bonded parameters in a CG model. This command also provides publication-quality figures to support the parametrization of your models.

2. Optimize bonded terms of a CG model

For optimizing bonded parameters of a model according to a reference AA trajectory, using the example data of PAMAM G1:

scg_optimize -in_dir G1_DATA/ -gmx gmx_2018.6_p

Which will use all default filenames of the software and is exactly identical to this command:

scg_optimize -aa_tpr G1_DATA/aa_topol.tpr -aa_traj G1_DATA/aa_traj.xtc -cg_map G1_DATA/cg_map.ndx -cg_itp G1_DATA/cg_model.itp -cg_gro G1_DATA/start_conf.gro -cg_top G1_DATA/system.top -cg_mdp_mini G1_DATA/mini.mdp -cg_mdp_equi G1_DATA/equi.mdp -cg_mdp_md G1_DATA/md.mdp -gmx gmx_2018.6_p

We recommend to first prepare files in a directory to be fed to SwarmCG using argument -in_dir.

3. Monitor an ongoing CG model optimization

Optimization procedures can be monitored at any point during execution by producing a graphical summary of bonded terms tried together with model score, radius of gyration (Rg) and solvent accessible surface area (SASA). At all times, the best available model is already accessible in the optimization producedure output folder.

scg_monitor -opti_dir MODEL_OPTI__STARTED_03-07-2020_10h_12m_15s -gmx gmx_2018.6_p

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

swarm-cg-1.0.1.tar.gz (57.4 kB view details)

Uploaded Source

Built Distributions

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

swarm_cg-1.0.1-py3-none-any.whl (60.8 kB view details)

Uploaded Python 3

swarm_cg-1.0.1-py2-none-any.whl (60.8 kB view details)

Uploaded Python 2

File details

Details for the file swarm-cg-1.0.1.tar.gz.

File metadata

  • Download URL: swarm-cg-1.0.1.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for swarm-cg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8c819cad5bb4fd137c2cc1bbef9d4aefeccb17c285cf503a567594ec78bb063d
MD5 bf3724ec23d62612abe8b9169a25c12e
BLAKE2b-256 4151c7ab673b79062f09699ac43b26db104cf91bcbae881715636f14cd01dff0

See more details on using hashes here.

File details

Details for the file swarm_cg-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: swarm_cg-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 60.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for swarm_cg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d3cae3e9ca08d3e98add56ccff6ad857462231d0286e79d2fe598fe9aaedf4
MD5 1b453232f5f5dab35ec94d1907577502
BLAKE2b-256 b766db300e72a1d5ee7118f961226ba46956d405209f8b5216fc97c69917edb6

See more details on using hashes here.

File details

Details for the file swarm_cg-1.0.1-py2-none-any.whl.

File metadata

  • Download URL: swarm_cg-1.0.1-py2-none-any.whl
  • Upload date:
  • Size: 60.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for swarm_cg-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 f04123db3806f3ef7f31da0773b0ecfbfab5894fc2d0985e4b2bf8cfd1918cb0
MD5 36e1d85e08e835634e19831d6b945588
BLAKE2b-256 8bb66a61e5af488fa6756df3aaa25a9e8d17e8976177d14cd9b96272f23532fc

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