TinkerModellor: An Efficient Tool for Building Biological Systems in Tinker Simulations
TinkerModellor (TKM) serves as a versatile biological system construction tool designed to create intricate virtual biological systems for molecular dynamics within the Tinker Simulation Program. Its primary function involves the input generation of complex systems compatible with molecular simulation software. TKM possesses the capability to convert various specific formats, such as crd/top in Amber, gro/top in GROMACS, and crd/psf in CHARMM, into the Tinker format (Tinker XYZ). Moreover, TKM offers a user-friendly and concise approach, functioning as an independent script for convenient usability. Additionally, it provides users with several distinct modules to construct personalized workflows, ensuring flexibility and ease of use. Essentially, TKM empowers users to model or simulate within one software and seamlessly transition to Tinker for analysis or further simulation, effectively harnessing separate functionalities concurrently.
Firstly, you can to download it through git or zip file
# in terminal
git clone git@github.com:Hsuchein/TinkerModellor.gitThen go into the TinkerModellor folder, construct environment for TinkerModellor by conda
cd TinkerModellor.
conda env create -n tkm -f env.yml
conda activate tkmAdditionally, TinkerModellor is based on ParmEd programme. Hence, you also need to install ParmEd
git clone git@github.com:ParmEd/ParmEd.git
cd ParmEd
pip install .Ultimately, install the TinkerModellor
cd TinkerModellor
python -m buildThis step will generate a folder called dist, which contains .whl file for environment setup.
pip install dist/tinkermodellor-0.1.0-py3-none-any.whlTo automatically run the TinkerModelling tests, execute the following code in the terminal:
cd test
pytest . -vpython tkm.py -c coordination_file -p topology_file -out output_file [options]-c: Path to the coordination file. Supported formats: Amber(.inpcrd/.crd), CHARMM(.crd), GROMACS(.gro). This argument is required.
-p: Path to the topology file. Supported formats: Amber(.prmtop/.top), CHARMM(.psf), GROMACS(.top). This argument is required.
-o: Output file path or name. Default is "./TinkerModellor.xyz". The format is tinker(.xyz).
-k: Option to keep temporary files created during GROMACS format conversion. Set to True to keep. Default is False.
-f: Input file format. Options: {A: Amber, C: CHARMM, G: GROMACS}. Default is GROMACS.
-a: Aggressive atomtype matching mode. May result in atomtype mismatching but can match irregular atomtypes. Default is True.
Here is an example of how to use the command:
python tkm.py -c my_coordination_file.gro -p my_topology_file.top -o my_output_file.xyz -f G -a TrueThis command will run the TinkerModellor with a GROMACS coordination file my_coordination_file.gro and topology file my_topology_file.top, and it will output the result to my_output_file.xyz. The input file format is set to GROMACS, and the aggressive atomtype matching mode is enabled
# in python
import tinkermodellor as tkm
new= tkm()
new('gromacs.gro',gromacs.top')
new.write_tkmsystem('gromacs.xyz')The following people have contributed directly to the coding and validation efforts in Tinkermodellor. And a special thanks to all of you who helped improve this project either by providing feedback, bug reports, or other general comments!
Xujian Wang | Hsuchein0126@outlook.com
Haodong Liu | haodonliu@foxmail.com
Wanlu Li | wa1019@ucsd.edu
The TKM-1.0 version repository(Older version, not maintained currently): https://github.com/Hsuchein/TinkerModellor
it under the terms of the BSD 3-Clause License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
see more information in the license file.
Please site the website if you use this software in your research:
https://github.com/WanluLigroupUCSD/TinkerModellor
Hi , see our paper for more details !
J. Chem. Theory Comput. 2025, 21, 5, 2712–2722