Skip to main content

An MDAnalysis wrapper around Packmol

Project description

travis coveralls


## Why this fork?

MDAPackmol-fmt is a fork of the original MDAPackmol code adapted to the FillMyTubes code.

## MDAPackmol

An MDAnalysis wrapper around Packmol

  • Allows combining MDAnalysis and Packmol

  • Preserves the topology information (bonds etc) of your system after Packmol

  • Free software: GNU General Public License v3

Usage Example

import MDAnalysis as mda
import mdapackmol

# load individual molecule files
water = mda.Universe('water.pdb')
urea = mda.Universe('urea.pdb')

# call Packmol with MDAnalysis objects as arguments
# the 'instructions' allow for any valid Packmol commands
system = mdapackmol.packmol(
    [mdapackmol.PackmolStructure(
        water, number=1000,
        instructions=['inside box 0. 0. 0. 40. 40. 40.']),
     mdapackmol.PackmolStructure(
        urea, number=400,
        instructions=['inside box 0. 0. 0. 40. 40. 40.'])]
)

# the returned system is a MDAnalysis Universe
# with all topology information from building blocks retained
# which can then be saved into any format
# eg to Lammps data file:
system.atoms.write('topology.data')

Citing

If you find mdapackmol useful for you, please cite the following sources:

  • L Martinez, R Andrade, E G Birgin, J M Martinez, “Packmol: A package for building initial configurations for molecular dynamics simulations”. Journal of Computational Chemistry, 30, 2157-2164, 2009.

  • R J Gowers, M Linke, J Barnoud, T J E Reddy, M N Melo, S L Seyler, D L Dotson, J Domanski, S Buchoux, I M Kenney, and O Beckstein. “MDAnalysis: A Python package for the rapid analysis of molecular dynamics simulations.” In S. Benthall and S. Rostrup, editors, Proceedings of the 15th Python in Science Conference, pages 102-109, Austin, TX, 2016.

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

mdapackmol-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

mdapackmol-0.1.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mdapackmol-0.1.0.tar.gz.

File metadata

  • Download URL: mdapackmol-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for mdapackmol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36bf7e86a8cd4a62debdda3a0f891cf2ce5de8633268a9b9ae663ae4fb0c0d00
MD5 42633ef32e1eae023ac934e0d636b712
BLAKE2b-256 ebe7adf1475306ba998b2afc1c9414aaa60ecc8a65353ac78b789b2a7d9b4fd0

See more details on using hashes here.

File details

Details for the file mdapackmol-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mdapackmol-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for mdapackmol-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3f0b34f8d0abc98717833e8a18a1f77474606cc22092186a67e1113363f85728
MD5 f2d65c39a780ce503b5cfcc1e0a88f50
BLAKE2b-256 b779b7b1738e1405289b037f544d9f280eb7d149bd4a95985e04faf29b727af0

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