SPICA-group / spica-tools

Tools for coarse-grained molecular dynamics simulations using the SPICA force field
https://spica-group.github.io/spica-tools/
MIT License
11 stars 4 forks source link
coarse-graining molecular-dynamics spica

spica-tools

DOI
This repository provides tools to set up coarse-grained (CG) molecular dynamics (MD) simulation using the SPICA force field and tools to support SPICA CG parametrization. The tools are written in Python and can be invoked with the below commands. Members of the SPICA group developed the tool; for more information about the SPICA force field and its development members, visit the SPICA website.

Installation

The command to invoke the tools in the src/ directory is cg_spica and requires the Python 3 environment. You will need a bash environment to execute the tools using the commands in a console. You can download this repository, including the setup file to use the command, with the following command:

git clone git@github.com:SPICA-group/spica-tools.git  

Then, change the current directory to the top directory of the repository:

cd spica-tools/  

There is a bash script set.sh to add the path to use the command, and run it with the following command:

source set.sh  

The path to cg_spica has been added to the PATH environmental variable. Adding the above line to a configuration file such as .bash_profile may be useful if you need to use the spica-tools frequently. To verify that the commands to integrate python codes in the src/ directory is available in the console, run the following commands:

cg_spica -h  
cg_spica map2cg -h  

You can see the available options for the commands, if the command path is properly added to the PATH.
Cg_spica requires several python libraries to execute some codes, including arithmetic operations, and to read trajectory files obtained from MD simulations. These libraries are listed in requirements.txt in the top directory and can be installed using pip with the following command:

pip install -r requirements.txt  

Documentation

The above spica-tools documentation can be found here. You can create the documentation on your machine with the following commands:

cd doc/  
make html  

Tools

License

Tools included in this repository are distributed under the MIT license.

Copyright (c) 2022 SPICA-group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.