Skip to main content

Tools for automatic parametrization of bonded terms in coarse-grained molecular models

Project description

# SwarmCG

SwarmCG is designed for the optimization of bonded parameters of a coarse-grained (CG) molecular model, with respect to a reference all-atom (AA) trajectory. The package contains 3 routines for:

  1. Model optimization

  2. Model evaluation

  3. Summarizing an optimization procedure visually

#### Installation and libraries

` $ pip install numpy scipy matplotlib MDAnalysis pyemd networkx fst-pso # TODO: remove networkx `

And currently, download the few files in the github directory.

#### Optimize bonded parameters of a CG model, according to a reference AA trajectory

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

` $ ./optimize_model.py -input_dir G1_CG_SIM/ -gmx gmx_2018.6_p `

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

` $ ./optimize_model.py -aa_tpr G1_CG_SIM/aa_topol.tpr -aa_traj G1_CG_SIM/aa_traj.xtc -cg_map G1_CG_SIM/cg_map.ndx -cg_itp G1_CG_SIM/cg_model.itp -cg_gro G1_CG_SIM/start_conf.gro -cg_top G1_CG_SIM/system.top -cg_mdp_mini G1_CG_SIM/mini.mdp -cg_mdp_pre_md G1_CG_SIM/pre-md.mdp -cg_mdp_md G1_CG_SIM/md.mdp -gmx gmx_2018.6_p `

Preparing files in a directory that can be fed as argument to SwarmCG is way easier and recommended.

#### Evaluate bonded parametrization of a CG model, with respect to a reference AA trajectory

` ./evaluate_model.py -aa_tpr G1_CG_SIM/aa_topol.tpr -aa_traj G1_CG_SIM/aa_traj.xtc -cg_map G1_CG_SIM/cg_map.ndx -cg_itp G1_CG_SIM/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 first 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 trigger by a modification of CG particles types (non-bonded parameters).

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.0.tar.gz (56.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.0-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: swarm-cg-1.0.0.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.2 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for swarm-cg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e964b85cf98a21a7aeb12e026d4d52e0d3e8ca1d5b05733cf5bd7d33633740c7
MD5 b32186f98e70ded3e7c168c1f837e254
BLAKE2b-256 0e309bb07d8fd7856e9569e4cc163dca7b3c456e8493fb92b75bf7e042e1e066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarm_cg-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.2 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for swarm_cg-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bfa37c9966242c4435154cab778c9c7fbced0ff6beca880fe50cc9ad7f50f67
MD5 4b25741616dc35d3729da4a055c8c315
BLAKE2b-256 aabb3e0af6d17ff4297eefbdf61d7dcac665c2dd5c89e847df6d57dfc9e1d018

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarm_cg-1.0.0-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.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9c1ac69b9b6f5b7d271ba6a9f1ef410b58d3ebe81168652e1eb9e205f83d215a
MD5 4963764d64775c85745f0277c037e101
BLAKE2b-256 9850928db9d4e31f1e4fab2e177d9838d97cd84bb0d33cc54cd8c324ff457a6e

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