Skip to main content

No project description provided

Project description

polyply

codecov

Functionality

Polyply is a python suite designed to facilitate the generation of input files for simulating (bio)macromolecules with GROMACS. It is possible to generate both itp and coordinates files for most (bio)macromolecules such as synthetic polymers or polysaccharides. It also facilitates manipulation of itp files and structures to extend or change already existing files. A library for some commonly used macromolecules using different force-fields (martini, gromos) is included. In principle the program can be used with any type of force-field (FF).

Make sure to always verify the results and give appropriate credit to the developers of the force-field, molecule parameters and this program.

Installation

Polyply requires python 3.6 or greater. It is distributed via PyPi, and can be installed using the pip command:

pip install polyply

This installs the last released version. You can update an existing installation by running pip install -U polyply. In some cases you may want to experiment with running the latest development version. You can install this version with the following command:

pip install git+https://github.com/fgrunewald/polyply_1.0.git#polyply_1.0

The behavior of the pip command can vary depending of the specificity of your python installation. See the documentation on installing a python package to learn more.

Polymer Library

Some macromolecules are implemented in our library for a range of different force-fields. To get a list of all libraries available run:

polyply -list-lib

To get a detailed list of all the individual macromolecules:

polyply -list-blocks <Force Field Name>

Note that while you can combine fragments from different libraries (e.g. the martini-3 polymer library with martini-3 proteins), we cannot guarantee that all the links are present to make a meaningful itp. All blocks within a library can safely be combined. For more information on how to implement links between different blocks see the wiki.

Itp file generation

To generate a linear polymer chain using parameters, provided in the library run:

polyply gen_itp -lib <library_name> -name <name> -seq <monomer:#number> -o <name_outfile + .itp>

For more information on how to generate itp files for more complex polymers or how to combine them with existing itp files see the wiki.

Initial structure generation

To generate an initial structure run:

polyply gen_coords -p <top> -o <name_outfile + .gro> -name <name of molecule> -dens <density>

or:

polyply gen_coords -p <top> -o <name_outfile + .gro> -name <name of molecule> -box <x> <y> <z>

In order to append coordinates to an already existing coordinate file run:

polyply gen_coords -p <top> -o <name_outfile + .gro> -name <name of molecule> -c <init_coords.gro> -box <x> <y> <z>

or

polyply gen_coords -p <top> -o <name_outfile + .gro> -name <name of molecule> -c <init_coords.gro> -dens <density>

Note that at the moment polyply can only generate disordered structures of polymers. All molecules that have secondary structure (e.g. DNA, proteins) cannot be generated accurately. At the moment chirality is also not taken into account. All polymers are atactic unless a dihedral specifies the chirality.

Contributions

The development of polyply is done on github. Contributions are welcome as bug reports and pull requests. Note however that the decision of whether or not contributions can give authorship on the resulting academic paper is left to our sole discretion.

License

Polyply is distributed under the Apache 2.0 license.

Copyright 2020 University of Groningen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

The full text of the license is available in the source repository.

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

polyply-1.1.0.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

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

polyply-1.1.0-py2.py3-none-any.whl (389.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file polyply-1.1.0.tar.gz.

File metadata

  • Download URL: polyply-1.1.0.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for polyply-1.1.0.tar.gz
Algorithm Hash digest
SHA256 49ca6b1d872ce691f1dfb4f02de4cb656db9eec9b736b7099f4d9e37bbee7297
MD5 57f98abae3a5f9dfa933a9b893b7ba22
BLAKE2b-256 0750e2bedb4e92e97d38a55c48bb46ccdb71c31980679e7c62a756daf8ac0556

See more details on using hashes here.

File details

Details for the file polyply-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: polyply-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 389.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for polyply-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 756c436ae0321f2499390c6bc2e19a194bb59f9a49a3a4d78e37a364a0ddcb6f
MD5 72e1dd460351c83bd9980603eee2baf7
BLAKE2b-256 61c49393a7f82554a6c494f4c09776d48e4b83650cb2065930bcf63f0a04b3f2

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