This program is developed for automatically generating the input file for program PyRESP (a python version) or pol_resp (fortran version)
Author info: Qiang Zhu PostDoc AT UC Irvine Qiang's Blog
- constant.py : definition of constant variables
- pyresp_gen.py : main program for pyresp gen
- prepin.py : function of dumping 1st stage and 2nd stage input file
- zmatrix.py : function for getting information from esp data, building distance matrix, finding equivalent atoms and bonds, and dump esp data to xyz for visualization.a
- pyresp_gen_env.yml : a environment library file
- examples : a bundle of examples for test
This program runs with python 3. To run this program, make sure the following dependencies are installed:
- numpy: A Python library supporting for large, multi-dimensional arrays and matrices.
- scipy: A Python library used for scientific computing and technical computing.
You can manually install the aformationed library one by one. However, for your convenience, a environment file named pyresp_gen_env.yml was provided. A corresponding environment could be created using following command:
conda env create -f pyresp_gen_env.yml
Downloading the source code and put them to your desired location \your\path;
Installing the required libraries and activate them. If you are utilizing the anaconda, you can easily install the libraries with the environment file pyresp_gen_env.yml we supplied. Then, just activate the environment you created with the following command:
conda activate your_env_name
Setting the environment path:
- For Mac User:
Editing the
~/.zshrcand adding the following line:
export PATH=/your/path/to/pyresp_gen:$PATH
- For Linux User:
Editing the
~/.bashrcfile and adding the same line
usage:
pyresp_gen.py [-h] --espdat ESPDAT [--Istage ISTAGE] [--IIstage IISTAGE] [--ptype PTYPE] [--dtype DTYPE] [--nmol NMOL] [--charge CHARGE] \
[--QWT1 QWT1] [--QWT2 QWT2] [--PWT1 PWT1] [--PWT2 PWT2] [--EXC12 EXC12] [--EXC13 EXC13] [--DEPTH DEPTH] [--verbose VERBOSE]
For help just type pyresp_gen.py -h which will show the explanation of each arguments. Here, we explained them in detail.
-
-hor--help: show help message and exit -
-ior--espdat: input file of esp data -
-f1or--Istage: name for the 1st stage input file, if you not specified, default namepyrespgen.1stwill be applied -
-f2or--IIstage: name for the 2nd stage input file, if you not specified, default namepyrespgen.2ndwill be applied -
-por--ptype: polarization type, in this version, only supportchg: additive modelind: RESP-ind modelperm: RESP-perm model <- default -
-dor--dtype: Damping function type, in this version supproted types are listed below:(1) applequist(2) tinker(3) exponential(4) linear(5) pgm<- default -
-nmolor--nmol: Number of conformations. In this version could only handle one conformation -
-qor--charge: Total charge of this structure or conformer -
-qwt1or--QWT1: Charge restraint in the 1st stage: default is set to be 0.0005 -
-qwt2or--QWT2: Charge restraint in the 2nd stage: defalt is set to be 0.001 -
-pwt1or--PWT1: Permanent dipoles restraint in the 1st stage -
-pwt2or--PWT2: Permanent dipoles restraint in the 2nd stage -
-exc12or--EXC12: including (0) or excluding (1) 1-2 interactions -
-exc13or--EXC13: including (0) or excluding (1) 1-3 interactions -
-depthor--DEPTH: Maximum depth for searching equivalance atoms -
-vor--verbose: Print verbose info.