<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://biomolmd.org/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eew947</id>
	<title>biowiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://biomolmd.org/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eew947"/>
	<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php/Special:Contributions/Eew947"/>
	<updated>2026-11-16T02:45:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Software:links&amp;diff=2132</id>
		<title>Software:links</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Software:links&amp;diff=2132"/>
		<updated>2025-04-21T23:40:18Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;Moved http://biomolmd.org/tinkergpu/index.php/Tinkergpu:Software-list#Arguslab&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Moved http://biomolmd.org/tinkergpu/index.php/Tinkergpu:Software-list#Arguslab&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Svn_documentation&amp;diff=2131</id>
		<title>Research:Svn documentation</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Svn_documentation&amp;diff=2131"/>
		<updated>2025-04-21T23:39:06Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;Subversion is a source control program much like cvs or rcs.  It works by keeping track of a main copy of a codebase known as the repository.  One checks out a working copy into thier own working directory or codebase.  As changes are made to different files in the codebase they are first updated from the repository so that any conflicts can be resolve between conflicting code that some one else may have committed during the time that the changes were made.  Next they co...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Subversion is a source control program much like cvs or rcs.&lt;br /&gt;
&lt;br /&gt;
It works by keeping track of a main copy of a codebase known as the repository.  One checks out a working copy into thier own working directory or codebase.  As changes are made to different files in the codebase they are first updated from the repository so that any conflicts can be resolve between conflicting code that some one else may have committed during the time that the changes were made.  Next they commit the code to the repository so that others can get thier changes.&lt;br /&gt;
&lt;br /&gt;
To check out a copy of the repository code base into your working directory for the first time:&lt;br /&gt;
svn co svn+ssh://bme-earth/subversion/crs-param-cpp&lt;br /&gt;
&lt;br /&gt;
To update your existing checked out working directory:&lt;br /&gt;
svn update&lt;br /&gt;
&lt;br /&gt;
To commit your changes:&lt;br /&gt;
svn commit -m&amp;quot;message&amp;quot;&lt;br /&gt;
where message is a comment on this revision.&lt;br /&gt;
&lt;br /&gt;
Link to [http://svnbook.red-bean.com/nightly/en/svn-book.html subversion manual]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Programming&amp;diff=2130</id>
		<title>Research:Programming</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Programming&amp;diff=2130"/>
		<updated>2025-04-21T23:38:34Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=Links= *[http://www.intel.com/software/products/compilers/flin/docs/main_for Intel Fortran Compiler Documentation] *[http://www.unix.org.ua/orelly/perl/index.htm Perl Reference] **Also available here: /home/golubkov/Documents/Books/perl_books/index.htm *SVN Documentation *Program Profiling *Neighborlist Tests&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Links=&lt;br /&gt;
*[http://www.intel.com/software/products/compilers/flin/docs/main_for Intel Fortran Compiler Documentation]&lt;br /&gt;
*[http://www.unix.org.ua/orelly/perl/index.htm Perl Reference]&lt;br /&gt;
**Also available here: /home/golubkov/Documents/Books/perl_books/index.htm&lt;br /&gt;
*[[Research:Svn_documentation|SVN Documentation]]&lt;br /&gt;
*[[Program_Profiling|Program Profiling]]&lt;br /&gt;
*[[Research:nblist_test_results|Neighborlist Tests]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Software:Development&amp;diff=2129</id>
		<title>Software:Development</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Software:Development&amp;diff=2129"/>
		<updated>2025-04-21T23:38:13Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=Links= * Programming * Corase-grain program subversion * compiler option:   add this to F77Flag to intel 9.0 ifort to deal with large arrays (over 2GB static memory)   -i-dynamic -mcmodel=large    intel math library:   LINKFLAGS = -lsvml -Vaxlib -static-libcxa -pg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Links=&lt;br /&gt;
* [[Research:Programming|Programming]]&lt;br /&gt;
* Corase-grain program subversion&lt;br /&gt;
* compiler option:&lt;br /&gt;
  add this to F77Flag to intel 9.0 ifort to deal with large arrays (over 2GB static memory)&lt;br /&gt;
  -i-dynamic -mcmodel=large&lt;br /&gt;
&lt;br /&gt;
  intel math library:&lt;br /&gt;
  LINKFLAGS = -lsvml -Vaxlib -static-libcxa -pg&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Software:CGMD&amp;diff=2128</id>
		<title>Software:CGMD</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Software:CGMD&amp;diff=2128"/>
		<updated>2025-04-21T23:37:50Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;==CG code== The latest code (containing bond, angle, torsion, neighbor list, and 1-2 scaling) is located on bme-earth subersion repository. It can be checked out with:  =&amp;gt;svn checkout svn+ssh://bme-earth/subversion/tinker-bat Use this syntax even if you are on bme-earth, so the directory is set up properly for when you update and commit from other machines. I also have a working directory in /home/golubkov/tinker-bat  that I try to keep up-to-day with the compiled execut...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CG code==&lt;br /&gt;
The latest code (containing bond, angle, torsion, neighbor list, and 1-2 scaling) is located on bme-earth subersion repository. It can be checked out with:&lt;br /&gt;
 =&amp;gt;svn checkout svn+ssh://bme-earth/subversion/tinker-bat&lt;br /&gt;
Use this syntax even if you are on bme-earth, so the directory is set up properly for when you update and commit from other machines.&lt;br /&gt;
I also have a working directory in /home/golubkov/tinker-bat  that I try to keep up-to-day with the compiled executables, but it is a working directory and the best thing is to check out your own working subversion directory, keep it updated, and compile it yourself.&lt;br /&gt;
*[[Research:coarse_grain_files|Required Files to run crs simulations]] for CGMD&lt;br /&gt;
*[[TODO: Things to be done]]&lt;br /&gt;
&lt;br /&gt;
==CRSANALYSE==&lt;br /&gt;
This crude flow-chart is for crsanalyze code. It does not have the latest additions (e.g. topology, bond, angle, torsion, etc.) I will try to update it. I will also try to create one for crsdynamic; or a giant one for ALL CG code flow.&lt;br /&gt;
[[Image:crsanalyze-flow.png|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==CRSDYNAMIC==&lt;br /&gt;
&lt;br /&gt;
==misc==&lt;br /&gt;
combining rule for sigma0, eps0&lt;br /&gt;
&lt;br /&gt;
For eps, default: geometric (sqrt(i*j)) set by initprm.f called by crsinitial.f&lt;br /&gt;
&lt;br /&gt;
For sigma, default is arothmetic, sqrt(i^2+j^2)&lt;br /&gt;
&lt;br /&gt;
For dw: in egb egb1.f always sqrt(dwi*dwj)&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Software:GB_Param&amp;diff=2127</id>
		<title>Software:GB Param</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Software:GB_Param&amp;diff=2127"/>
		<updated>2025-04-21T23:37:16Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;==Pavel== crsparam.f int tinker-bat  ==Bradley== http://biomol.bme.utexas.edu/wiki/index.php/Research:Dna#GAY-BERNE_PARAMETERIZATION  /home/others/hamiltonba/dev/crs-param-cpp/trunk  Brad has prgroams to generating all atom dimer configurations at various distances, and at each distance the molecule is rotated about the symmetry axis to get a Boltzmann average all-atom energy for that distance.   /home/other/hamiltonab/nuc/vdw2   He has one script for each configuration,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Pavel==&lt;br /&gt;
crsparam.f int tinker-bat&lt;br /&gt;
&lt;br /&gt;
==Bradley==&lt;br /&gt;
http://biomol.bme.utexas.edu/wiki/index.php/Research:Dna#GAY-BERNE_PARAMETERIZATION &lt;br /&gt;
/home/others/hamiltonba/dev/crs-param-cpp/trunk&lt;br /&gt;
&lt;br /&gt;
Brad has prgroams to generating all atom dimer configurations at various distances, and at each distance the molecule is rotated about the symmetry axis to get a Boltzmann average all-atom energy for that distance.&lt;br /&gt;
&lt;br /&gt;
 /home/other/hamiltonab/nuc/vdw2&lt;br /&gt;
 &lt;br /&gt;
He has one script for each configuration, face, t-shape, and cross.&lt;br /&gt;
 &lt;br /&gt;
 beside rotating, face-face also need to average flipping the molecules. For nonbenzene molecule e.g. base ring, the flipped one can not be sampled by rotation.&lt;br /&gt;
 xbase may be newer than base.pl&lt;br /&gt;
&lt;br /&gt;
== Kelly ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;&#039;&#039;&#039;This is based on Brad&#039;s work &lt;br /&gt;
/home/others/kstanton/dev/crs-param-cpp/trunk&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Required files: &lt;br /&gt;
&lt;br /&gt;
The parameterization program: [http://bme-sun.bme.utexas.edu/~kstanton/coarse_grain.exe coarse_grain.exe] &lt;br /&gt;
&lt;br /&gt;
The Config file: [http://bme-sun.bme.utexas.edu/~kstanton/CrsParamConfig.ini CrsParamConfig.ini] &lt;br /&gt;
&lt;br /&gt;
The post parameterization plot script: [http://bme-sun.bme.utexas.edu/~kstanton/param_results_plot.txt param_results_plot.txt] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
In order to check out the parameterization source compile the program and run it: &lt;br /&gt;
&lt;br /&gt;
1. Check out the source using subversion: svn co svn+ssh://Bme-Earth/subversion/crs-param-cpp other useful commands include: svn list svn+ssh://Bme-Earth/subversion which will give you a look a the directory structure of the subversion on Bme-Earth &lt;br /&gt;
&lt;br /&gt;
2. Run make on the trunk directory. This should compile the source &lt;br /&gt;
&lt;br /&gt;
3. Edit the config file CrsParamConfig.ini and make any changes. It is important that the correct directory for Lenard Jones data is provided if running from weighted Lendard Jones data, or the correct archive file if running from xyz archive data. &lt;br /&gt;
&lt;br /&gt;
3.1 Make sure that the lenard jones data is present in the specified directory and that the energy versus distance file with the name specified in the config file is also in that directory. If you would like the results plot after the simulation make sure that param_results_plot.txt is located in the same directory as it will get run on completion of parameterization. &lt;br /&gt;
&lt;br /&gt;
4. Run the coarse_grain.exe program to obtained optimized paramters for the structures provided. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;Program Flow&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
1. Configs are initialized from the config file &lt;br /&gt;
&lt;br /&gt;
2. The archive file is split into xyz files &lt;br /&gt;
&lt;br /&gt;
3. An array (vector container object) of molecule objects is made a molecule object represents an xyz file that has a pair of geometries to test energy values. &lt;br /&gt;
&lt;br /&gt;
4. Each molecules object is initialized from the xyz files &lt;br /&gt;
&lt;br /&gt;
5. Analyze is called to get the all atom energy &lt;br /&gt;
&lt;br /&gt;
5.1 Alternatetively instead of using an archive, the Energy versus distance data can be obtained by using Lenard Jones Data. &lt;br /&gt;
&lt;br /&gt;
6. xyzeul is called to get the Gay Berne coordinates and angles &lt;br /&gt;
&lt;br /&gt;
7. All of this information is stored in the molecules object. &lt;br /&gt;
&lt;br /&gt;
8. The array of molecules is then compared against the outlier cutoff energy and all molecule pairs with too large an energy are discarded &lt;br /&gt;
&lt;br /&gt;
9. The optimizer is then called passing a minimization function to it and the scaled initial guess parameters (guesses and scales from the config file). &lt;br /&gt;
&lt;br /&gt;
10. Minimization is performed on a least squared over all geometries basis. Least squared difference between the Gay Berne energy and the all atom energy over all the geometries. Egb (GB calculation) is invoked from a molecules method that calculates the gb energy at the current parameters on the fly. Scaling is applied within the optimizer as well. &lt;br /&gt;
&lt;br /&gt;
11. The rms is calculated and the final parameters are sent to std out. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Config file&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
You must specify initial guesses for all the Gay Berne parameters. These are doubles. &lt;br /&gt;
&lt;br /&gt;
Ex. dInitE0 = 0.5 &lt;br /&gt;
&lt;br /&gt;
You can specify not to optimize a parameter by providing the optimize flag a boolean false (0) &lt;br /&gt;
&lt;br /&gt;
Ex. bFindE0Flag = 0 #don’t optimize this &lt;br /&gt;
&lt;br /&gt;
Ex. bFindE0Flag = 1 #optimize this &lt;br /&gt;
&lt;br /&gt;
strLJEnergyFile &lt;br /&gt;
&lt;br /&gt;
strLJEnergyDir &lt;br /&gt;
&lt;br /&gt;
If you are using Lenard Jones data from for example Brads program, specify the energy versus distance information in a file specified as the strLJEnergyFile in the config file. This file must reside in a directory specified by strLJEnergyDir in the config file. This same directory must also contain corresponding xyz files named using thier atomic separation distance. EX: d.10.9.xyz where 10.9 is the separation distance in angstroms. The format of the enery versus distance file is tab delimited distance then energy with each line separated by a carraige return. &lt;br /&gt;
&lt;br /&gt;
The arc file is the archive of geometries to be tested (if testing using an archive) &lt;br /&gt;
&lt;br /&gt;
The tinker key is needed so that analyze knows to use amoeba or whatever all atom dictionary you want. &lt;br /&gt;
&lt;br /&gt;
Scaling are scaling factors for the optimizer. &lt;br /&gt;
&lt;br /&gt;
Ex. dScaleDw = 7.0e1 &lt;br /&gt;
&lt;br /&gt;
Fminimum is a optimizer parameter (I don’t know what this does) &lt;br /&gt;
&lt;br /&gt;
Fgrdmin is the minimum gradient goal for the optimizer. It will stop when it reaches this. &lt;br /&gt;
&lt;br /&gt;
fDelta is the size of the delta value used in calculating the numerical gradients with repect to the parameters. &lt;br /&gt;
&lt;br /&gt;
dOutlierEnergyThreshold is the cutoff energy of the all atom model for excluding a given geometry as an outlier &lt;br /&gt;
&lt;br /&gt;
bUseLJdata: 1 specifies to use included Lenard Jones Data in the Format required &lt;br /&gt;
&lt;br /&gt;
0 specifies to obtain parameters using analyze and an archive file (this requires analyze in the same directory) &lt;br /&gt;
&lt;br /&gt;
Needed to compile and run &lt;br /&gt;
&lt;br /&gt;
Source files (.c, .cpp, and .h) &lt;br /&gt;
&lt;br /&gt;
Libtinker.a &lt;br /&gt;
&lt;br /&gt;
Makefile &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;Needed to run&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Executable &lt;br /&gt;
&lt;br /&gt;
Config file &lt;br /&gt;
&lt;br /&gt;
Xyzeul (no longer required) &lt;br /&gt;
&lt;br /&gt;
Tinker.key &lt;br /&gt;
&lt;br /&gt;
Amoeba &lt;br /&gt;
&lt;br /&gt;
Analyze (only if not using Lenard Jones Data) &lt;br /&gt;
&lt;br /&gt;
Specified archive file (only if not using Lenard Jones Data) &lt;br /&gt;
&lt;br /&gt;
Lenard Jones data directory with correct file (only if using Lenard Jones Data) &lt;br /&gt;
&lt;br /&gt;
For output graphs (the Gbvsallatom plot script is also needed) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;Needed to debug&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Fortran and C++ source files &lt;br /&gt;
&lt;br /&gt;
Gdb &lt;br /&gt;
&lt;br /&gt;
Eclipse (technically not required but manually using gdb without an IDE interface can be time consuming) &lt;br /&gt;
&lt;br /&gt;
Compiled code with –g option on (should be turned on in the make file) &lt;br /&gt;
&lt;br /&gt;
First need to compile libtinker.a with –g then compile the parameterization code with –g &lt;br /&gt;
&lt;br /&gt;
This is currently on in the makefile and the libtinker.a in the crs-param-cpp directory is already compiled with -g &lt;br /&gt;
&lt;br /&gt;
Scripting &lt;br /&gt;
&lt;br /&gt;
Currently all of the input to the parameterization program comes from either the config file or the archive file. This means that perl scripts etc. must modify the config file to specify a different archive or initial guesses. Because it may be useful to be able to specify initial guesses or archive files on the command line, this may be added. &lt;br /&gt;
&lt;br /&gt;
All output is sent in a stream to stdout with the exception of a Gb vs all atom energy vs distance profile plot that is output as well. &lt;br /&gt;
&lt;br /&gt;
Output for long jobs can be sent to a file using the “&amp;amp;gt;” command &lt;br /&gt;
&lt;br /&gt;
Ex. Course_grain.exe &amp;amp;gt; output.txt &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Future Directions&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Integration with brads RNA program to obtain Gay Berne values for biologically important molecules. (Done) &lt;br /&gt;
&lt;br /&gt;
Fortran 90&amp;amp;nbsp;?&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Ions&amp;diff=2126</id>
		<title>Research:Ions</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Ions&amp;diff=2126"/>
		<updated>2025-04-21T23:36:36Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=Zinc= ==literature== Modeling of Zinc is one of our focuses so we need better understanding of the zinc-protein interactions.  I have collect some papers in /opt/reprints/ion-proteins/ZN-pro and …/ZN-MMP  In Zn-pro:  The zinc-finger.pdf has discussion of various CCCC, CCHC, CCHH complexation with Zn. It suggests that two of the C (cys) lose  protons and the total charge of the Zn[CCCC] would be 0.   However zn-cystine-expt-solv-lim.pdf suggests that all 4 Cys should l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Zinc=&lt;br /&gt;
==literature==&lt;br /&gt;
Modeling of Zinc is one of our focuses so we need better understanding of the zinc-protein interactions.&lt;br /&gt;
&lt;br /&gt;
I have collect some papers in /opt/reprints/ion-proteins/ZN-pro and …/ZN-MMP&lt;br /&gt;
&lt;br /&gt;
In Zn-pro:&lt;br /&gt;
 The zinc-finger.pdf has discussion of various CCCC, CCHC, CCHH complexation with Zn. It suggests that two of the C (cys) lose  protons and the total charge of the Zn[CCCC] would be 0.&lt;br /&gt;
&lt;br /&gt;
 However zn-cystine-expt-solv-lim.pdf suggests that all 4 Cys should lose their protons, since their calculations seem to reproduce the crystal coordination structure.&lt;br /&gt;
&lt;br /&gt;
 Gresh has a review in zn-gresh-review.pdf and Carmay lim also has a review in zn-lim-rev.pdf.&lt;br /&gt;
&lt;br /&gt;
The Zn-MMP/amy-mmps/ directory has all the MMP papers from Amy Song at FSU.&lt;br /&gt;
&lt;br /&gt;
We should all read these and other papers in these two directories. Besides, protein simulations, we need some simple test cases (e.g. to compare with QM) to verify our model.&lt;br /&gt;
&lt;br /&gt;
==Zn++ and small ligands==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;/opt/reprints/ion-proteins/ZN-pro/zn-gresh*&amp;lt;br&amp;gt;&#039;&#039;&#039;  &#039;&#039;&#039;especially the review&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Prasad, R. N., Agrawal, M., and George, R. (2005) Mixed ligand complexes of nickel-, copper- and zinc(II) with 5-chloro(orbromo)salicylaldehyde and hydroxyaromatic aldehydes or ketones, J Indian Chem Soc 82, 445-447.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==MMPs and Zinc modeling==&lt;br /&gt;
Oscar presentation on Zinc model [[File:2.8zn_mmp.pdf]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous Tetrahedron-Shaped Zinc molde==&lt;br /&gt;
http://mayoresearch.mayo.edu/camdl/zinc_protein.cfm &lt;br /&gt;
Here we can find examples to show our model is working&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Mg=&lt;br /&gt;
&lt;br /&gt;
==Mg++ chelating small molecules==&lt;br /&gt;
&lt;br /&gt;
A computational paper: New method to estimate stability of chelate complexes &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
http://arxiv.org/abs/0910.0357 &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
More expt papers (found in the ref) below&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mg++ Expt referecens:&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
1. Alegria, A. E., Garcia, C., Santiago, G., Collazo, G., and Morant, J. (2000) Intramolecular hydrogen bonding in hydroxylated semiquinones inhibits semiquinone-Mg2+ complex formation, J Chem Soc Perk T 2, 1569-1573.&amp;lt;br&amp;gt;2. Blindauer, C. A., Holy, A., and Sigel, H. (1999) Metal ion-binding properties of the nucleotide analogue 1-[2-(phosphonomethoxy)ethyl] cytosine (PMEC) in aqueous solution, Collect Czech Chem C 64, 613-632.&amp;lt;br&amp;gt;3. Doroshenko, A. O., Grigorovich, A. V., Posokhov, E. A., Pivovarenko, V. G., Demchenko, A. P., and Sheiko, A. D. (2001) Complex formation between azacrown derivatives of dibenzylidenecyclopentanone and alkali-earth metal ions, Russ Chem B+ 50, 404-412.&amp;lt;br&amp;gt;4. Gomez-Coca, R. B., Kapinos, L. E., Holy, A., Vilaplana, R. A., Gonzalez-Vilchez, F., and Sigel, H. (2000) Metal ion-binding properties of 9-(4-phosphonobutyl)adenine (dPMEA), a sister compound of the antiviral nucleotide analogue 9-[2-(phosphonomethoxy)ethyl]adenine (PMEA), and quantification of the equilibria involving four Cu(PMEA) isomers, J Chem Soc Dalton, 2077-2084.&amp;lt;br&amp;gt;5. Kilyen, M., Lakatos, A., Latajka, R., Labadi, I., Salifoglou, A., Raptopoulou, C. P., Kozlowski, H., and Kiss, T. (2002) Al(III)-binding properties of iminodiacetic acid, nitrilotriacetic acid and their mixed carboxylic-phosphonic derivatives, J Chem Soc Dalton, 3578-3586.&amp;lt;br&amp;gt;6. Knobloch, B., Da Costa, C. P., Linert, W., and Sigel, H. (2003) Stability constants of metal ion complexes formed with N3-deprotonated uridine in aqueous solution, Inorg Chem Commun 6, 90-93.&amp;lt;br&amp;gt;7. Knobloch, B., Linert, W., and Sigel, H. (2005) Metal ion-binding properties of (N3)-deprotonated uridine, thymidine, and related pyrimidine nucleosides in aqueous solution, P Natl Acad Sci USA 102, 7459-7464.&amp;lt;br&amp;gt;8. Knobloch, B., Linert, W., and Sigel, H. (2005) Metal ion-binding properties of (N3)-deprotonated uridine, thymidine, and related pyrimidine nucleosides in aqueous solution, P Natl Acad Sci USA 102, 7459-7464.&amp;lt;br&amp;gt;9. Knobloch, B., and Sigel, H. (2004) A quantitative appraisal of the ambivalent metal ion binding properties of cytidine in aqueous solution and an estimation of the anti-syn energy barrier of cytidine derivatives, J Biol Inorg Chem 9, 365-373.&amp;lt;br&amp;gt;10. Prasad, R. N., and Agrawal, A. (2006) Synthesis and spectroscopic studies of mixed ligand complexes of cobalt(III) with salicylaldehyde, hydroxyaryl ketones and beta-diketones, J Indian Chem Soc 83, 75-77.&amp;lt;br&amp;gt;11. Prasad, R. N., Agrawal, A., and Sharma, K. M. (2006) Synthesis and spectral studies of mixed ligand complexes of cobalt(II) with carbonyl compounds, J Indian Chem Soc 83, 879-882.&amp;lt;br&amp;gt;12. Prasad, R. N., Agrawal, M., and George, R. (2003) Synthesis of mixed ligand complexes of nickel-, copper- and zinc(II) with 5-bromosalicylaldehyde and beta-diketones, J Indian Chem Soc 80, 79-81.&amp;lt;br&amp;gt;13. Prasad, R. N., Agrawal, M., and George, R. (2004) Mixed-ligand complexes of Ni(II), Cu(II), and Zn(II) with 5-chlorosalicylaldehyde and beta-diketones, Syn React Inorg Met 34, 943-952.&amp;lt;br&amp;gt;14. Prasad, R. N., Agrawal, M., and George, R. (2005) Mixed ligand complexes of nickel-, copper- and zinc(II) with 5-chloro(orbromo)salicylaldehyde and hydroxyaromatic aldehydes or ketones, J Indian Chem Soc 82, 445-447.&amp;lt;br&amp;gt;15. Prasad, R. N., Agrawal, M., and Malhotra, S. (2004) Ca(II) complexes of tetraazamacrocycles derived from 3,4-hexanedione and diaminoalkanes, J Serb Chem Soc 69, 661-668.&amp;lt;br&amp;gt;16. Prasad, R. N., Agrawal, M., Ratnani, R., and Saraswat, K. (2005) Mixed ligand complexes of alkaline earth metals. Part-XIV. Mg-II, Ca-II, Sr-II and Ba-II complexes with 5-nitrosalicylaldehyde and salicylaldehyde or hydroxyaromatic ketones, J Indian Chem Soc 82, 1003-1005.&amp;lt;br&amp;gt;17. Prasad, R. N., Agrawal, M., Ratnani, R., and Saraswat, K. (2005) Mixed ligand complexes of alkaline earth metals. Part-XIII. Mg-II, Ca-II, Sr-II and Ba-II complexes with 5-nitrosalicylaldehyde and beta-diketones, J Indian Chem Soc 82, 137-139.&amp;lt;br&amp;gt;18. Prasad, R. N., Agrawal, M., Ratnani, R., and Saraswat, K. (2006) Mixed ligand complexes of alkaline earth metals. Part-XV. Mg-II, Ca-II, Sr-II and Ba-II complexes with 2-hydroxy-1-naphthaldehyde and 2-hydroxybenzophenone, 5-bromosalicylaldehyde or 5-chlorosalicylaldehyde, J Indian Chem Soc 83, 957-960.&amp;lt;br&amp;gt;19. Prasad, R. N., Agrawal, M., and Sharma, M. (2002) Mixed ligand complexes of alkaline earth metals. Part-XI. Magnesium-, calcium-, strontium- and barium(II) complexes with 5-chlorosalicylaldehyde and beta-diketones, J Indian Chem Soc 79, 531-533.&amp;lt;br&amp;gt;20. Prasad, R. N., Agrawal, M., and Sharma, M. (2002) Mixed-ligand complexes of alkaline earth metals. IX. Mg(II), Ca(II), Sr(II), and Ba(II) complexes with 5-bromosalicylaldehyde and salicylaldehyde, 2-hydroxyacetophenone, or 2-hydroxypropiophenone, Syn React Inorg Met 32, 559-568.&amp;lt;br&amp;gt;21. Prasad, R. N., Agrawal, M., and Sharma, M. (2002) Mixed ligand complexes of alkaline earth metals: Part XII. Mg(II), Ca(II), Sr(H) and Ba(II) complexes with 5-chlorosalicylaldehyde and salicylaldehyde or hydroxyaromatic ketones, J Serb Chem Soc 67, 229-234.&amp;lt;br&amp;gt;22. Prasad, R. N., Agrawal, M., and Sharma, M. (2003) Mixed ligand complexes of alkaline earth metals. Part-X. Mg(II), Ca(II), Sr(II) and Ba(II) complexes with 5-bromosalicylaldehyde and -diketones, J Chil Chem Soc 48, 1-5.&amp;lt;br&amp;gt;23. Prasad, R. N., Agrawal, M., and Sharma, S. (2004) Copper(II) complexes of tetraazamacrocycles derived from beta-diketones and diaminoalkanes, Indian J Chem A 43, 337-340.&amp;lt;br&amp;gt;24. Prasad, R. N., Agrawal, M., and Sharma, S. (2005) Cobalt(II) complexes of tetraazamacrocycles derived from beta-diketones and diaminoalkanes, J Serb Chem Soc 70, 635-641.&amp;lt;br&amp;gt;25. Prasad, R. N., Sharma, K. M., and Agrawal, A. (2007) Synthesis and mass spectral studies of mixed ligand complexes of Co-II with 2-hydroxybenzophenone and beta-diketones, hydroxyaryl aldehydes or ketones, J Indian Chem Soc 84, 742-745.&amp;lt;br&amp;gt;26. Prasad, R. N., Sharma, K. M., and Agrawal, A. (2007) Mixed ligand complexes of Co(II) containing 5-bromosalicylaidehyde and beta-diketones, hydroxyaryl aldehydes or ketones, Indian J Chem A 46, 600-604.&amp;lt;br&amp;gt;27. Prasad, R. N., Sharma, K. M., and Agrawal, A. (2007) Synthesis and characterization of mixed ligand complexes of cobalt(II) with 2-hydroxy-1-naphthaldehyde and salicylaldehyde, hydroxyaromatic ketones or beta-diketonesn, J Indian Chem Soc 84, 34-36.&amp;lt;br&amp;gt;28. Roshal, A. D., Grigorovich, A. V., Doroshenko, A. O., Pivovarenko, V. G., and Demchenko, A. P. (1999) Flavonols as metal-ion chelators: complex formation with Mg2+ and Ba2+ cations in the excited state, J Photoch Photobio A 127, 89-100.&amp;lt;br&amp;gt;29. Sigel, H. (2004) Metal ion complexes of antivirally active nucleotide analogues. Conclusions regarding their biological action, Chem Soc Rev 33, 191-200.&amp;lt;br&amp;gt;30. Sigel, R. K. O., Sabat, M., Freisinger, E., Mower, A., and Lippert, B. (1999) Metal-modified base pairs involving different donor sites of purine nucleobases: trans-[a(2)Pt(7,9-DimeG-N1)(9-EtGH-N7)](2+) and trans-[a(2)Pt(7,9-DimeG-N1)(9-EtG-N7)](+) (a = NH3 or CH3NH2; 9-EtGH = 9-ethylguanine; 7,9-DimeG = 7,9-dimethylguanine). Possible relevance to metalated DNA triplex structures, Inorg Chem 38, 1481-1490.&amp;lt;br&amp;gt;31. Sodhi, J. S., Bryson, K., McGuffin, L. J., Ward, J. J., Wernisch, L., and Jones, D. T. (2004) Predicting metal-binding site residues in low-resolution structural models, J Mol Biol 342, 307-320.&amp;lt;br&amp;gt;32. Walker, N., Dobson, M. P., Wright, R. R., Barran, P. E., Murrell, J. N., and Stace, A. J. (2000) A gas-phase study of the coordination of Mg2+ with oxygen- and nitrogen-containing ligands, J Am Chem Soc 122, 11138-11145.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Proteomics&amp;diff=2125</id>
		<title>Research:Proteomics</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Proteomics&amp;diff=2125"/>
		<updated>2025-04-21T23:36:13Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;= Introduction =  The Need: It is universally recognized that early detection of cancer and coronary artery disease leads to dramatically improved health outcomes. Yet, there is great scarcity, of minimally invasive, economically feasible approaches to early detection. The ability to obtain early warning information from proteins and other molecules in blood or other biological fluids would represent an epochal advance. However, this approach is extraordinarily difficult...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The Need: It is universally recognized that early detection of cancer and coronary artery disease leads to dramatically improved health outcomes. Yet, there is great scarcity, of minimally invasive, economically feasible approaches to early detection. The ability to obtain early warning information from proteins and other molecules in blood or other biological fluids would represent an epochal advance. However, this approach is extraordinarily difficult, since many proteins need to be analyzed at the same time,  the molecular population present in the blood is extremely diverse, and the fact that the proteins of interest are billion-fold less abundant that the most concentrated proteins.  This poses the ultimate ‘needle-in-the-haystack’ problem.&lt;br /&gt;
&lt;br /&gt;
Approach: Nanotechnology-based chips and particles (proteomic nanochips) are being developed to sort out and concentrate proteins of interest from blood samples. The chips and particles are interrogated with Mass Spectrometry, with no need for additional sample preparation steps, leading to the potential for very high-throughput.&lt;br /&gt;
&lt;br /&gt;
from: http://nanomed.uth.tmc.edu/researches&lt;br /&gt;
&lt;br /&gt;
== Protein Candidates ==&lt;br /&gt;
* Albumin&lt;br /&gt;
* IgG&lt;br /&gt;
* IgA&lt;br /&gt;
transferrin&lt;br /&gt;
* haptoglobin&lt;br /&gt;
* alpha-1-antitrypsin&lt;br /&gt;
&lt;br /&gt;
== Silicon Channel ==&lt;br /&gt;
One method of enrichment includes the transportation of VEGF-117 (vascular endothelial growth factor) through silicon channels of 50nm.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Peptide&amp;diff=2124</id>
		<title>Research:Peptide</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Peptide&amp;diff=2124"/>
		<updated>2025-04-21T23:35:44Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;* Howto REMD  * extract peptide from gromacs  *  Sai&amp;#039;s log &amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Research:remd | Howto REMD]]&lt;br /&gt;
&lt;br /&gt;
*[[Research:extract_peptide_gromacs | extract peptide from gromacs]]&lt;br /&gt;
&lt;br /&gt;
* [[ Research:sai_log | Sai&#039;s log ]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Coarsegrain&amp;diff=2123</id>
		<title>Research:Coarsegrain</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Coarsegrain&amp;diff=2123"/>
		<updated>2025-04-21T23:35:03Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=RNA Statistical Potential with psudoatoms =  * Pseudo atom based statistical potential (Zhen and Bell) *Research:RNA Statistical Potentials  * RNA project 2006 and prior =GB EMP based model  = ==GBEMP== *CG project log  *coarse_grain_parameter_document  *Deriving molecular multipoles consistent with inertial frame  *Research...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=RNA Statistical Potential with psudoatoms =&lt;br /&gt;
&lt;br /&gt;
*[[Research:RNA SE pseudo atom| Pseudo atom based statistical potential (Zhen and Bell)]]&lt;br /&gt;
*[[Research:RNA Statistical Potentials]] &lt;br /&gt;
*[[Research:RNA | RNA project 2006 and prior]]&lt;br /&gt;
=GB EMP based model  =&lt;br /&gt;
==GBEMP==&lt;br /&gt;
*[[Research:Cg log|CG project log]] &lt;br /&gt;
*[[Research:Coarse grain parameter|coarse_grain_parameter_document]] &lt;br /&gt;
*[[Research:Amoeba reference frame|Deriving molecular multipoles consistent with inertial frame]] &lt;br /&gt;
*[[Research:Coarse grain files|Required Files to run crs simulations]] &lt;br /&gt;
*[[Research:Coarse grain mixing|Gay-Berne mixing rules (Methanol)]] &lt;br /&gt;
*[[Research:Coarse grain dipeptide|Protein Coarse-grain]] &lt;br /&gt;
*[[Research:Coarse grain small|Small Molecule Coarse-grain]] &lt;br /&gt;
*[[Research:Dna|Nucleic Acid Coarse-grain]] &lt;br /&gt;
*[[Research:Multiscale Molecular Modeling Package Overview]] &lt;br /&gt;
*[[Research:Coarse Grain Visualization]] &lt;br /&gt;
&lt;br /&gt;
*move multipoles to offisite using movepole.f in ~pren/tinker/tinker-bat/&lt;br /&gt;
&lt;br /&gt;
== dipeptide conformational energy ==&lt;br /&gt;
&lt;br /&gt;
*[[Research:Coarsegrain dipeptide energy gas|Coarse-grain gas phase Ramachandran map]] &lt;br /&gt;
*[[Research:Coarsegrain dipeptide energy solution|Coarse-grain solution phase Ramachandran map]] &lt;br /&gt;
*[[Research:All atom dipeptide|all-atom gas phase map]] &lt;br /&gt;
*[[Research:All atom dipeptide sol implicit|all-atom solution phase map (from implicit solvent model)]] &lt;br /&gt;
*[[Research:All atom dipeptide sol|QM solution phase map]] &lt;br /&gt;
*[[Research:All atom dipeptide sole|all-atom solution phase map (from explicit solvent simulation)]]&lt;br /&gt;
&lt;br /&gt;
 multipole units:&lt;br /&gt;
 tinker analyze (em option) output debye and buckinghams for molecular momonets. same as gaussian /g03 &lt;br /&gt;
 readcrsdict.f of our coarse code convert deby, buckinghams to e-ang to use in tinker&lt;br /&gt;
&lt;br /&gt;
 tinker atomic multipoles in key file or from analyze (ep) are in electron-bohr and e-bohr**2, they were converted&lt;br /&gt;
 to e-ang in kmpole.f&lt;br /&gt;
 &lt;br /&gt;
 quadrupole devision by 3 is because the formulae we have for interaction energy (by Smith ) is for non-traceless Q. &lt;br /&gt;
 By dividing traceless Q by 3 we can then use the formulae.&lt;br /&gt;
&lt;br /&gt;
==Early parameterization==&lt;br /&gt;
http://biomol.bme.utexas.edu/wiki/index.php/Software:GB_param&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*[http://dx.doi.org.ezproxy.lib.utexas.edu/10.1021/jp044629q Izvekov, S; Voth, GA. A multiscale coarse-graining method for biomolecular systems. JPC B, 109 (7): 2469-2473 FEB 24 2005]&lt;br /&gt;
*[http://www.ploscompbiol.org/article/info:doi/10.1371/journal.pcbi.1000827 Voth, 2010]&lt;br /&gt;
*[http://dx.doi.org.ezproxy.lib.utexas.edu/10.1016/j.fluid.2010.02.034 Voth, 2010, Fluid Phase Equilibria]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amber_prog_tips&amp;diff=2122</id>
		<title>Research:amber prog tips</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amber_prog_tips&amp;diff=2122"/>
		<updated>2025-04-21T23:34:11Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;== VALENCE&amp;lt;br&amp;gt;  ==  &amp;amp;nbsp; opbend is included in angle energy&amp;lt;br&amp;gt;   &amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;in amoeba_interface.f: &amp;#039;&amp;#039;&amp;#039;   &amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_BONDS_eval(crd,frc,ene(1),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_UREYB_eval(crd,frc,ene(2),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_REG_ANGLES_eval(crd,frc,ene(3),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_TRIG_ANGLES_eval(crd,frc,ene(4),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_OPBEND_ANGLES_eval(crd,frc,ene(5),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_TORSIONS_eval(crd,frc,ene(6),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== VALENCE&amp;lt;br&amp;gt;  ==&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; opbend is included in angle energy&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;amp;nbsp;in amoeba_interface.f: &#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_BONDS_eval(crd,frc,ene(1),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_UREYB_eval(crd,frc,ene(2),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_REG_ANGLES_eval(crd,frc,ene(3),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_TRIG_ANGLES_eval(crd,frc,ene(4),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_OPBEND_ANGLES_eval(crd,frc,ene(5),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_TORSIONS_eval(crd,frc,ene(6),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_PITORSIONS_eval(crd,frc,ene(7),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_STRETCH_BEND_eval(crd,frc,ene(8),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_TOR_TOR_eval(crd,frc,ene(9),vir_tensor)&amp;lt;br&amp;gt;&amp;amp;nbsp; call AM_STRETCH_TORSIONS_eval(crd,frc,ene(10),vir_tensor)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
AND&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
ebond = ene(1)!bonds energy&amp;lt;br&amp;gt; eangle = ene(2)+ene(3)+ene(4)+ene(5)+ene(8)!angle energy&amp;lt;br&amp;gt; etors = ene(6)+ene(7)+ene(9)+ene(10)!torsion energy&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== VDW short range ADJUST &amp;amp;amp; softcore&amp;lt;br&amp;gt;  ==&lt;br /&gt;
&lt;br /&gt;
(a test dire: /home/pren/AMOEBA/solvation/cresol/vdw0.4)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For vdw, the AM_VDW_DIRECT_ene_frc_i subroutine, where the softcore mod is included, compute interaction for non-adjusted pair.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
So it is important to understand how the adjust list is created.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
In *.prmtop, the AMOEBA_ADJUST_LIST gives all the pairs in the adjust list in (3xNUM) arrays:&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;1 2 5 means atom 1, 2 pair and adjust type 5.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The waight for type 5 is defined in AMOEBA_ADJUST_VDW_WEIGHTS_LIST of prmtop. 5 is 1-2, 6 is 1-3, 7 is 1-4... &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I have looked at the amoeba_parm.f amd amoeba_vdw.f carefully, it turns out the assumption that the soft-core mod only applies to intermolecular pairs is not correct. The AM_VDW_DIRECT_ene_frc_i routine go through any atom pairs that are not in the adjust list – this where the softcore modification. There is another routin in amoeba_vdw.f AM_VDW_ADJUST_ene_frc, this where we assumed that intramolecular interaction goes so that no soft-core needed here.&lt;br /&gt;
 &lt;br /&gt;
In fact the amoeba_parm.f shows that the adjust list (or exclusion list) is built from both &#039;&#039;&#039;polarization group and 1-2 (bonded), 1-3(angle)…1-5 interactions&#039;&#039;&#039;. So any atom belongs to these categories, will be in the adjust (exclusion) list. For benzamidines, cresol, isoprop, the whole molecule is a polarization group so any vdw pair is in this list. So the current softcore code is correct.&lt;br /&gt;
 &lt;br /&gt;
But for NMA (3 polarization groups), or any other large molecule that has more than one polarization group, the soft-core will affect intramolecular pairs as well. For NMA, the pairs are between H aotms in the two CH3 groups, which belong to different pol groups and are 1-6 pairs. If you run analyze on a single NMA molecule, you can calculate these contributions which are 0.06 kcal/mol total. So for NMA the code is wrong but didn’t have much effect. Oscar, can you confirm this contribution is indeed small? In /home/pren/AMOEBA/solvation/cresol/vdw0.4 I set up an example for a single NMA, and print out the i j pairs from amoeba_vdw.f. You can clearly see the atom pairs (the top half  is printed from the soft-core loop; the atom id matches nma.xyz). we can certainly grow this intra-mol contribution back in gas-phase if needed.&lt;br /&gt;
&lt;br /&gt;
==local frame==&lt;br /&gt;
In /home/pren/DARDEN_amber/SRC/build_amoeba/amoeba_parm.f90 the tinker multipoles of z-then-x and bisector are recorded as frame defining vectors in subroutine &amp;quot;AM_PARM_get_multipole&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==2013 APril==&lt;br /&gt;
4/13/2013&lt;br /&gt;
in tinker empole.f 2009:&lt;br /&gt;
if (i14(j,ii) .eq. ip11(k,ii))&lt;br /&gt;
     &amp;amp;            pscale(i14(j,ii)) = 0.5d0 * pscale(i14(j,ii)) &lt;br /&gt;
&lt;br /&gt;
after 2010-sep:&lt;br /&gt;
 if (i14(j,ii) .eq. ip11(k,ii))&lt;br /&gt;
     &amp;amp;            pscale(i14(j,ii)) = p4scale * p41scale&lt;br /&gt;
With p41scale default to 1.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In build_amoeba/amoeba_parm.f:&lt;br /&gt;
&lt;br /&gt;
! note polar wt of 1/2 for pair in polar group and 1-4&lt;br /&gt;
  polar_wt(7) = 0.5d0; polar_wt(8) = 1.d0; polar_wt(9) = 1.d0&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
4/2013&lt;br /&gt;
pmemd-10: softcore already changed to the soft_atm.txt&lt;br /&gt;
&lt;br /&gt;
2013&lt;br /&gt;
The ligand_idx1 is obsolte. By default pmemd look for a file soft_atm.txt&lt;br /&gt;
Note soft_lambda replaces soft_lamda&lt;br /&gt;
http://water.bme.utexas.edu/wiki/index.php/Software:amber#Instruction&lt;br /&gt;
&lt;br /&gt;
Distance restraint MROPT no longer working?&lt;br /&gt;
 gvim -d  ~/pmemd-oscar/src/nmr_calls.f90 ~/DARDEN_amber/pmemd/src/&lt;br /&gt;
Bnd constraint no longer work in the nmr control of sander or pmemd.&lt;br /&gt;
&lt;br /&gt;
== sander reprocess trajectory==&lt;br /&gt;
&lt;br /&gt;
 see amoeba-peptide/fep-test&lt;br /&gt;
 imin=5 will call trajene and minimize/runmin.f (maxcycle=1) every frame&lt;br /&gt;
 Changed dynlib.f 10f8.3 to 8f10.4, same with trajene, to 8f10.4&lt;br /&gt;
 ./sander -i pepc.min -c pepc.inpcrd -x mdcrd -p pepc.prmtop -o pepc.minout -r pepc.restrt&lt;br /&gt;
 -x mdcrd specify trajctory generated previously, change the pepc.prmtop rerun sander to evaluate energy at perturbed parameters&lt;br /&gt;
&lt;br /&gt;
---------&lt;br /&gt;
ntwx=1 in your input Try to set ntwx=1 in your input file. The default value is 0 and then the trajectory file is not opened. &lt;br /&gt;
 you didn&#039;t specify the trajectory using the -x flag.&lt;br /&gt;
 -c and -ref should still be input coordinates, not&lt;br /&gt;
 trajectory. -ref is only needed if you are using positional&lt;br /&gt;
 or RMSD restraints.&lt;br /&gt;
 look at tests/trajene for an example.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;I am trying to run sunder with imin=5 parameter for trajectory analysis. But&lt;br /&gt;
&amp;gt;sander cannot process my trajectory file. Sander reads rst or inpcrd files but&lt;br /&gt;
&amp;gt;gives out this message when I try to run with a mdcrd file:&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt;fmt: read unexpected character&lt;br /&gt;
&amp;gt;apparent state: internal I/O&lt;br /&gt;
&amp;gt;last format: (i6,e15.7)&lt;br /&gt;
&amp;gt;lately reading sequential formatted internal IO&lt;br /&gt;
&amp;gt;./min5_EN.q: line 7: 15353 Aborted $AMBERHOME/exe/sander -O -i&lt;br /&gt;
&amp;gt;min5_EN.in -o min5_EN.out -p 3_20.prmtop&lt;br /&gt;
&amp;gt;-c 3_20.mdcrd -r new.rst -ref 3_20.mdcrd&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt;I realized that there is a number at the beginning of my inpcrd files (something&lt;br /&gt;
&amp;gt;like 39150) and that does not exist in a mdcrd file. I suspect that may be a&lt;br /&gt;
&amp;gt;reason.&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt;Is there an intermediate step before analyzing a trajectory file with imin=5?&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt;also my sander input file is:&lt;br /&gt;
&amp;gt;minimization_step1&lt;br /&gt;
&amp;gt; &amp;amp;cntrl&lt;br /&gt;
&amp;gt; imin = 5,&lt;br /&gt;
&amp;gt; maxcyc = 1,&lt;br /&gt;
&amp;gt; ntb = 1,&lt;br /&gt;
&amp;gt; ntr = 0,&lt;br /&gt;
&amp;gt; cut = 10&lt;br /&gt;
&amp;gt; /&lt;br /&gt;
&amp;gt;END&lt;br /&gt;
&amp;gt;&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
==Convert mdcrd==&lt;br /&gt;
convert mdcrd (can be viewed by vmd directly) or incrd to pdb&lt;br /&gt;
 &lt;br /&gt;
/opt/amber7/exe/ptraj pepc.prmtop pepc.scrpt&lt;br /&gt;
 pepc.scrpt:&lt;br /&gt;
        trajin mdcrd &lt;br /&gt;
        trajout tra.pdb pdb &lt;br /&gt;
&lt;br /&gt;
 for octahedron:&lt;br /&gt;
 trajin mdcrd 100 150 10&lt;br /&gt;
 trajout oct.pdb pdb&lt;br /&gt;
 image origin familiar&lt;br /&gt;
&lt;br /&gt;
== convert to pdb for amber simulation ==&lt;br /&gt;
There seems to be problem with your ca/ef hand run, the atom ordering in xyz (and .dyn) and pdb are not the same. D&lt;br /&gt;
id you try diff to check?&lt;br /&gt;
&lt;br /&gt;
For example look at atom 208  in both files.&lt;br /&gt;
&lt;br /&gt;
This is due to xyzpdb (siwth seq present) changed the order within each residue. We probably have to do some manual&lt;br /&gt;
 editing.&lt;br /&gt;
&lt;br /&gt;
Here is what that will work - in the future we should follow:&lt;br /&gt;
1) starting with pdb. Pdbxyz create xyz with parameters, and stripped ligand/water. A seq file is created at the sa&lt;br /&gt;
me time&lt;br /&gt;
2) add ligand soak water, run minimization and MD with TINKER. Dyn file is created&lt;br /&gt;
3)  do xyzpdb on the box.xyz (cp from last dynamics frame) with seq. The atom order will be changed from xyz file w&lt;br /&gt;
ithin each residue, but everything else is fine&lt;br /&gt;
4) repeat but without seq file. The order will be fine but many others are wrong.&lt;br /&gt;
5) Take the protein atom name column from  4) and replace the column in 3)&lt;br /&gt;
6) notice by doing 5) the atom name order is changed to that of xyz but the coordinates are wrong. This is fine sin&lt;br /&gt;
ce the real coordinates will be read from dyn file&lt;br /&gt;
&lt;br /&gt;
Try this with your efhand see if this make sense.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amber_modification&amp;diff=2121</id>
		<title>Research:amber modification</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amber_modification&amp;diff=2121"/>
		<updated>2025-04-21T23:33:39Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=== nint in sande needs to be replaced by dinit in pmemmd ===  === Modifying Sander (amber 8 by Darden, in house) to accept coupling parameter (Chona) ===  Note: The instructions here refer to the source directory in lela.tacc.utexas.edu. Except for changing &amp;amp;lt;AMBER_TOP&amp;amp;gt;, these instructions should be platform-independent.   *&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Go to &amp;amp;lt;AMBER_TOP&amp;amp;gt;/SRC/sander. The sander source files are in ~chona/amoeba/amber06a7l5_p/SRC/sander, so &amp;amp;lt;AMBER_TOP&amp;amp;gt;=~chona/amo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== nint in sande needs to be replaced by dinit in pmemmd ===&lt;br /&gt;
&lt;br /&gt;
=== Modifying Sander (amber 8 by Darden, in house) to accept coupling parameter (Chona) ===&lt;br /&gt;
&lt;br /&gt;
Note: The instructions here refer to the source directory in lela.tacc.utexas.edu. Except for changing &amp;amp;lt;AMBER_TOP&amp;amp;gt;, these instructions should be platform-independent. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&#039;&#039;Go to &amp;amp;lt;AMBER_TOP&amp;amp;gt;/SRC/sander. The sander source files are in ~chona/amoeba/amber06a7l5_p/SRC/sander, so &amp;amp;lt;AMBER_TOP&amp;amp;gt;=~chona/amoeba/amber06a7l5_p.&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
*Edit file called amoeba_mdin.f. This file contains the source to the amoeba_mdin module, which contains the variables from the input file. &lt;br /&gt;
*Add the parameter(s) to the variable definitions:&lt;br /&gt;
&lt;br /&gt;
  lela% more amoeba_mdin.f&lt;br /&gt;
  ...&lt;br /&gt;
  module amoeba_mdin&lt;br /&gt;
  implicit none&lt;br /&gt;
  private&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: do_amoeba=0,do_amoeba_valence=1,do_amoeba_nonbond=1, &amp;amp;amp;&lt;br /&gt;
                  do_vdw_taper=1,do_vdw_longrange=1&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: sor_coefficient = 0.75d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: dipole_scf_tol = 0.01d0&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: dipole_scf_iter_max = 50&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: ee_dsum_cut=7.d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: ee_damped_cut=4.5d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: vdw_taper = 0.9d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: thole_expon_coeff=0.39d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: compress = 0.000046d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: lamda = 0.0&lt;br /&gt;
  logical, save&amp;amp;nbsp;:: verbose=.false.&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: beeman_integrator = 0&lt;br /&gt;
  public AMOEBA_read_mdin,do_amoeba,do_amoeba_valence, &amp;amp;amp;&lt;br /&gt;
         do_amoeba_nonbond,verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
         sor_coefficient,dipole_scf_tol,dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
         ee_dsum_cut,ee_damped_cut,thole_expon_coeff,vdw_taper, &amp;amp;amp;&lt;br /&gt;
         compress,do_vdw_taper,do_vdw_longrange,&#039;&#039;&#039;lamda&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Include the new parameter in the amoeba_mdin namelist&lt;br /&gt;
&lt;br /&gt;
  lela% more amoeba_mdin.f&lt;br /&gt;
  namelist/amoeba/do_amoeba,do_amoeba_valence,do_amoeba_nonbond, &amp;amp;amp;&lt;br /&gt;
                  do_bond,do_ureyb,do_reg_angle,  &amp;amp;amp;&lt;br /&gt;
                  do_trig_angle,do_opbend,do_torsion,do_str_torsion, &amp;amp;amp;&lt;br /&gt;
                  do_pi_torsion,do_strbend,do_torsion_torsion, &amp;amp;amp;&lt;br /&gt;
                  do_recip,do_adjust,do_direct,do_self, &amp;amp;amp;&lt;br /&gt;
                  do_vdw,do_induced,verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
                  sor_coefficient,dipole_scf_tol, &amp;amp;amp;&lt;br /&gt;
                  dipole_scf_iter_max,ee_dsum_cut,ee_damped_cut, &amp;amp;amp;&lt;br /&gt;
                  thole_expon_coeff,vdw_taper,do_vdw_taper,do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                  compress, &amp;amp;amp;&lt;br /&gt;
                  &#039;&#039;&#039;lamda&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Include the variable in amoeba_vdw.f&lt;br /&gt;
&lt;br /&gt;
  lela% more amoeba_mdin.f&lt;br /&gt;
  subroutine AM_VDW_DIRECT_ene_frc_i(i,ipairs,numtot,xk,yk,zk, &amp;amp;amp;&lt;br /&gt;
                                   crd,ene_vdw,frc,virial)&lt;br /&gt;
  use nblist, only: bckptr,imagcrds,tranvec&lt;br /&gt;
  use constants, only&amp;amp;nbsp;: zero,one,two,three,four,five,seven&lt;br /&gt;
  use amoeba_mdin, only&amp;amp;nbsp;: do_vdw_taper, &#039;&#039;&#039;lamda&#039;&#039;&#039;&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: i,ipairs(*),numtot&lt;br /&gt;
 _REAL_,intent(in)&amp;amp;nbsp;:: xk,yk,zk,crd(3,*)&lt;br /&gt;
 _REAL_,intent(inout)&amp;amp;nbsp;:: ene_vdw,frc(3,*),virial(3,3)&lt;br /&gt;
&lt;br /&gt;
*Include the new parameter in the input file&lt;br /&gt;
&lt;br /&gt;
  lela% more vdw1.mdin&lt;br /&gt;
   &amp;amp;amp;amoeba&lt;br /&gt;
   do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
   do_amoeba=1,do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1,&lt;br /&gt;
   do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
   do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
   do_torsion_torsion=1,&lt;br /&gt;
   do_vdw=1,verbose=.false.,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
   do_self=1,dipole_scf_tol = 0.05,dipole_scf_iter_max=30,&lt;br /&gt;
   sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
   &#039;&#039;&#039;lamda=0.6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Modifying PMEMD (Oscar)  ===&lt;br /&gt;
&lt;br /&gt;
This is an instruction of adding softcore parameters in pmemd. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;The original files are in /home/oscar/pmemd/src-org, while the modified files are in /home/oscar/pmemd/src&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Four files have been modified: nmr_calls.fpp, mdin_amoeba_dat.fpp, amoeba_direct.fpp, amoeba_induced.fpp. &lt;br /&gt;
&lt;br /&gt;
You can download these new files with softcore modification from http://biomol.bme.utexas.edu/~oscar/download/pmemd/src/ &lt;br /&gt;
&lt;br /&gt;
Just copy the four files, overwrite your old ones and compile. &lt;br /&gt;
&lt;br /&gt;
Old files can be found in http://biomol.bme.utexas.edu/~oscar/download/pmemd/src-org/ Just in case you want to change back to original version. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*In order to use restraint, some change should be made in &#039;&#039;nmr_calls.fpp&#039;&#039; file by deleting some lines in subrountine &#039;&#039;restal&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  #ifdef AMOEBA&lt;br /&gt;
   &amp;amp;nbsp;! For Amoeba we don&#039;t currently support file redirections because we don&#039;t&lt;br /&gt;
   &amp;amp;nbsp;! understand the implications.&lt;br /&gt;
    if (iamoeba .ne. 0) then&lt;br /&gt;
      do m = 1, 8&lt;br /&gt;
        if (iredir(m) .ne. 0) then&lt;br /&gt;
          write(mdout, *) &#039;No Amoeba support for file redirections!&#039;&lt;br /&gt;
          call mexit(6, 1)&lt;br /&gt;
        end if&lt;br /&gt;
      end do&lt;br /&gt;
     &amp;amp;nbsp;! Check to be sure we did not read a card for an nmr option that has been&lt;br /&gt;
     &amp;amp;nbsp;! dropped in pmemd.  These include NOESY, SHIFTS, PCSHIFT and DIPOLE.&lt;br /&gt;
     &amp;amp;nbsp;! Note that the indices checked are hardwired - what a kludge!&lt;br /&gt;
    else if (iredir(4) .ne. 0 .or. iredir(5) .ne. 0 .or. iredir(7) .ne. 0 .or. &amp;amp;amp;&lt;br /&gt;
             iredir(8) .ne. 0) then&lt;br /&gt;
         write(mdout,*) &amp;amp;amp;&lt;br /&gt;
        &#039;No support for NOESY, SHIFTS, PCSHIFT or DIPOLE file redirections!&#039;&lt;br /&gt;
      write(mdout,*)&#039;Please use SANDER instead.&#039;&lt;br /&gt;
      call mexit(6, 1)&lt;br /&gt;
    end if&lt;br /&gt;
  #else&lt;br /&gt;
 &amp;amp;nbsp;! Check to be sure we did not read a card for an nmr option that has been&lt;br /&gt;
 &amp;amp;nbsp;! dropped in pmemd.  These include NOESY, SHIFTS, PCSHIFT and DIPOLE.&lt;br /&gt;
 &amp;amp;nbsp;! Note that the indices checked are hardwired - what a kludge!&lt;br /&gt;
    if (iredir(4) .ne. 0 .or. iredir(5) .ne. 0 .or. iredir(7) .ne. 0 .or. &amp;amp;amp;&lt;br /&gt;
        iredir(8) .ne. 0) then&lt;br /&gt;
      write(mdout,*) &amp;amp;amp;&lt;br /&gt;
        &#039;No PMEMD support for NOESY, SHIFTS, PCSHIFT or DIPOLE options!&#039;&lt;br /&gt;
      write(mdout,*)&#039;Please use SANDER instead.&#039;&lt;br /&gt;
      call mexit(6, 1)&lt;br /&gt;
    end if&lt;br /&gt;
  #endif /* AMOEBA */&lt;br /&gt;
&lt;br /&gt;
And &lt;br /&gt;
&lt;br /&gt;
  #ifdef AMOEBA&lt;br /&gt;
     &amp;amp;nbsp;! Amoeba does not currently support stuff found in &amp;amp;amp;rst...&lt;br /&gt;
      if (iamoeba .ne. 0) then&lt;br /&gt;
        write(mdout, *) &#039;No Amoeba support for &amp;amp;amp;rst namelist-based options!&#039;&lt;br /&gt;
        call mexit(6, 1)&lt;br /&gt;
      end if&lt;br /&gt;
  #endif /* AMOEBA */&lt;br /&gt;
&lt;br /&gt;
Basically everything between &amp;quot;#indef AMOEBA&amp;quot; and &amp;quot;#endif /*AMOEBA*/&amp;quot; should be deleted. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Add new variables in the mdin name list. Edit the file &#039;&#039;mdin_amoeba_dat.fpp&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
First, increase the number of variables, three new integers and two new doubles. &lt;br /&gt;
&lt;br /&gt;
Second, add new variables to the end of namelists including both interger and double types &lt;br /&gt;
&lt;br /&gt;
  mdin_amoeba_int_cnt = &#039;&#039;&#039;26&#039;&#039;&#039;&lt;br /&gt;
 integer                    do_amoeba_valence, do_amoeba_nonbond, do_bond, &amp;amp;amp;&lt;br /&gt;
                            do_ureyb, do_reg_angle, do_trig_angle, do_opbend, &amp;amp;amp;     &lt;br /&gt;
                            do_torsion, do_pi_torsion, do_strbend, &amp;amp;amp;&lt;br /&gt;
                             do_torsion_torsion, do_str_torsion, do_recip, &amp;amp;amp;&lt;br /&gt;
                            do_adjust, do_direct, do_self, do_vdw, &amp;amp;amp;&lt;br /&gt;
                            do_induced, do_vdw_taper, do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                            beeman_integrator, dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
                            amoeba_verbose, &#039;&#039;&#039;soft_expo, lig_idx1, lig_idx2&#039;&#039;&#039;&lt;br /&gt;
 common / mdin_amoeba_int / do_amoeba_valence, do_amoeba_nonbond, do_bond, &amp;amp;amp;&lt;br /&gt;
                            do_ureyb, do_reg_angle, do_trig_angle, do_opbend, &amp;amp;amp;       &lt;br /&gt;
                            do_torsion, do_pi_torsion, do_strbend, &amp;amp;amp;&lt;br /&gt;
                            do_torsion_torsion, do_str_torsion, do_recip, &amp;amp;amp;&lt;br /&gt;
                            do_adjust, do_direct, do_self, do_vdw, &amp;amp;amp;&lt;br /&gt;
                            do_induced, do_vdw_taper, do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                            beeman_integrator, dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
                            amoeba_verbose,&amp;amp;amp;&lt;br /&gt;
                            &#039;&#039;&#039;soft_expo, lig_idx1, lig_idx2&#039;&#039;&#039;&lt;br /&gt;
 integer, parameter   &amp;amp;nbsp;:: mdin_amoeba_dbl_cnt = &#039;&#039;&#039;9&#039;&#039;&#039;&lt;br /&gt;
 double precision              compress, dipole_scf_tol, ee_dsum_cut, &amp;amp;amp;&lt;br /&gt;
                               ee_damped_cut, sor_coefficient, &amp;amp;amp;&lt;br /&gt;
                               thole_expon_coeff, vdw_taper, &amp;amp;amp;&lt;br /&gt;
                               &#039;&#039;&#039;soft_lamda, soft_alpha&#039;&#039;&#039;&lt;br /&gt;
 common / mdin_amoeba_dbl /    compress, dipole_scf_tol, ee_dsum_cut, &amp;amp;amp;&lt;br /&gt;
                               ee_damped_cut, sor_coefficient, &amp;amp;amp;&lt;br /&gt;
                               thole_expon_coeff, vdw_taper, &amp;amp;amp;&lt;br /&gt;
                               &#039;&#039;&#039;soft_lamda, soft_alpha&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
soft_expo: exponential of softcore equation (old 4; new 5) &lt;br /&gt;
&lt;br /&gt;
soft_alpha: coefficient of softcore (old 0.5, new 0.7) &lt;br /&gt;
&lt;br /&gt;
soft_lamda: scaling factor of decoupling usually changing from 1.0 to 0.0 linearly &lt;br /&gt;
&lt;br /&gt;
lig_idx1,lig_idx2: first and last index of the ligand in the pdb file of the protein holo structure &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Add those variables in the program that related to softcore calculation, &#039;&#039;amoeba_direct.fpp&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;amoeba_direct.fpp&#039;&#039;, add those variables in subroutine &#039;&#039;am_vdw_direct_ene_frc_i&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
  use mdin_amoeba_dat_mod, only&amp;amp;nbsp;: do_vdw_taper, &#039;&#039;&#039;soft_lamda, soft_expo, soft_alpha, lig_idx1, lig_idx2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;AMBER exclude 1-2, 1-3 intramolecular interactions and pairs within the same polarization group here so no effect on intramolecular interactions&#039;&#039;&#039; &lt;br /&gt;
*Inplement softcore calculation in &#039;&#039;amoeba_direct.fpp&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In the subroutine &#039;&#039;am_vdw_direct_ene_frc_i&#039;&#039;, add the following code &lt;br /&gt;
&lt;br /&gt;
  if((atm_i .ge. lig_idx1 .and. atm_i .le. lig_idx2) .or. (atm_j .ge. lig_idx1 .and. atm_j .le. lig_idx2)) then&lt;br /&gt;
    eps = eps * soft_lamda ** soft_expo&lt;br /&gt;
    t1 = (1.d0 + vdw_buf_delta)**7 / (soft_alpha * (1.d0 - soft_lamda)**2 + (rho + vdw_buf_delta)**7)&lt;br /&gt;
    t2 = (1.d0 + vdw_buf_gamma) / (soft_alpha * (1.d0 - soft_lamda)**2 + rho**7 + vdw_buf_gamma)&lt;br /&gt;
    dt1drho = (-7.d0 * (rho + vdw_buf_delta)**6 * t1) / (soft_alpha * (1.d0 - soft_lamda)**2 + (rho + vdw_buf_delta)**7)&lt;br /&gt;
    dt2drho = (-7.d0 * rho**6 * t2) / (soft_alpha * (1.d0 - soft_lamda)**2 + rho**7 + vdw_buf_gamma)&lt;br /&gt;
  endif&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Change the damping factor of metal ions, such as Ca2+ and Mg2+&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;amoeba_induced.fpp&#039;&#039;, insert the following lines in subroutine &#039;&#039;amoeba_induced_dat_final_setup&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
  if ( abs(atm_mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
    write (6,*) &amp;quot;Ca damp&amp;quot;,n,atm_mass(n),polarizability(n)&lt;br /&gt;
  if ( abs(atm_mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
    atm_qterm(n) = 1 /1.35d0**3*atm_qterm(n)&lt;br /&gt;
  if ( abs(atm_mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
    write (6,*) &amp;quot;Mg damp&amp;quot;,n,atm_mass(n),polarizability(n)&lt;br /&gt;
  if ( abs(atm_mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
    atm_qterm(n) = 1 /1.60d0**3*atm_qterm(n)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do &#039;&#039;&#039;make clean&#039;&#039;&#039; and then &#039;&#039;&#039;make&#039;&#039;&#039; to update the modifacatiions&lt;br /&gt;
&lt;br /&gt;
=== mdin for amber 8  ===&lt;br /&gt;
&lt;br /&gt;
 short md, nve ensemble&lt;br /&gt;
 &amp;amp;amp;cntrl&lt;br /&gt;
   ntx=7, irest=1,&lt;br /&gt;
   nstlim=300000,&lt;br /&gt;
   ntpr=500, ntwr=500,ntave=500,&lt;br /&gt;
   nscm=500,ntwx=500,&lt;br /&gt;
   dt=0.001, vlimit=10.0,&lt;br /&gt;
   cut=9.,maxcyc=50,ntmin=2,imin=0,&lt;br /&gt;
   ntt=1, temp0=298.0,tempi=0.0,tautp=0.5,&lt;br /&gt;
   nmropt=1,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;ewald&lt;br /&gt;
  nfft1=64,nfft2=64,nfft3=64,&lt;br /&gt;
  &#039;&#039;&#039;skinnb=0.8&#039;&#039;&#039;,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;amoeba&lt;br /&gt;
   &#039;&#039;&#039;do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;do_amoeba=1&#039;&#039;&#039;,do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1,&lt;br /&gt;
   do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
   do_opbend=1,do_torsion=1,&#039;&#039;&#039;do_str_torsion=1&#039;&#039;&#039;,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
   do_torsion_torsion=1,&lt;br /&gt;
   &#039;&#039;&#039;do_vdw=1,verbose=.false.,do_vdw_longrange=1,do_vdw_taper=1,&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;do_self=1&#039;&#039;&#039;,dipole_scf_tol = 0.05,dipole_scf_iter_max=30,&lt;br /&gt;
   sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
 /&lt;br /&gt;
  &amp;amp;amp;wt type=&#039;END&#039; &amp;amp;amp;end&lt;br /&gt;
 LISTOUT=POUT&lt;br /&gt;
 DISANG=bnd.rst&lt;br /&gt;
&lt;br /&gt;
=== mdin for PMEMD/amber9  ===&lt;br /&gt;
&lt;br /&gt;
 short md, nve ensemble&lt;br /&gt;
 &amp;amp;amp;cntrl&lt;br /&gt;
 ntx=7, irest=1,&lt;br /&gt;
 nstlim=3000000,&lt;br /&gt;
 ntpr=500, ntwr=500,ntave=500,&lt;br /&gt;
 nscm=500,ntwx=500,&lt;br /&gt;
 dt=0.001, vlimit=10.0,&lt;br /&gt;
 cut=9.,maxcyc=50,ntmin=2,imin=0,&lt;br /&gt;
 ntt=1, temp0=298.0,tempi=0.0,tautp=0.5,&lt;br /&gt;
 nmropt=1, &#039;&#039;&#039;iamoeba=1&#039;&#039;&#039;,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;ewald&lt;br /&gt;
 nfft1=64,nfft2=64,nfft3=64,&lt;br /&gt;
 nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;amoeba&lt;br /&gt;
 do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
 do_opbend=1,do_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
 do_torsion_torsion=1,do_amoeba_nonbond=1,&lt;br /&gt;
 dipole_scf_tol = 0.01,dipole_scf_iter_max=30,&lt;br /&gt;
 sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
 beeman_integrator=1,&amp;amp;lt;b&amp;amp;gt;lig_idx1=3224,lig_idx2=3241,&amp;amp;lt;/b&amp;amp;gt;&lt;br /&gt;
 &amp;amp;lt;b&amp;amp;gt;soft_alpha=0.7,soft_expo=5,soft_lamda=0.6&amp;amp;lt;/b&amp;amp;gt;&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;wt type=&#039;END&#039; &amp;amp;amp;end&lt;br /&gt;
 LISTOUT=POUT&lt;br /&gt;
 DISANG=bnd.rst&lt;br /&gt;
&lt;br /&gt;
The last two lines are for distance restraint. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
nfft should be 20% bigger than box length. Usable values: &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; data multi / 2, 3, 4, 5, 6, 8, 9, 10, 12, 15,&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;amp; 16, 18, 20, 24, 25, 27, 30, 32, 36, 40,&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;amp; 45, 48, 50, 54, 60, 64, 72, 75, 80, 81,&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;amp; 90, 96, 100, 108, 120, 125, 128, 135, 144, 150,&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;amp; 160, 162, 180, 192, 200, 216, 225, 240, 243, 250,&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;amp; 256, 270, 288, 300, 320, 324, 360, 375, 384, 400,&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;amp; 405, 432, 450, 480, 486, 500, 512, 540, 576, 600 /&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 For npt, add this line (see amber manual. ntb=2 is pressure control. ntp=1 isoropic, pres0 is target)&lt;br /&gt;
 ntb=2, ntp=1, pres0=1.0, taup=50.0&lt;br /&gt;
 For position restraint: &lt;br /&gt;
 ntr=1,restraint_wt=10.0,restraintmask=&#039;:1-224&#039;&lt;br /&gt;
&lt;br /&gt;
To run pmemd: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 creat a host file, containing the following lines &lt;br /&gt;
 node25:4&lt;br /&gt;
 node24:4&lt;br /&gt;
 &lt;br /&gt;
 run mpdboot, not the ncpus should be less than the total avail in host file.&lt;br /&gt;
 /opt/mpich2-fc7/bin/mpdboot -n 1 -f ./host --ncpus=4&lt;br /&gt;
 &lt;br /&gt;
 run pmemed:&lt;br /&gt;
 /opt/mpich2-fc7/bin/mpirun -n 4 ~/pmemd/src/pmemd -i mdin_pmemd -c ele1.inpcrd -p ele1.prmtop -o mdout.pmemd -r restrt.pmemd -x mdcrd.pmemd 2&amp;amp;gt; /dev/full &amp;amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Modifying pre-AMBER9 (Oscar)  ===&lt;br /&gt;
&lt;br /&gt;
This is an instruction of adding softcore parameters in AMBER 8. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;The original files are in /home/oscar/DARDEN_amber/SRC/sander/, while the modified files are in /home/oscar/data2-oscar/amber_mod/SRC/sander/&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 /home/oscar/data2-oscar/amber-atm-soft: two atoms specified for soft-core&lt;br /&gt;
&lt;br /&gt;
 /home/oscar/data2-oscar/amber-range-soft: a range of (ligand atoms) is specified for soft-core&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; Two files have been modified: amoeba_mdin.f and amoeba_vdw.f. &lt;br /&gt;
&lt;br /&gt;
You can also download these new files with softcore modification from http://biomol.bme.utexas.edu/~oscar/download/amber8/src-mod/ &lt;br /&gt;
&lt;br /&gt;
Just copy the two files, overwrite your old ones and compile. &lt;br /&gt;
&lt;br /&gt;
Old files can still be found in http://biomol.bme.utexas.edu/~oscar/download/amber8/src-org/ Just in case you want to change back to original version. &lt;br /&gt;
&lt;br /&gt;
*Add the parameter(s) to the variable definitions in amoeba_mdin.f and assign initial values to them:&lt;br /&gt;
&lt;br /&gt;
  ...&lt;br /&gt;
  module amoeba_mdin&lt;br /&gt;
  implicit none&lt;br /&gt;
  private&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: do_amoeba=0,do_amoeba_valence=1,do_amoeba_nonbond=1, &amp;amp;amp;&lt;br /&gt;
                  do_vdw_taper=1,do_vdw_longrange=1&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: sor_coefficient = 0.75d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: dipole_scf_tol = 0.01d0&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: dipole_scf_iter_max = 50&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: ee_dsum_cut=7.d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: ee_damped_cut=4.5d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: vdw_taper = 0.9d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: thole_expon_coeff=0.39d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: compress = 0.000046d0&lt;br /&gt;
 &#039;&#039;&#039; _REAL_,save&amp;amp;nbsp;:: softcore_lamda = 1.0d0&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: softcore_alpha = 0.5d0&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: softcore_expo = 4&lt;br /&gt;
 &#039;&#039;&#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: lig_idx1 = 1&lt;br /&gt;
 &#039;&#039;&#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: lig_idx2 = 1&lt;br /&gt;
 &#039;&#039;&#039;&#039;&#039;logical, save&amp;amp;nbsp;:: verbose=.false.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 integer,save&amp;amp;nbsp;:: beeman_integrator = 0&lt;br /&gt;
 public AMOEBA_read_mdin,do_amoeba,do_amoeba_valence, &amp;amp;amp;&lt;br /&gt;
    do_amoeba_nonbond,verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
    sor_coefficient,dipole_scf_tol,dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
    ee_dsum_cut,ee_damped_cut,thole_expon_coeff,vdw_taper, &amp;amp;amp;&lt;br /&gt;
    compress,do_vdw_taper,do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
    &#039;&#039;&#039;softcore_lamda,softcore_alpha,softcore_expo, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;lig_idx1, lig_idx2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
softcore_expo: exponential of softcore equation with initial value 4 &lt;br /&gt;
&lt;br /&gt;
softcore_alpha: coefficient of softcore with initial value 0.5d0 &lt;br /&gt;
&lt;br /&gt;
softcore_lamda: scaling factor of decoupling usually changing from 1.0 to 0.0 linearly with initial value 1.0d0 &lt;br /&gt;
&lt;br /&gt;
lig_idx1,lig_idx2: first and last index of the ligand in the pdb file of the protein holo structure with initial values 1 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Include the new parameters in the amoeba_mdin namelist&lt;br /&gt;
&lt;br /&gt;
  namelist/amoeba/do_amoeba,do_amoeba_valence,do_amoeba_nonbond, &amp;amp;amp;&lt;br /&gt;
                  do_bond,do_ureyb,do_reg_angle,  &amp;amp;amp;&lt;br /&gt;
                  do_trig_angle,do_opbend,do_torsion,do_str_torsion, &amp;amp;amp;&lt;br /&gt;
                  do_pi_torsion,do_strbend,do_torsion_torsion, &amp;amp;amp;&lt;br /&gt;
                  do_recip,do_adjust,do_direct,do_self, &amp;amp;amp;&lt;br /&gt;
                  do_vdw,do_induced,verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
                  sor_coefficient,dipole_scf_tol, &amp;amp;amp;&lt;br /&gt;
                  dipole_scf_iter_max,ee_dsum_cut,ee_damped_cut, &amp;amp;amp;&lt;br /&gt;
                  thole_expon_coeff,vdw_taper,do_vdw_taper,do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                  compress, &#039;&#039;&#039;softcore_lamda,softcore_alpha,softcore_expo, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
             &#039;&#039;&#039;lig_idx1,lig_idx2&#039;&#039;&#039;&lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
*Include the variables in amoeba_vdw.f&lt;br /&gt;
&lt;br /&gt;
  subroutine AM_VDW_DIRECT_ene_frc_i(i,ipairs,numtot,xk,yk,zk, &amp;amp;amp;&lt;br /&gt;
                                   crd,ene_vdw,frc,virial)&lt;br /&gt;
  use nblist, only: bckptr,imagcrds,tranvec&lt;br /&gt;
  use constants, only&amp;amp;nbsp;: zero,one,two,three,four,five,seven&lt;br /&gt;
  use amoeba_mdin, only&amp;amp;nbsp;: do_vdw_taper, &#039;&#039;&#039;lig_idx1,lig_idx2, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
                      &#039;&#039;&#039;softcore_lamda,softcore_alpha,softcore_expo&#039;&#039;&#039;&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: i,ipairs(*),numtot&lt;br /&gt;
 _REAL_,intent(in)&amp;amp;nbsp;:: xk,yk,zk,crd(3,*)&lt;br /&gt;
 _REAL_,intent(inout)&amp;amp;nbsp;:: ene_vdw,frc(3,*),virial(3,3)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Insert the softcore algorithm with new parameters in the same subroutine&lt;br /&gt;
&lt;br /&gt;
  dt1drho = -seven*t1 / (rho + vdw_buf_delta)&lt;br /&gt;
  dt2drho = -seven*t2 * (rho6 / (rho7 + vdw_buf_gamma))&lt;br /&gt;
  drhodr = one / rad&lt;br /&gt;
  &#039;&#039;&#039;if ((lig_idx1 &amp;amp;lt;= i .and. i &amp;amp;lt;= lig_idx2) .or. (lig_idx1 &amp;amp;lt;= j .and. j &amp;amp;lt;= lig_idx2) )then&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;eps = eps * softcore_lamda ** softcore_expo&#039;&#039;&#039; &lt;br /&gt;
        &#039;&#039;&#039;t1 = (one + vdw_buf_delta)**7 / (softcore_alpha * (1 - softcore_lamda)**2 + (rho + vdw_buf_delta)**7)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;t2 = (one + vdw_buf_gamma) / (softcore_alpha * (1 - softcore_lamda)**2 + rho7 + vdw_buf_gamma)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;dt1drho = (-seven * (rho + vdw_buf_delta)**6 * t1) / (softcore_alpha * (1 - softcore_lamda)**2 + (rho + vdw_buf_delta)**7)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;dt2drho = (-seven * rho6 * t2) / (softcore_alpha * (1 - softcore_lamda)**2 + rho7 + vdw_buf_gamma)&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;endif&#039;&#039;&#039;&lt;br /&gt;
 f = eps*t1*(t2 - two)&lt;br /&gt;
 dfdr = eps*(dt1drho*(t2 - two) + t1*dt2drho)*drhodr&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Include the new parameter in the input file (mdin)&lt;br /&gt;
&lt;br /&gt;
   &amp;amp;amp;amoeba&lt;br /&gt;
   do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
   do_amoeba=1,do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1,&lt;br /&gt;
   do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
   do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
   do_torsion_torsion=1,&lt;br /&gt;
   do_vdw=1,verbose=.false.,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
   do_self=1,dipole_scf_tol = 0.05,dipole_scf_iter_max=30,&lt;br /&gt;
   sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
   &#039;&#039;&#039;softcore_lamda=0.9,softcore_alpha=0.7,softcore_expo=5,&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;lig_idx1=3224,lig_idx2=3241&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here we take lambda=0.9 alpha=0.7 exponent=5 as example. The ligand atom index ranges from 3224 to 3241 (benzamidine in trypsin). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Modifying Sander/AMBER9 (Yue)  ===&lt;br /&gt;
&lt;br /&gt;
==== &amp;amp;nbsp;&amp;amp;nbsp;Adding softcore parameters in Sander  ====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; The modified files are in &lt;br /&gt;
&amp;lt;pre&amp;gt; /home/yues/amber9/src-range-soft/  (a range of ligand atoms is specified for soft-core)&lt;br /&gt;
 /home/yues/amber9/src-atm-soft/  (two atoms specified for soft-core)&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Two files have been modified: amoeba_mdin.f and amoeba_vdw.f. &lt;br /&gt;
&lt;br /&gt;
*Add the parameter(s) to the variable definitions in amoeba_mdin.f and assign initial values to them:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;...&lt;br /&gt;
module amoeba_mdin&lt;br /&gt;
  implicit none&lt;br /&gt;
  private&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: iamoeba=0,do_amoeba_valence=1,do_amoeba_nonbond=1, &amp;amp;amp;&lt;br /&gt;
                  do_vdw_taper=1,do_vdw_longrange=1&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: sor_coefficient = 0.75d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: dipole_scf_tol = 0.01d0&lt;br /&gt;
  integer,save&amp;amp;nbsp;:: dipole_scf_iter_max = 50&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: ee_dsum_cut=7.d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: ee_damped_cut=4.5d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: vdw_taper = 0.9d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: thole_expon_coeff=0.39d0    &lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: compress = 0.000046d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: softcore_lamda = 1.0d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: softcore_alpha = 0.5d0&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: softcore_expo = 4&lt;br /&gt;
  &#039;&#039;&#039;_REAL_,save :: lig_idx1 = 1&#039;&#039;&#039;&lt;br /&gt;
  _REAL_,save&amp;amp;nbsp;:: lig_idx2 = 1&amp;amp;lt;/span&amp;amp;gt;&amp;amp;lt;br&amp;amp;gt; integer, save&amp;amp;nbsp;:: amoeba_verbose = 0&amp;amp;lt;br&amp;amp;gt; integer,save&amp;amp;nbsp;:: beeman_integrator = 0&amp;amp;lt;br&amp;amp;gt; public AMOEBA_read_mdin,iamoeba,do_amoeba_valence, &amp;amp;amp;&amp;amp;lt;br&amp;amp;gt; do_amoeba_nonbond,amoeba_verbose,beeman_integrator, &amp;amp;amp;&amp;amp;lt;br&amp;amp;gt; sor_coefficient,dipole_scf_tol,dipole_scf_iter_max, &amp;amp;amp;&amp;amp;lt;br&amp;amp;gt; ee_dsum_cut,ee_damped_cut,thole_expon_coeff,vdw_taper, &amp;amp;amp;&amp;amp;lt;br&amp;amp;gt; compress,&amp;amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;amp;gt;do_vdw_taper,do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
         softcore_lamda,softcore_alpha,softcore_expo, &amp;amp;amp;&lt;br /&gt;
         lig_idx1, lig_idx2&amp;amp;lt;/span&amp;amp;gt;&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;br&amp;amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;amp;nbsp; softcore_expo: exponential of softcore equation with initial value 4 &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; softcore_alpha: coefficient of softcore with initial value 0.5d0 &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; softcore_lamda: scaling factor of decoupling usually changing from 1.0 to 0.0 linearly with initial value 1.0d0 &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; lig_idx1,lig_idx2: first and last index of the ligand in the pdb file of the protein holo structure with initial values 1 &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Include the noew parameters in the subroutine AMOEBA_read_mdin(nf) namelist&lt;br /&gt;
&amp;lt;pre&amp;gt; namelist/amoeba/do_amoeba_valence,do_amoeba_nonbond, &amp;amp;amp;&lt;br /&gt;
		 do_bond,do_ureyb,do_reg_angle, &amp;amp;amp;&lt;br /&gt;
		 do_trig_angle,do_opbend,do_torsion,do_str_torsion, &amp;amp;amp;&lt;br /&gt;
		 do_pi_torsion,do_strbend,do_torsion_torsion, &amp;amp;amp;&lt;br /&gt;
		 do_recip,do_adjust,do_direct,do_self, &amp;amp;amp;&lt;br /&gt;
		 do_vdw,do_induced,amoeba_verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
		 sor_coefficient,dipole_scf_tol, &amp;amp;amp;&lt;br /&gt;
		 dipole_scf_iter_max,ee_dsum_cut,ee_damped_cut, &amp;amp;amp;&lt;br /&gt;
		 thole_expon_coeff,vdw_taper,do_vdw_taper,do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
		 compress, &#039;&#039;&#039;&#039;&#039;softcore_lamda,softcore_alpha,softcore_expo, &amp;amp;amp;&lt;br /&gt;
		 lig_idx1, lig_idx2&#039;&#039;&#039;&#039;&#039;&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Include the variables in amoeba_vdw.f&lt;br /&gt;
&amp;lt;pre&amp;gt;subroutine AM_VDW_DIRECT_ene_frc_i(i,ipairs,numtot,xk,yk,zk, &amp;amp;amp;&lt;br /&gt;
				crd,ene_vdw,frc,virial)&lt;br /&gt;
use nblist, only: bckptr,imagcrds,tranvec&lt;br /&gt;
use constants, only&amp;amp;nbsp;: zero,one,two,three,four,five,seven&lt;br /&gt;
use amoeba_mdin, only&amp;amp;nbsp;: do_vdw_taper,&#039;&#039;&#039;&#039;&#039;lig_idx1,lig_idx2, &amp;amp;amp;				&lt;br /&gt;
			softcore_lamda,softcore_alpha,softcore_expo&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
integer,intent(in)&amp;amp;nbsp;:: i,ipairs(*),numtot&lt;br /&gt;
_REAL_,intent(in)&amp;amp;nbsp;:: xk,yk,zk,crd(3,*)&lt;br /&gt;
_REAL_,intent(inout)&amp;amp;nbsp;:: ene_vdw,frc(3,*),virial(3,3)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*&amp;amp;nbsp; Insert the softcore algorithm with new parameters in the same subroutine&lt;br /&gt;
&lt;br /&gt;
/home/yues/amber9/src-range-soft/ (a range of ligand atoms is specified for soft-core) &lt;br /&gt;
&amp;lt;pre&amp;gt;if ( delr2 &amp;amp;lt; vdw_switch_off_2 )then&lt;br /&gt;
	jt = vdw_atom_type(j)&lt;br /&gt;
	eps = vdw_epsilon(jt,it)&lt;br /&gt;
	rad = vdw_radius(jt,it)&lt;br /&gt;
	delr = sqrt(delr2)&lt;br /&gt;
	rho = delr / rad&lt;br /&gt;
	rho6 = rho**6&lt;br /&gt;
	rho7 = rho6*rho&lt;br /&gt;
	t1 = ((one + vdw_buf_delta) / (rho + vdw_buf_delta))**7&lt;br /&gt;
	t2 = (one + vdw_buf_gamma) / (rho7 + vdw_buf_gamma)&lt;br /&gt;
	dt1drho = -seven*t1 / (rho + vdw_buf_delta)&lt;br /&gt;
	dt2drho = -seven*t2 * (rho6 / (rho7 + vdw_buf_gamma))&lt;br /&gt;
	drhodr = one / rad&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039; 	if ((lig_idx1 &amp;amp;lt;= i .and. i &amp;amp;lt;= lig_idx2) .or. (lig_idx1 &amp;amp;lt;= j .and. j &amp;amp;lt;= lig_idx2) )then&lt;br /&gt;
		eps = eps * softcore_lamda ** softcore_expo &lt;br /&gt;
		t1 = (one + vdw_buf_delta)**7 / (softcore_alpha * (1 - softcore_lamda)**2 + (rho + vdw_buf_delta)**7)&lt;br /&gt;
		t2 = (one + vdw_buf_gamma) / (softcore_alpha * (1 - softcore_lamda)**2 + rho7 + vdw_buf_gamma)&lt;br /&gt;
		dt1drho = (-seven * (rho + vdw_buf_delta)**6 * t1) / (softcore_alpha * (1 - softcore_lamda)**2 + (rho + vdw_buf_delta)**7)&lt;br /&gt;
		dt2drho = (-seven * rho6 * t2) / (softcore_alpha * (1 - softcore_lamda)**2 + rho7 + vdw_buf_gamma)&lt;br /&gt;
	endif&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;	f = eps*t1*(t2 - two)&lt;br /&gt;
	dfdr = eps*(dt1drho*(t2 - two) + t1*dt2drho)*drhodr&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;/home/yues/amber9/src-atm-soft/ (two atoms specified for soft-core) &lt;br /&gt;
&amp;lt;pre&amp;gt;if ( delr2 &amp;amp;lt; vdw_switch_off_2 )then&lt;br /&gt;
	jt = vdw_atom_type(j)&lt;br /&gt;
	eps = vdw_epsilon(jt,it)&lt;br /&gt;
	rad = vdw_radius(jt,it)&lt;br /&gt;
	delr = sqrt(delr2)&lt;br /&gt;
	rho = delr / rad&lt;br /&gt;
	rho6 = rho**6&lt;br /&gt;
	rho7 = rho6*rho&lt;br /&gt;
	t1 = ((one + vdw_buf_delta) / (rho + vdw_buf_delta))**7&lt;br /&gt;
	t2 = (one + vdw_buf_gamma) / (rho7 + vdw_buf_gamma)&lt;br /&gt;
	dt1drho = -seven*t1 / (rho + vdw_buf_delta)&lt;br /&gt;
	dt2drho = -seven*t2 * (rho6 / (rho7 + vdw_buf_gamma))&lt;br /&gt;
	drhodr = one / rad&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;	if ((lig_idx1 == i .and. i == lig_idx2) .or. (lig_idx1 == j .and. j == lig_idx2) )then&lt;br /&gt;
		eps = eps * softcore_lamda ** softcore_expo &lt;br /&gt;
		t1 = (one + vdw_buf_delta)**7 / (softcore_alpha * (1 - softcore_lamda)**2 + (rho + vdw_buf_delta)**7)&lt;br /&gt;
		t2 = (one + vdw_buf_gamma) / (softcore_alpha * (1 - softcore_lamda)**2 + rho7 + vdw_buf_gamma)&lt;br /&gt;
		dt1drho = (-seven * (rho + vdw_buf_delta)**6 * t1) / (softcore_alpha * (1 - softcore_lamda)**2 + (rho + vdw_buf_delta)**7)&lt;br /&gt;
		dt2drho = (-seven * rho6 * t2) / (softcore_alpha * (1 - softcore_lamda)**2 + rho7 + vdw_buf_gamma)&lt;br /&gt;
	endif&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;f = eps*t1*(t2 - two)&lt;br /&gt;
dfdr = eps*(dt1drho*(t2 - two) + t1*dt2drho)*drhodr&lt;br /&gt;
 &amp;lt;/pre&amp;gt; &lt;br /&gt;
*Include the new parameter in the input file (mdin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;amp;amp;amoeba&lt;br /&gt;
do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1,&lt;br /&gt;
do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
do_torsion_torsion=1,&lt;br /&gt;
do_vdw=1,amoeba_verbose=0,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
do_self=1,dipole_scf_tol = 0.05,dipole_scf_iter_max=30,&lt;br /&gt;
sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
&#039;&#039;&#039;softcore_lamda=0.4,softcore_alpha=0.7,softcore_expo=5,&lt;br /&gt;
lig_idx1=12,lig_idx2=13&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== &amp;amp;nbsp;Changing the damping factor of metal ions,such as Ca2+ and Mg2+  ====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; There are three files modified: amoeba_interface.f, amoeba_induced.f and&amp;amp;nbsp;sander.f. &lt;br /&gt;
&lt;br /&gt;
*In amoeba_induced.f, add mass variable in function AM_INDUCED_readparm.&lt;br /&gt;
&amp;lt;pre&amp;gt;function AM_INDUCED_readparm(nf,num_atoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
integer&amp;amp;nbsp;:: AM_INDUCED_readparm&lt;br /&gt;
integer,intent(in)&amp;amp;nbsp;:: nf,num_atoms&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Then insert the following lines in the same function&lt;br /&gt;
&amp;lt;pre&amp;gt;do n = 1,num_atoms&lt;br /&gt;
if ( polarizability(n) &amp;amp;gt; polmin )then&lt;br /&gt;
	is_polarizable(n) = .true.&lt;br /&gt;
	sq_polinv(n) = 1.d0 / sqrt(polarizability(n))&lt;br /&gt;
   &#039;&#039;&#039;&#039;&#039;if ( abs(mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
		write (6,*) &amp;quot;Ca damp&amp;quot;,n,mass(n),polarizability(n)&lt;br /&gt;
	if ( abs(mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
		sq_polinv(n) = 1 /1.35d0**3*sq_polinv(n)&lt;br /&gt;
	if ( abs(mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
		write (6,*) &amp;quot;Mg damp&amp;quot;,n,mass(n),polarizability(n)&lt;br /&gt;
	if ( abs(mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&lt;br /&gt;
		sq_polinv(n) = 1 /1.60d0**3*sq_polinv(n)&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
endif&lt;br /&gt;
enddo&lt;br /&gt;
AM_INDUCED_readparm = 1&lt;br /&gt;
do_flag = ibset(do_flag,VALID_BIT)&lt;br /&gt;
end function AM_INDUCED_readparm&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*&amp;amp;nbsp; After that, add mass variables and its definition in any programs or subroutines that is related to this function.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; In amoeba_interface.f &lt;br /&gt;
&amp;lt;pre&amp;gt;subroutine AM_NONBOND_readparm(nf,natom,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 use amoeba_multipoles, only&amp;amp;nbsp;: AM_MPOLE_readparm&lt;br /&gt;
 use amoeba_adjust, only&amp;amp;nbsp;: AM_ADJUST_readparm&lt;br /&gt;
 use amoeba_vdw, only&amp;amp;nbsp;: AM_VDW_read_parm&lt;br /&gt;
 use amoeba_induced, only&amp;amp;nbsp;: AM_INDUCED_readparm&lt;br /&gt;
 use amoeba_recip, only&amp;amp;nbsp;: AM_RECIP_allocate&lt;br /&gt;
 use amoeba_runmd, only&amp;amp;nbsp;: AM_RUNMD_init&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,natom&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039; _REAL_ mass(*)&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 integer&amp;amp;nbsp;:: mpole_valid,adjust_valid,vdw_valid,polar_valid&lt;br /&gt;
 mpole_valid = AM_MPOLE_readparm(nf,natom)&lt;br /&gt;
 adjust_valid = AM_ADJUST_readparm(nf)&lt;br /&gt;
 vdw_valid = AM_VDW_read_parm(nf)&lt;br /&gt;
 polar_valid = AM_INDUCED_readparm(nf,natom,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;subroutine AMOEBA_readparm(nf,ntf,ntc,numatoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 use amoeba_mdin, only&amp;amp;nbsp;: iamoeba&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,numatoms&lt;br /&gt;
 integer,intent(inout)&amp;amp;nbsp;:: ntf,ntc&amp;amp;nbsp;!set these to 8,1 if amoeba-friendly prmtop&lt;br /&gt;
 !so regular amber valence &amp;amp;amp; shake not run&lt;br /&gt;
 &#039;&#039;&#039;&#039;&#039;_REAL_ mass(*)&lt;br /&gt;
 &#039;&#039;&#039;&#039;&#039; call AMOEBA_check_parm_legal(nf)&lt;br /&gt;
if ( iamoeba /= 1 )return&lt;br /&gt;
 call AM_VAL_readparm(nf,ntf,ntc)&lt;br /&gt;
 call AM_NONBOND_readparm(nf,numatoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
end subroutine AMOEBA_readparm&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; In sander.f &lt;br /&gt;
&amp;lt;pre&amp;gt;call rdparm2(x,ix,ih,ipairs,8) &lt;br /&gt;
call AMOEBA_readparm(8,ntf,ntc,natom,&#039;&#039;&#039;&#039;&#039;x(lmass)&#039;&#039;&#039;&#039;&#039;)! ntf,ntc get reset if amoeba prmtop&lt;br /&gt;
if (qmmm_nml%ifqnt) then&lt;br /&gt;
	call read_qmmm_namelist_and_allocate(igb, ih, ix, x, cut, use_pme, ntb)	&lt;br /&gt;
end if &lt;br /&gt;
call mdread2(x,ix,ih,ipairs)&lt;br /&gt;
! --- alloc memory for decomp module that needs info from mdread2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;amp;nbsp;PMEMD.AMOEBA Modifications in Amber 12 ===&lt;br /&gt;
====a. RESPA====&lt;br /&gt;
*Respa performs multiple time step molecular dynamics using the reversible reference system propagation algorithm (r-RESPA) via a Verlet core with the potential split into fast- and slow-evolving portions.&lt;br /&gt;
*Code Modification&lt;br /&gt;
**Added a new file (amoeba_force_respa.F90) to calculate the RESPA energy and force&lt;br /&gt;
&lt;br /&gt;
 !every nrespa step, calculate the nonbond interactions&lt;br /&gt;
 if (need_pot_enes) then                                                            &lt;br /&gt;
 call am_nonbond_eval(atm_cnt, crd, frc, img_frc, virial_lcl, &amp;amp;                     &lt;br /&gt;
                      pot_ene%vdw, pot_ene%elec, pot_ene%polar, &amp;amp;                   &lt;br /&gt;
                      pot_ene%vdw_14, diprms, dipiter, netfrcs)                     &lt;br /&gt;
 end if                                                                                                                                                                &lt;br /&gt;
 ...&lt;br /&gt;
 !Other conditions, calculate the valence interactions  only                                                                          &lt;br /&gt;
 if (.not. need_pot_enes) then                                                      &lt;br /&gt;
 call am_val_eval(crd, frc, virial_lcl, &amp;amp;                                           &lt;br /&gt;
                  pot_ene%bond, pot_ene%angle, pot_ene%dihedral)                    &lt;br /&gt;
 end if&lt;br /&gt;
&lt;br /&gt;
*Important Modifications in runmd.F90&lt;br /&gt;
 use amoeba_force_respa_mod&lt;br /&gt;
 …&lt;br /&gt;
 ! When using respa, call bonded force or nonbonded force at different conditions&lt;br /&gt;
   !bond                                                                                  &lt;br /&gt;
  need_pot_enes = .false.                                                    &lt;br /&gt;
  #ifdef MPI                                                                             &lt;br /&gt;
  call amoeba_force_respa(atm_cnt, crd, frc, gbl_img_atm_map, gbl_atm_img_map, &amp;amp; &lt;br /&gt;
                         my_atm_lst, new_list, need_pot_enes, need_virials,   amba_pot_ene,&lt;br /&gt;
                         si(si_diprms), si(si_dipiter), virial)                           &lt;br /&gt;
   #else                                                                                  &lt;br /&gt;
 call amoeba_force_respa(atm_cnt, crd, frc, gbl_img_atm_map, gbl_atm_img_map, &amp;amp; &lt;br /&gt;
                             new_list, need_pot_enes, need_virials,  amba_pot_ene, &amp;amp;      &lt;br /&gt;
                             si(si_diprms), si(si_dipiter), virial)                       &lt;br /&gt;
   #endif /* MPI */&lt;br /&gt;
                                       &lt;br /&gt;
  !nonbond                                                                               &lt;br /&gt;
  #ifdef MPI                                                                             &lt;br /&gt;
  call amoeba_force_respa(atm_cnt, crd, frc, gbl_img_atm_map, gbl_atm_img_ma&lt;br /&gt;
                        my_atm_lst, new_list, need_pot_enes, need_virials, amba_pot_ene, &lt;br /&gt;
                        si(si_diprms), si(si_dipiter), virial)                           &lt;br /&gt;
  #else                                                                                  &lt;br /&gt;
  call amoeba_force_respa(atm_cnt, crd, frc, gbl_img_atm_map, gbl_atm_img_ma&lt;br /&gt;
                        new_list, need_pot_enes, need_virials, amba_pot_ene, &amp;amp;           &lt;br /&gt;
                        si(si_diprms), si(si_dipiter), virial)                           &lt;br /&gt;
  #endif   &lt;br /&gt;
 &lt;br /&gt;
 !Update nonbond contribution to velocity, every nrespa steps&lt;br /&gt;
        do j = 1, atm_cnt                                                                &lt;br /&gt;
          wfac = atm_mass_inv(j) * dtx                                                   &lt;br /&gt;
          vel(:, j) = vel(:, j) + frc(:, j) * wfac                                       &lt;br /&gt;
          if (onstep) then                                                               &lt;br /&gt;
            vel(:,j) = vel(:,j) + frc_nb(:,j) * wfac * nrespa                            &lt;br /&gt;
          endif                                                                          &lt;br /&gt;
        end do&lt;br /&gt;
* Input Example&lt;br /&gt;
 short md, nve ensemble                    &lt;br /&gt;
 &amp;amp;cntrl                                                    &lt;br /&gt;
   irest=1,ntx=7,                                     &lt;br /&gt;
   nstlim=1000,     &lt;br /&gt;
   ntpr=10, ntwr=100,ntave=100,                              &lt;br /&gt;
   nscm=100,ntwx=100,     &lt;br /&gt;
   &#039;&#039;&#039;dt=0.00025, nrespa=10,&#039;&#039;&#039; vlimit=10.0,&lt;br /&gt;
   cut=12.0,maxcyc=50,ntmin=2,imin=0,       &lt;br /&gt;
   ntt=4, temp0=298.0,tempi=298.0,tautp=0.5,&lt;br /&gt;
   iamoeba=1&lt;br /&gt;
 /                                                &lt;br /&gt;
 &amp;amp;ewald                                                    &lt;br /&gt;
  nfft1=36,nfft2=36,nfft3=36,                                &lt;br /&gt;
  skinnb=2.0,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amoeba                                   &lt;br /&gt;
   do_induced=1,do_recip=1,do_direct=1,do_adjust=1,      &lt;br /&gt;
   do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=0,&lt;br /&gt;
   do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,       &lt;br /&gt;
   do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
   do_torsion_torsion=1,amoeba_verbose=0,&lt;br /&gt;
   do_vdw=1,do_vdw_longrange=0,do_vdw_taper=1,&lt;br /&gt;
   do_self=1,dipole_scf_tol = 0.0001,dipole_scf_iter_max=30,&lt;br /&gt;
   sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=8,&lt;br /&gt;
 /&lt;br /&gt;
dt=0.00025 Time step of valence interactions&lt;br /&gt;
&lt;br /&gt;
nrespa=10 Update nonbonded interactions every nrespa steps&lt;br /&gt;
&lt;br /&gt;
====b. Bussi====&lt;br /&gt;
*An extension of the Berendsen thermostat in which a random force is added to ensure the correct kinetic energy distribution&lt;br /&gt;
*Modifications in runmd.F90&lt;br /&gt;
 if (ntt .eq. 4 .and. onstep) then                                                &lt;br /&gt;
           temp = eke / fac(1)                                                           &lt;br /&gt;
           if (temp .eq. 0.0d0) temp = 0.1d0                                             &lt;br /&gt;
           c = exp(-dt * nrespa/tautp)                                                   &lt;br /&gt;
           d = (1.0d0-c) * (temp0/temp) / (rndfp + rndfs)                                &lt;br /&gt;
           call gauss(0.d0,1.d0,r)                                                       &lt;br /&gt;
           s = 0.0d0                                                                     &lt;br /&gt;
           do i = 1, (rndfp + rndfs-1)                                                   &lt;br /&gt;
              	call gauss(0.d0,1.d0,si_bussi)                                             &lt;br /&gt;
              	s = s + si_bussi*si_bussi                                                  &lt;br /&gt;
           end do                                                                        &lt;br /&gt;
           scaltp = c + (s+r*r)*d + 2.0d0*r*sqrt(c*d)                                    &lt;br /&gt;
           scaltp = sqrt(scaltp)                                                         &lt;br /&gt;
           if (r+sqrt(c/d) .lt. 0.0d0)  scaltp = -scaltp                                 &lt;br /&gt;
  #ifdef MPI                                                                             &lt;br /&gt;
          do atm_lst_idx = 1, my_atm_cnt                                                 &lt;br /&gt;
           	 j = my_atm_lst(atm_lst_idx)                                                  &lt;br /&gt;
  #else                                                                                  &lt;br /&gt;
          do j = 1, atm_cnt                                                              &lt;br /&gt;
  #endif                                                                                 &lt;br /&gt;
           	 vel(:, j) = vel(:, j) * scaltp                                               &lt;br /&gt;
          end do                                                                         &lt;br /&gt;
  end if !(bussi)&lt;br /&gt;
*Input Example&lt;br /&gt;
 short md, nve ensemble                    &lt;br /&gt;
 &amp;amp;cntrl                                                    &lt;br /&gt;
   irest=1,ntx=7,                                     &lt;br /&gt;
   nstlim=1000,     &lt;br /&gt;
   ntpr=10, ntwr=100,ntave=100,                              &lt;br /&gt;
   nscm=100,ntwx=100,     &lt;br /&gt;
   dt=0.00025, vlimit=10.0,nrespa=10,  &lt;br /&gt;
   cut=12.0,maxcyc=50,ntmin=2,imin=0,       &lt;br /&gt;
   ntt=4, temp0=298.0,tempi=298.0,tautp=0.5,&lt;br /&gt;
   iamoeba=1&lt;br /&gt;
 /                                                &lt;br /&gt;
 &amp;amp;ewald                                                    &lt;br /&gt;
  nfft1=36,nfft2=36,nfft3=36,                                &lt;br /&gt;
  skinnb=2.0,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amoeba                                   &lt;br /&gt;
   do_induced=1,do_recip=1,do_direct=1,do_adjust=1,      &lt;br /&gt;
   do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=0,&lt;br /&gt;
   do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,       &lt;br /&gt;
   do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
   do_torsion_torsion=1,amoeba_verbose=0,&lt;br /&gt;
   do_vdw=1,do_vdw_longrange=0,do_vdw_taper=1,&lt;br /&gt;
   do_self=1,dipole_scf_tol = 0.0001,dipole_scf_iter_max=30,&lt;br /&gt;
   sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=8,&lt;br /&gt;
 /&lt;br /&gt;
ntt=4  Enable bussi thermostat&lt;br /&gt;
&lt;br /&gt;
====c. REMD====&lt;br /&gt;
*Copy remd_exchg.F90 and remd.F90 over from regular PMEMD&lt;br /&gt;
&lt;br /&gt;
*Add REMD loop to runmd.F90 and amoeba_runmd.F90 (similar to regular PMEMD)&lt;br /&gt;
&lt;br /&gt;
*Other files with minor changes: bintraj.F90, file_io_dat.F90, get_cmdline.F90, master_setup.F90, mdin_ctrl_dat.F90, multipmemd.F90, parallel_dat.F90, pmemd.amoeba.F90, runfiles.F90&lt;br /&gt;
&lt;br /&gt;
*Input Example&lt;br /&gt;
 short md, nve ensemble&lt;br /&gt;
 &amp;amp;cntrl&lt;br /&gt;
   irest=0,&lt;br /&gt;
   nstlim=4000,numexchg=1000,&lt;br /&gt;
   ntpr=4000,ntwr=4000,ntave=4000,&lt;br /&gt;
   nscm=4000,ntwx=4000,&lt;br /&gt;
   dt=0.00025, vlimit=10.0, nrespa=10&lt;br /&gt;
   cut=12.0,maxcyc=50,ntmin=2,imin=0,&lt;br /&gt;
   ntt=4, temp0=XXXXX, ig=RANDOM_NUMBER,&lt;br /&gt;
   tautp=1.0,  iamoeba=1,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;ewald&lt;br /&gt;
  nfft1=40,nfft2=40,nfft3=40,&lt;br /&gt;
  skinnb=0.8,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amoeba&lt;br /&gt;
   do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
   do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=0,&lt;br /&gt;
   do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
   do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
   do_torsion_torsion=1,amoeba_verbose=0,&lt;br /&gt;
   do_vdw=1,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
   do_self=1,dipole_scf_tol = 0.01,dipole_scf_iter_max=30,&lt;br /&gt;
   sor_coefficient=0.6,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
 /&lt;br /&gt;
nstlim: Number of steps to run in each exchange&lt;br /&gt;
numexchg: Number of exchanges&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:condor_cluster&amp;diff=2120</id>
		<title>Research:condor cluster</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:condor_cluster&amp;diff=2120"/>
		<updated>2025-04-21T23:33:15Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;== Running on the Condor cluster == * An example working directory is in ~chona/amoeba/softcore_vdw3 on lela.tacc.utexas.edu.  * Prior to submitting the job, make sure that the dynamic libraries can be found by the dynamic linker. This can be done by redefining the environment library LD_LIBRARY_PATH. In bash,   lela% export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH will prepend the current directory to the list of paths searched by ld or ld.so. Then run ldd   lela% ldd sander...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running on the Condor cluster ==&lt;br /&gt;
* An example working directory is in ~chona/amoeba/softcore_vdw3 on lela.tacc.utexas.edu.&lt;br /&gt;
&lt;br /&gt;
* Prior to submitting the job, make sure that the dynamic libraries can be found by the dynamic linker. This can be done by redefining the environment library LD_LIBRARY_PATH. In bash,&lt;br /&gt;
  lela% export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH&lt;br /&gt;
will prepend the current directory to the list of paths searched by ld or ld.so. Then run ldd&lt;br /&gt;
  lela% ldd sander&lt;br /&gt;
        libpthread.so.0 =&amp;gt; /lib/tls/libpthread.so.0 (0x00365000)&lt;br /&gt;
        libguide.so =&amp;gt; ./libguide.so (0x00f27000)&lt;br /&gt;
        libm.so.6 =&amp;gt; /lib/tls/libm.so.6 (0x0024f000)&lt;br /&gt;
        libcxa.so.5 =&amp;gt; ./libcxa.so.5 (0x00963000)&lt;br /&gt;
        libunwind.so.5 =&amp;gt; ./libunwind.so.5 (0x00b77000)&lt;br /&gt;
        libc.so.6 =&amp;gt; /lib/tls/libc.so.6 (0x0011c000)&lt;br /&gt;
        libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0x00249000)&lt;br /&gt;
        /lib/ld-linux.so.2 (0x00103000)&lt;br /&gt;
and confirm that there are no &amp;quot;not found&amp;quot; errors.&lt;br /&gt;
&lt;br /&gt;
* Alternatively, you can add &amp;quot;-Wl,rpath=.&amp;quot; to the sander Makefile. If this is done, then LD_LIBRARY_PATH does not have to be redefined.&lt;br /&gt;
&lt;br /&gt;
* The file &amp;quot;job&amp;quot; is the Condor job script:&lt;br /&gt;
  lela% cat job&lt;br /&gt;
  getenv=true&lt;br /&gt;
  initialdir = /home/chona/amoeba/softcore_vdw2&lt;br /&gt;
  Arguments=-i vdw1.mdin -c vdw1.inpcrd -p vdw1.prmtop -o 06.mdout -r 06.restrt&lt;br /&gt;
  universe = vanilla&lt;br /&gt;
  should_transfer_files = TRUE&lt;br /&gt;
  when_to_transfer_output = ON_EXIT&lt;br /&gt;
  transfer_output_files = 06.mdout,06.restrt&lt;br /&gt;
  transfer_executable = true&lt;br /&gt;
  executable=sander&lt;br /&gt;
  transfer_input = true&lt;br /&gt;
  transfer_input_files = vdw1.mdin,vdw1.inpcrd,vdw1.prmtop,libsvml.so,libvml.so,libguide.so,libcxa.so.5,libunwind.so.5,bnd.rst&lt;br /&gt;
  requirements = (OpSys == &amp;quot;LINUX&amp;quot;) &amp;amp;&amp;amp; (Arch != &amp;quot;dummy&amp;quot;)&lt;br /&gt;
  error = log/sander.err&lt;br /&gt;
  log = log/sander.log&lt;br /&gt;
  queue 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;getenv&#039;&#039;&#039; tells Condor to run the executable in the environment inherited from the submission machine&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;initialdir&#039;&#039;&#039; is the directory in the submission machine to which all of the file paths (i.e., input, executables, log and error files) are relative  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;arguments&#039;&#039;&#039; are the runtime arguments for the executable&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;transfer_output_files&#039;&#039;&#039; contains a list of files that will be transferred back to submission machine when the job terminates&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;executable&#039;&#039;&#039; is the program/script to be run. In this case it is sander because that&#039;s what we run in the backend. Alternatively, this could be a wrapper script&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;transfer_input_files&#039;&#039;&#039; is a list of files that will be staged to the execution machine. This is necessary because there is no shared file system between the frontend (lela) and the computational backend. Note that we are transferring shared libraries because sander is a dynamically-linked executable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;error&#039;&#039;&#039; will contain stderr from the job&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;log&#039;&#039;&#039; is the job log file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;queue 1&#039;&#039;&#039; indicates that we will run sander once on one CPU or core&lt;br /&gt;
&lt;br /&gt;
* Please read the condor_submit man page for more detailed information on other Condor job script keywords.&lt;br /&gt;
  lela% man condor_submit&lt;br /&gt;
&lt;br /&gt;
* Submit the job.&lt;br /&gt;
  lela% condor_submit job&lt;br /&gt;
&lt;br /&gt;
* Monitor the job.&lt;br /&gt;
  lela% condor_status &amp;lt;jobID&amp;gt;&lt;br /&gt;
where &amp;lt;jobID&amp;gt; is a numeric ID returned by condor_submit after job is successfully submitted.&lt;br /&gt;
&lt;br /&gt;
* If job alternates between Run and Idle states, then there is something wrong with the job script. Usually, this could be due to files not being copied, dynamic librraies not being found, etc. You can further diagnose the problem using&lt;br /&gt;
  lela% condor_status -analyze &amp;lt;jobID&amp;gt;&lt;br /&gt;
or by reading the job log and error files.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:build_instructions_sander&amp;diff=2119</id>
		<title>Research:build instructions sander</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:build_instructions_sander&amp;diff=2119"/>
		<updated>2025-04-21T23:32:50Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;== New build instructions for Sander == * A better optimized BLAS library is available [http://www.tacc.utexas.edu/resources/software/#blas here] for free download. This has been built in bme-earth under ~chona/GotoBLAS. * Intel has optimized LAPACK routines as part of MKL. On bme-earth, this is installed in ~chona/intel/mkl/8.1/lib/em64t/. * Edit the &amp;lt;AMBER_TOP&amp;gt;/SRC/sander/Makefile to point to the MKL LAPACK and GotoBLAS libraries. The build rule for the sander* targets...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== New build instructions for Sander ==&lt;br /&gt;
* A better optimized BLAS library is available [http://www.tacc.utexas.edu/resources/software/#blas here] for free download. This has been built in bme-earth under ~chona/GotoBLAS.&lt;br /&gt;
* Intel has optimized LAPACK routines as part of MKL. On bme-earth, this is installed in ~chona/intel/mkl/8.1/lib/em64t/.&lt;br /&gt;
* Edit the &amp;lt;AMBER_TOP&amp;gt;/SRC/sander/Makefile to point to the MKL LAPACK and GotoBLAS libraries. The build rule for the sander* targets need to be changed, e.g.:&lt;br /&gt;
 #---------------------------------------------------------------------------&lt;br /&gt;
 sander$(SFX): $(NETCDF) $(OBJ) syslib nxtsec lmod&lt;br /&gt;
        $(LOAD)  -o sander$(SFX) $(OBJ) \&lt;br /&gt;
                ../lmod/lmod.a $(LOADLIB) \&lt;br /&gt;
                -L${HOME}/intel/mkl/8.1/lib/32/ -llapack \&lt;br /&gt;
                ${HOME}/GotoBLAS/libgoto.a -lmkl_ia32 -lguide \&lt;br /&gt;
                -Wl,-rpath=. \&lt;br /&gt;
                ../lib/nxtsec.o ../lib/sys.a $(NETCDFLIB)&lt;br /&gt;
&lt;br /&gt;
Note that these changes refer to the Makefile in lela.tacc.utexas.edu. You may have to change the library directories.&lt;br /&gt;
&lt;br /&gt;
* Run &amp;quot;make&amp;quot; in the sander source directory.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:compile_amber&amp;diff=2118</id>
		<title>Research:compile amber</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:compile_amber&amp;diff=2118"/>
		<updated>2025-04-21T23:32:17Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;= sander of amber pre 9 or DARDEN-AMOBEA version  =  The original source is in /home/pren/DARDEN_amber An example compiled on pluto: /home/pren/AMOEBA/amber-range-soft     source ~/.cshrc.f10   cd sander   make sander  Modified (by socar) source in /home/oscar/data2-oscar/amber_mod_org/   See here for detailed modification http://biomol.bme.utexas.edu/wiki/index.php/Research:Amber_modification   &amp;lt;br&amp;gt;   &amp;lt;br&amp;gt; README file in the directory explain the process. Esstially cd S...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= sander of amber pre 9 or DARDEN-AMOBEA version  =&lt;br /&gt;
&lt;br /&gt;
The original source is in /home/pren/DARDEN_amber An example compiled on pluto: /home/pren/AMOEBA/amber-range-soft &lt;br /&gt;
&lt;br /&gt;
  source ~/.cshrc.f10&lt;br /&gt;
  cd sander&lt;br /&gt;
  make sander&lt;br /&gt;
&lt;br /&gt;
Modified (by socar) source in /home/oscar/data2-oscar/amber_mod_org/ &lt;br /&gt;
&lt;br /&gt;
See here for detailed modification http://biomol.bme.utexas.edu/wiki/index.php/Research:Amber_modification &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; README file in the directory explain the process. Esstially cd SRC/sander and make sander. Other exe won&#039;t compile but not needed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use intel compiler ver 9! and REDHL or centos 4 (bme-sugar).&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Doesn&#039;t work on centos 5. error:Invalid GNU version&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Intel v 10 will compile but segfault when running on fc 7 or 8.&#039;&#039; &#039;&#039;&amp;amp;nbsp;&amp;amp;nbsp; &#039;&#039;&amp;lt;span style=&amp;quot;background-color: rgb(255, 255, 0);&amp;quot;&amp;gt;&#039;&#039;(were able to compile amber-rang-soft on pluto using intel v10, fc8.; and run OK)&#039;&#039;&amp;lt;/span&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;width: 742px; height: 164px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | Intel&lt;br /&gt;
| Platform&amp;lt;br&amp;gt;&lt;br /&gt;
| Compile&amp;lt;br&amp;gt;&lt;br /&gt;
| Simulation&amp;lt;br&amp;gt;&lt;br /&gt;
| Energy minimization&amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | v10&amp;lt;br&amp;gt;&lt;br /&gt;
| fc8(venus),fc7(neptune),centos5(nova),ranger&amp;lt;br&amp;gt;&lt;br /&gt;
| YES&amp;lt;br&amp;gt;&lt;br /&gt;
| YES&amp;lt;br&amp;gt;&lt;br /&gt;
| NO (prints 1st step, SEG error)&amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | v9&amp;lt;br&amp;gt;&lt;br /&gt;
| fc7,fc8,fc10,centos5&amp;lt;br&amp;gt;&lt;br /&gt;
| NO(Invalid GNU version)&amp;lt;br&amp;gt;&lt;br /&gt;
| N/A&amp;lt;br&amp;gt;&lt;br /&gt;
| N/A&amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;v9&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
| &amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;centos4(sugar)&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
| &amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;YES&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
| &amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;YES&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
| &amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;YES&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;908&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot; style=&amp;quot;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
=== &#039;&#039;&#039;&#039;&#039;&amp;amp;nbsp;Tom&#039;s orginal instruction in ~pren/DARDEN_amber/README&#039;&#039;&#039;&#039;&#039;  ===&lt;br /&gt;
&lt;br /&gt;
copy the g95_config.h into the unpacked SRC diectory as config.h &lt;br /&gt;
&lt;br /&gt;
should be able to go into sander and just say make sander&amp;lt;br&amp;gt;all the amoeba specific stuff in sander directory is named &amp;lt;br&amp;gt;amoeba_adjust.f etc. i.e. amoeba_ prefix&amp;lt;br&amp;gt;the worst of the connection to regular sander is in the list builder and&amp;lt;br&amp;gt;the fft code which are both fast but impenetrable code &lt;br /&gt;
&lt;br /&gt;
i include my intel_config.h also---sometimes this is a problem depending&amp;lt;br&amp;gt;on your c compiler and your loader&amp;lt;br&amp;gt;for intel compiler you could try one of the options in configure script&amp;lt;br&amp;gt;in src. remember to set &amp;lt;br&amp;gt;AMBERBUILDFLAGS=-DAMOEBA&amp;lt;br&amp;gt;in the resulting config.h&amp;lt;br&amp;gt;to turn on the amoeba code &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;use icc in intel_config.h &lt;br /&gt;
&lt;br /&gt;
extract mdcrd to pdb:&amp;lt;br&amp;gt;/opt/amber7/exe/ptraj pepc.prmtop pepc.scrpt&amp;lt;br&amp;gt;pepc.scrpt:&amp;lt;br&amp;gt; trajin mdcrd &amp;lt;br&amp;gt; trajout tra.pdb pdb &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= pmemd/amber9 from bob duke =&lt;br /&gt;
&lt;br /&gt;
orginal source in /home/pren/pmemd-oscar &lt;br /&gt;
&lt;br /&gt;
Follow COMPILE.readme! &lt;br /&gt;
&lt;br /&gt;
Definitely should work (priot to summer 2008) using intel v9 and RHEL/centos 4. &lt;br /&gt;
&lt;br /&gt;
But you have to remove &amp;quot;–luuid&amp;quot; in config.h &lt;br /&gt;
&lt;br /&gt;
Seems to also work with intel v10 and FC7 or 8.&lt;br /&gt;
&lt;br /&gt;
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
bme-sun (fc7) /home/pren/pmdmd-sun&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
run ./configure linux_em64t ifort mpich2 pubfft &amp;lt; in &lt;br /&gt;
&lt;br /&gt;
remove uuid and add DAMOEBA in config.h (append &amp;quot;-DAMOEBA&amp;quot; to config.h line DEFINE_F90: &amp;quot;F90_DEFINES = -DFFTLOADBAL_2PROC -DAMOEBA&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
 intel v10&lt;br /&gt;
 /opt/intel/mkl/8.1&lt;br /&gt;
 /opt/mpich2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Compilation using /opt/mpichi2 (1.03) works but may need mpich2-fc7 (1.05) to run the actual mpdboot.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
= sander in amber 9 =&lt;br /&gt;
&lt;br /&gt;
The softcor and ion and mdin (taking parameters for ligands and lambda?) modification yet to be transferred to sander/amber9.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:remd_tutorial&amp;diff=2117</id>
		<title>Research:remd tutorial</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:remd_tutorial&amp;diff=2117"/>
		<updated>2025-04-21T23:31:16Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Example system: (ala)5 peptide in water&amp;#039;&amp;#039;&amp;#039;   &amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;   *&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Get coordinate file and parameter/topology file in Amber format.&amp;#039;&amp;#039;&amp;#039; &amp;lt;/span&amp;gt;    &amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; /home/yues/amoebapro/helix/ala5-prot/wt6 A quick guide can be seen in http://water.bme.utexas.edu/wiki/index.php/Software:amber#A_Quick_Guide  &amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;   &amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;   &amp;lt;br&amp;gt;   *&amp;lt;span style...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Example system: (ala)5 peptide in water&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&#039;&#039;&#039;Get coordinate file and parameter/topology file in Amber format.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; /home/yues/amoebapro/helix/ala5-prot/wt6 A quick guide can be seen in http://water.bme.utexas.edu/wiki/index.php/Software:amber#A_Quick_Guide &lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&#039;&#039;&#039;Prepare REMD input&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; /users/jzhen/amoebapro/remd-wt6 Files needed: ala5.inpcrd; temperature.dat;ala5.mdin Run set_remd_input.x to get corresponding inpcrd and mdin at each temperature &lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&#039;&#039;&#039;Run REMD&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; Cmd: /users/jzhen/amoebapro/remd-wt6/run.4.ala5 &lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&#039;&#039;&#039;Extract trajectories for 298K&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; Note: before running the script, please change all “********” to “ 1” in ala5.mdcrd1.XXX Script in /users/jzhen/amoebapro/remd-wt6/analyze/extrac298Ktraj Cmd: ptraj ../ala5.prmtop extrac298Ktraj&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&#039;&#039;&#039;J-coupling Calculation&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; /users/jzhen/amoebapro/remd-wt6/analyze/ &lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; 1. Extract phi psi angles for each residue: ptraj ../ala5.prmtop trajin1-5&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; 2. covert the format of phi-psi torsion files to j-coupling calculation format ./get_phi_psi.sh &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; 3. Get J-coupling values by running jcalc_amber_v3.py&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; usage: /jcalc.py XXX outp_root karplus_key&lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;the input files with torsion angles should be named XXX2,XXX3...XXX6; Corresponding to residues 1 to 5. The naming comes from using blocked peptides, which we started out with. Each line of these files contains only phi and psi (no time). For the terminal residues the undefined torsion can be set to zero. outp_root is a root for naming the output and karplus key is one of {orig,dft1,dft2} as defined in the paper &lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&#039;&#039;&#039;Fraction of Helix Calculation&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&#039;&#039;&#039;Example System: (AAQAA)5 peptide in water /home/yues/amoebapro/helix/15/aaqaa-wt5-newwat&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;1. Tremd.sh is used to extract trajectory for each temperature &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;2. dihedral.sh is used to calculated phi psi angles for each trajectory &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;3. fraction.pl is used to calculate the helix fraction &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: small;&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;4. helix_anl_garcia.py is Robert Best’s helical fraction script.&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:pmemd_tacc&amp;diff=2116</id>
		<title>Research:pmemd tacc</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:pmemd_tacc&amp;diff=2116"/>
		<updated>2025-04-21T23:30:51Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;Install PMEMD on ranger (or lonestar)&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;#039;&amp;#039;&amp;#039;   &amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;&amp;amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot; /&amp;amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;   === &amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;Configure&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;  ===  &amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;Install PMEMD on ranger (or lonestar)&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;&amp;amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot; /&amp;amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;Configure&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot;&amp;gt;1. Log on to tacc with your account.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot;&amp;gt;2. Do &amp;quot;cdw&amp;quot; to redirect to your work directory.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot;&amp;gt;3. Copy PMEMD directory here.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot;&amp;gt;4. &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;Unload mvapich and load mvapich2 module &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; module unload mvapich &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; module swap pgi intel &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; module load mvapich2 &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; module load mkl &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Now if you do &amp;quot;module list&amp;quot;, the undated loaded modules will be displayed. &lt;br /&gt;
&lt;br /&gt;
5. Go to pmemd directory and run &amp;quot;./configure linux64_opteron ifort mvapich&amp;quot;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; linux64_opteron: the platform. (If you compile on lonestar, the platform is linux_emt64t)&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ifort: compiler.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; mvapich: parallel implementation. (Actually mvapich2, which is just loaded)&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; You can run ./configure without arguments to see the option list.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
6. You will be asked &amp;quot;Use Intel MKL? (better performance) (answer yes or no):&amp;quot;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; There is some problem with MKL which needs to be fixed. For now, type &amp;quot;no&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
7. Then you are asked &amp;quot;Please enter directory where mvapich mpi files are installed:&amp;quot;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Type: /opt/apps/intel10_1/mvapich2/1.2/ &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
8. Now &amp;quot;Please enter name of directory where Infiniband libraries are installed:&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Since mvapich is the mpi based on infiniband network, the infiniband libraries are under the same directory of mvapich2. &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; So &amp;quot;/opt/apps/intel10_1/mvapich2/1.2/lib/&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
9. A new config.h file will be generated. Open the config.h file, and add &amp;quot;-DAMOEBA&amp;quot; at the end of the line &amp;quot;F90_DEFINES = -DFFTLOADBAL_2PROC&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: x-large;&amp;quot;&amp;gt;Compile&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
1. Go to src directory and do &amp;quot;make clean&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
2. Do &amp;quot;make&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; A new pmemd executible will be generated if the compiling is successful &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
= Compile sander.MPI of AMBER10 &amp;lt;br&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
== Ranger ==&lt;br /&gt;
&lt;br /&gt;
http://archive.ambermd.org/200808/0120.html&lt;br /&gt;
&lt;br /&gt;
==Nova==&lt;br /&gt;
setenv AMBERHOME XXX&lt;br /&gt;
setenv MKL_HOME /opt/intel/mkl/8.1/lib/em64t&lt;br /&gt;
setenv MPI_HOME /opt/mpich2-fc13&lt;br /&gt;
./configure_amber -p4 -static ifort&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amber_tips_pr&amp;diff=2115</id>
		<title>Research:amber tips pr</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amber_tips_pr&amp;diff=2115"/>
		<updated>2025-04-21T23:30:24Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;= Ren&amp;#039;s example for running sander and pmemd  =  == Executables  ==  Oscar&amp;#039;s mod sander in /home/oscar/data2-oscar mod pmemd in /home/oscar/pmemd/src   example mdin and run script files in /home/pren/AMOEBA/solvation/compare/   == A Quick Guide   ==          TO run sander:         xyzpdb ele.xyz         analyze box30 PC &amp;amp;gt; ele.analout         /opt/amber/bin/amoeba_parm -name ele -title &amp;quot;water&amp;quot; &amp;amp;gt; ele.amoeba_parm.out         /opt/amber/bin/sander -i ele.mdin -c ele.in...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Ren&#039;s example for running sander and pmemd  =&lt;br /&gt;
&lt;br /&gt;
== Executables  ==&lt;br /&gt;
&lt;br /&gt;
Oscar&#039;s mod sander in /home/oscar/data2-oscar mod pmemd in /home/oscar/pmemd/src &lt;br /&gt;
&lt;br /&gt;
example mdin and run script files in /home/pren/AMOEBA/solvation/compare/ &lt;br /&gt;
&lt;br /&gt;
== A Quick Guide   ==&lt;br /&gt;
&lt;br /&gt;
        TO run sander:&lt;br /&gt;
        xyzpdb ele.xyz&lt;br /&gt;
        analyze box30 PC &amp;amp;gt; ele.analout&lt;br /&gt;
        /opt/amber/bin/amoeba_parm -name ele -title &amp;quot;water&amp;quot; &amp;amp;gt; ele.amoeba_parm.out&lt;br /&gt;
        /opt/amber/bin/sander -i ele.mdin -c ele.inpcrd -p ele.prmtop -o mdout &amp;amp;amp;&lt;br /&gt;
&lt;br /&gt;
        To run pmemd:&lt;br /&gt;
        /opt/mpich2-fc7/bin/mpdboot -n 1 -f ./host --ncpus=4&lt;br /&gt;
        /opt/mpich2-fc7/bin/mpirun -n 4 /home/pren/pmemd-oscar/src/pmemd -i ele.mdin -c ele.inpcrd -p ele.prmtop -o mdout.nvt.pmemd -r restrt.pmemd 2&amp;amp;gt;/dev/null &amp;amp;amp;&lt;br /&gt;
&lt;br /&gt;
        remmeber octahedron require mods in inpcrd (angle) and prmtop (&amp;quot;2&amp;quot; and angle)&lt;br /&gt;
&lt;br /&gt;
== direcories in /home/pren/AMOEBA/solvation/compare/  ==&lt;br /&gt;
&lt;br /&gt;
cube:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; nvt, cubic water box by&#039;&#039;&#039;sander8&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
cube-pme:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; nvt, &#039;&#039;&#039;pmemd 9&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
sander-nvt:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; truncated octahedron (TO) long nvt run, &#039;&#039;&#039;sander 8 &#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
pmemd-nvt:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; TO, nvt, &#039;&#039;&#039;pmemd 9&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
sander-long-npt:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; truncated octahedron long npt run &#039;&#039;&#039;sander 8&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
pmemd-test-npt:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; short npt, TO, pmemd &lt;br /&gt;
&lt;br /&gt;
pmemd-nvt/ &lt;br /&gt;
&lt;br /&gt;
        check softcore parameters defaults in pmemd (sander has initilized correctly).&lt;br /&gt;
        i.e. without softcore-line lines in mdin, lig_idx is initialized to 0 so it is fine.&lt;br /&gt;
        softcore-print usem pmemd from ~/pmemd-sun&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amber_tips&amp;diff=2114</id>
		<title>Research:amber tips</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amber_tips&amp;diff=2114"/>
		<updated>2025-04-21T23:29:56Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=Renumber xyz/pdb file= If you want to renumber xyz file, e.g. delete a molecule from the old xyz, you can manually remove the lines for these atoms. However, you cannot manually modify the pdb in the same way by deleting the ATOM and CONNECT entries. It will cause trouble running amber later on. (Well, no error msg would be printed out, but it stops right before the first step). The correct way is to convert xyz to pdb with xyzpdb command.   =FEP-vdw= During the FEP, yo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Renumber xyz/pdb file=&lt;br /&gt;
If you want to renumber xyz file, e.g. delete a molecule from the old xyz, you can manually remove the lines for these atoms. However, you cannot manually modify the pdb in the same way by deleting the ATOM and CONNECT entries. It will cause trouble running amber later on. (Well, no error msg would be printed out, but it stops right before the first step). The correct way is to convert xyz to pdb with xyzpdb command. &lt;br /&gt;
&lt;br /&gt;
=FEP-vdw=&lt;br /&gt;
During the FEP, you cannot make any of the vdw parameters zero. Although it might not give you error message at the beginning, it will cause trouble in running sander later on. The error messege is usually &amp;quot;Input conversion error&amp;quot;, and you will see NaN in prmtop file.&lt;br /&gt;
&lt;br /&gt;
=truncated octahedron=&lt;br /&gt;
==From http://structbio.vanderbilt.edu/archives/amber-archive/2005/2439.php==&lt;br /&gt;
&lt;br /&gt;
 Here is the source code where the Volume of the bounding cube is multipled by&lt;br /&gt;
 0.7698004 in tools.c:&lt;br /&gt;
&lt;br /&gt;
        dVolume = dMaxX * dMaxY * dMaxZ;&lt;br /&gt;
        if ( bOct ) (Yes in this case)&lt;br /&gt;
                dVolume *= 0.7698004; /* = sqrt(1 - 3*cost^2 - 2*cost^3),&lt;br /&gt;
                                    where cost = -1/3 = cos(109.471) */&lt;br /&gt;
        VP0(( &amp;quot; Volume: %5.3lf A^3 %s\n&amp;quot;, dVolume, (bOct ? &amp;quot;(oct)&amp;quot; : &amp;quot;&amp;quot;) ));&lt;br /&gt;
                                                                                            &lt;br /&gt;
 http://www.gromacs.org/documentation/reference_3.2/online/editconf.html&lt;br /&gt;
 asserts this constant (.77) as well....&lt;br /&gt;
 I don&#039;t have a quick reference on the trigonometry, unfortunately.&lt;br /&gt;
&lt;br /&gt;
==amber archive: http://dev-archive.ambermd.org/200707/0008.html==&lt;br /&gt;
&amp;gt; In amber, the box information is defined with 6 values;&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt; 51.9046302 51.9046302 51.9046302 109.4712190 109.4712190 109.4712190&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt; and as far as I understood, each of the first 3 values are the half of a&lt;br /&gt;
&amp;gt; cube&#039;s edge length (l/2; assuming we have a cube with edge length of &#039;l&#039;).&lt;br /&gt;
&amp;gt; From these 6 parameters, someone needs to find what &#039;a&#039; is.&lt;br /&gt;
&lt;br /&gt;
No, the actual lengths of the periodic unit cell are there, not 1/2 the&lt;br /&gt;
box length. If orthorhombic (i.e. rectangular with 90 degree angles),&lt;br /&gt;
these are the lengths of each side of the box.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; I do not understand what 109.4712190 is. In your explanation, u define a&lt;br /&gt;
&lt;br /&gt;
This is the angle between the sides; as an example, use ptraj to image&lt;br /&gt;
your truncated octahedron without specifying the &amp;quot;familiar&amp;quot; keyword. It&lt;br /&gt;
will look like a slanted rectangle. The angles are all 109.47... between&lt;br /&gt;
each side.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; parameter &#039;a&#039; which is not clear to me. It is not the edge length of a&lt;br /&gt;
&amp;gt; truncated octahedron defined in the above website.&lt;br /&gt;
&lt;br /&gt;
Do not trust the above mentioned website :-)&lt;br /&gt;
&lt;br /&gt;
You can look through the ptraj or sander or PMEMD code and see:&lt;br /&gt;
&lt;br /&gt;
V = x * y * z * sqrt(1.0 - cos(alpha)**2 - cos(beta)**2 - cos(gamma)**2 +&lt;br /&gt;
        2.0 * cos(alpha) * cos(beta) * cos(gamma))&lt;br /&gt;
&lt;br /&gt;
x, y, z are the box lengths: x = y = z = a in your example. alpha, beta,&lt;br /&gt;
gamma are the box angles which equal 109.47... for a truncated&lt;br /&gt;
octahedron.&lt;br /&gt;
&lt;br /&gt;
An easier shape (since the angles are integral and hence do not suffer&lt;br /&gt;
from finite precision) which we haven&#039;t exploited in AMBER is the rhombic&lt;br /&gt;
dodecahedron (12-sided, equal sides) which has x=y=z and alpha=60,&lt;br /&gt;
beta=90, gamma=60). This is the shape that is closest to a sphere, yet&lt;br /&gt;
space filling.&lt;br /&gt;
&lt;br /&gt;
We discuss this in Current Protocols in Nucleic Acid Chemistry (articles&lt;br /&gt;
by Cheatham, Kollman and Brooks) from ~2000-2003. See the attached PDF&lt;br /&gt;
for a summary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==From: Thomas Cheatham &amp;lt;tec3.utah.edu&amp;gt;==&lt;br /&gt;
Date: Thu Jul 26 2007 - 12:26:55 PDT&lt;br /&gt;
&lt;br /&gt;
&amp;gt; octahedron&amp;quot; can be defined in multiple ways....&amp;quot;. Do u mean that in a&lt;br /&gt;
&amp;gt; different space where you have a different type of metric, the &#039;truncated&lt;br /&gt;
&amp;gt; octahedron&#039; can be defined different? Or do u mean that the volume of a&lt;br /&gt;
&amp;gt; &#039;truncated octahedron&#039; can be defined in multiple ways?&lt;br /&gt;
&lt;br /&gt;
What I mean is that it can be implemented in different ways and hence how&lt;br /&gt;
to determine its volume will differ. In Allen &amp;amp; Tildesley, there is an&lt;br /&gt;
algorithm that implements a truncated octahedral geometry. This is not&lt;br /&gt;
equivalent to the triclinic/AMBER definition. LEaP used to be able to&lt;br /&gt;
produce this &amp;quot;other&amp;quot; kind of box.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; &amp;gt; V = x * y * z * sqrt(1.0 - cos(alpha)**2 - cos(beta)**2 - cos(gamma)**2 +&lt;br /&gt;
&amp;gt; &amp;gt; 2.0 * cos(alpha) * cos(beta) * cos(gamma))&lt;br /&gt;
&amp;gt; &amp;gt;&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt; Another question is, why to use triclinic cell? Is it hard to explicitly&lt;br /&gt;
&amp;gt; use truncated octahedrals in the simulations? By combining triclinic&lt;br /&gt;
&amp;gt; cells, someone can create a continous system; but this must be true for&lt;br /&gt;
&amp;gt; combining truncated octahedrons, too.&lt;br /&gt;
&lt;br /&gt;
The triclinic is a general property that fits well within the PME&lt;br /&gt;
framework. Those other boxes in that previous table map to the triclinic.&lt;br /&gt;
The standard Allen &amp;amp; Tildesley could map, but it would require a different&lt;br /&gt;
orientation of the box and different definition of the &amp;quot;length of a side&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Unfortunately, our library does not have this journal. Can u give me the&lt;br /&gt;
&amp;gt; full references of these papers published in this journal? I will ask from&lt;br /&gt;
&amp;gt; the library to get it for me, but they need the full reference&lt;br /&gt;
&amp;gt; information. Thanks again.&lt;br /&gt;
&lt;br /&gt;
What I would worry about understanding is the box_to_recip() code in&lt;br /&gt;
PME/AMBER, PMEMD, sander, or ptraj. This will allow you to better&lt;br /&gt;
understand the box. If the angle is 109.47 it IS a truncated octahedron /&lt;br /&gt;
it is also a particular triclinic shape.&lt;br /&gt;
&lt;br /&gt;
--tom&lt;br /&gt;
&lt;br /&gt;
p.s. you may have Current Protocols in the lab there...&lt;br /&gt;
&lt;br /&gt;
Current Protocols in Nucleic Acid Chemistry:&lt;br /&gt;
&lt;br /&gt;
(20) T. E. Cheatham, III, B. R. Brooks &amp;amp; P. A. Kollman. &amp;quot;Molecular&lt;br /&gt;
modeling of nucleic acid structure&amp;quot; in Current Protocols in Nucleic Acid&lt;br /&gt;
Chemistry. (Wiley: New York) 7.5.1-7.5.13 (1999).&lt;br /&gt;
&lt;br /&gt;
(25) T. E. Cheatham, III, B. R. Brooks &amp;amp; P. A. Kollman. &amp;quot;Molecular&lt;br /&gt;
modeling of nucleic acid structure: Energy and sampling&amp;quot; in Current&lt;br /&gt;
Protocols in Nucleic Acid Chemistry. (Wiley: New York) 7.8.1-7.8.21&lt;br /&gt;
(2001).&lt;br /&gt;
(26) T. E. Cheatham, III, B. R. Brooks &amp;amp; P. A. Kollman. &amp;quot;Molecular&lt;br /&gt;
modeling of nucleic acid structure: Electrostatics and solvation&amp;quot; in&lt;br /&gt;
Current Protocols in Nucleic Acid Chemistry. (Wiley: New York)&lt;br /&gt;
7.9.1-7.9.22 (2001).&lt;br /&gt;
(27) T. E. Cheatham, III, B. R. Brooks &amp;amp; P. A. Kollman. &amp;quot;Molecular&lt;br /&gt;
modeling of nucleic acid structure: Setup and analysis&amp;quot; in Current&lt;br /&gt;
Protocols in Nucleic Acid Chemistry. (Wiley: New York) 7.10.1-7.10.18&lt;br /&gt;
(2001).&lt;br /&gt;
Received on Sun Jul 29 06:07:26 2007&lt;br /&gt;
&lt;br /&gt;
    * This message: [ Message body ]&lt;br /&gt;
    * Next message: Ilyas Yildirim: &amp;quot;Re: amber-developers: Truncated Octahedron box volume (fwd)&amp;quot;&lt;br /&gt;
    * Previous message: Ilyas Yildirim: &amp;quot;Re: amber-developers: Truncated Octahedron box volume (fwd)&amp;quot;&lt;br /&gt;
    * In reply to: Ilyas Yildirim: &amp;quot;Re: amber-developers: Truncated Octahedron box volume (fwd)&amp;quot;&lt;br /&gt;
    * Next in thread: Ilyas Yildirim: &amp;quot;Re: amber-developers: Truncated Octahedron box volume (fwd)&amp;quot;&lt;br /&gt;
    * Reply: Ilyas Yildirim: &amp;quot;Re: amber-developers: Truncated Octahedron box volume (fwd)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    * Contemporary messages sorted: [ By Date ] [ By Thread ] [ By Subject ] [ By Author ] [ By messages with attachments ]&lt;br /&gt;
&lt;br /&gt;
Google&lt;br /&gt;
Custom Search&lt;br /&gt;
-- tec3&lt;br /&gt;
&lt;br /&gt;
=Sander troubleshooter=&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;mismatch in line&amp;quot;  ==&lt;br /&gt;
&lt;br /&gt;
When you see this error in your amoeba_parm.out, that&#039;s sign your atom type for the ligand is not correct. &lt;br /&gt;
&lt;br /&gt;
Could be due to the grouping after average. &amp;lt;br&amp;gt;Some atoms should have the same type somehow still carry the old type which does not exist in parameter file&lt;br /&gt;
&lt;br /&gt;
Another possible reason is that polarizability and charge are both 0 at the same time. Make charge 0.000001 in tinker prm would help (otherwise tinker delete this atom from the array). It would affect the answer because analyze will only print out 0.00000 with 1 trunctaed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Careful with H&#039;s vdw==&lt;br /&gt;
&lt;br /&gt;
  You always need the third value for vdw parameter as long as it&#039;s defined as H. &lt;br /&gt;
  Even if you are at the last step of turning H off.&lt;br /&gt;
  Or in Amber, it will die the first step with NaN temperature&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:GK_FEP_BAR&amp;diff=2113</id>
		<title>Research:GK FEP BAR</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:GK_FEP_BAR&amp;diff=2113"/>
		<updated>2025-04-21T23:29:12Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;= Simulation process and the parameters  =  The execuable for GK/Bar simulaton is located at: /users/jzhen/tinker5.1-gk-param/source4/  With RESPA multi-step implement (from Tinker6): /users/jzhen/tinker5.1-gk-param/source4-respa/  Relative binding free energy calculation: two states  bound state: protein-ligand in GK solvent  free state: ligand only in GK solvent  In each state, we scale ele first, and then vdW. A example of prameter and key file can be seen at: /users/...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Simulation process and the parameters  =&lt;br /&gt;
&lt;br /&gt;
The execuable for GK/Bar simulaton is located at: /users/jzhen/tinker5.1-gk-param/source4/&lt;br /&gt;
&lt;br /&gt;
With RESPA multi-step implement (from Tinker6): /users/jzhen/tinker5.1-gk-param/source4-respa/&lt;br /&gt;
&lt;br /&gt;
Relative binding free energy calculation: two states&lt;br /&gt;
&lt;br /&gt;
bound state: protein-ligand in GK solvent&lt;br /&gt;
&lt;br /&gt;
free state: ligand only in GK solvent&lt;br /&gt;
&lt;br /&gt;
In each state, we scale ele first, and then vdW. A example of prameter and key file can be seen at: /users/jzhen/OSRW_GK/GK-bar/lig-pro/lig2-pro/. The ele is scaled from 1.0 to 0 by ele6 --&amp;amp;gt; ele5 --&amp;amp;gt;....ele2 --&amp;amp;gt; ele1 --&amp;amp;gt; vdw6, vdW&amp;amp;nbsp;is scaled from 1.0 to 0 (the well depthe psilon&amp;amp;nbsp;is scaled to 0.0 and the radious&amp;amp;nbsp;is scaled to 0.0001). For each windows, the simulation time is 150ps, timestep is 1.5fs with rattle and 3fs with respa/rattle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solvation energy comparison  =&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; width=&amp;quot;70%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Ligand &lt;br /&gt;
| Published Label &lt;br /&gt;
| PB (published result) &lt;br /&gt;
| &lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(255,102,0)&amp;quot;&amp;gt;PB-polar &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(255,102,0)&amp;quot;&amp;gt;(published) &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| GK (min structure) &lt;br /&gt;
| PB (min structure) &lt;br /&gt;
| PB (gas-min struct, tinker10-08) &lt;br /&gt;
| &amp;lt;span style=&amp;quot;color: rgb(255,102,0)&amp;quot;&amp;gt;PB (gas-min struct, tinker10-08, polar) &amp;lt;/span&amp;gt;&lt;br /&gt;
| &amp;lt;span style=&amp;quot;color: rgb(255,0,0)&amp;quot;&amp;gt;GK-FEP &amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Lig 1&amp;lt;span style=&amp;quot;white-space: pre&amp;quot; class=&amp;quot;Apple-tab-span&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
| A &lt;br /&gt;
| -54.2 &lt;br /&gt;
| -56.8 &lt;br /&gt;
| -61.0707 &lt;br /&gt;
| -53.4881 &lt;br /&gt;
| -54.9396 &lt;br /&gt;
| -56.0900 &lt;br /&gt;
| -60.7210&lt;br /&gt;
|-&lt;br /&gt;
| Lig 2 &lt;br /&gt;
| B &lt;br /&gt;
| -55.6 &lt;br /&gt;
| -58.1 &lt;br /&gt;
| -63.0336 &lt;br /&gt;
| -54.8510 &lt;br /&gt;
| -57.2422 &lt;br /&gt;
| -57.2155 &lt;br /&gt;
| -62.9246&lt;br /&gt;
|-&lt;br /&gt;
| Lig 3 &lt;br /&gt;
| C &lt;br /&gt;
| -58.3 &lt;br /&gt;
| -60.9 &lt;br /&gt;
| -66.6569 &lt;br /&gt;
| -58.7613 &lt;br /&gt;
| -60.1055 &lt;br /&gt;
| -59.9958 &lt;br /&gt;
| -66.5370&lt;br /&gt;
|-&lt;br /&gt;
| Lig 6 &lt;br /&gt;
| D &lt;br /&gt;
| -53.4 &lt;br /&gt;
| -56.2 &lt;br /&gt;
| -59.1056 &lt;br /&gt;
| -53.1730 &lt;br /&gt;
| -54.3039 &lt;br /&gt;
| -55.2043 &lt;br /&gt;
| -58.6448&lt;br /&gt;
|-&lt;br /&gt;
| Lig 4 &lt;br /&gt;
| E &lt;br /&gt;
| -57.6 &lt;br /&gt;
| -60.1 &lt;br /&gt;
| -55.5956 &lt;br /&gt;
| -56.4508 &lt;br /&gt;
| -57.9430 &lt;br /&gt;
| -59.6392 &lt;br /&gt;
| -55.4094&lt;br /&gt;
|-&lt;br /&gt;
| Lig Yue &lt;br /&gt;
| &lt;br /&gt;
| -- &lt;br /&gt;
| &lt;br /&gt;
| -62.5264 &lt;br /&gt;
| -57.8351 &lt;br /&gt;
| -58.6675 &lt;br /&gt;
| -59.0935 &lt;br /&gt;
| -60.4647&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
*PB (published) vs GK&lt;br /&gt;
&lt;br /&gt;
[[Image:Exp-vs-gk.png|450px]] &lt;br /&gt;
&lt;br /&gt;
= Directories  =&lt;br /&gt;
&lt;br /&gt;
*/home/wuch/work/research/trypsin-ligand &lt;br /&gt;
**lig1,lig2,lig3,lig4,lig6,lig_yue&lt;br /&gt;
&lt;br /&gt;
= Questions =&lt;br /&gt;
&lt;br /&gt;
*Why are some torsion parameters different between the two? &lt;br /&gt;
**/home/oscar/trypsin/lig2/lig-pro/vdw1/vdw1.prm &lt;br /&gt;
**/home/oscar/trypsin/lig2/lig-pro/amoeba.prm&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amoeba_dev_protocol&amp;diff=2112</id>
		<title>Research:amoeba dev protocol</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amoeba_dev_protocol&amp;diff=2112"/>
		<updated>2025-04-21T23:28:45Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot; *optimization performed at level of MP2/6-31G*; DMA  MP2/6-311G**; ESP  MP2/Aug-cc-pvtz   *gdmain file format:  Title MoleculeMP2sp gdmain   File ./311gss-2d2p/c5_311gss.fchk  density MP2  Angstrom  AU  Multipoles  SWITCH 0  Limit 2  Punch ./311gss-2d2p/c5_311gss.punch  Radius H 0.65   Start   Finish     *For Alanine Dipeptide, 7 gas phase conformers are used to fit the multipoles.   c5, c7a, c7e, alpha_l, alpha_p, beta2, alpha_r&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; *optimization performed at level of MP2/6-31G*; DMA  MP2/6-311G**; ESP  MP2/Aug-cc-pvtz&lt;br /&gt;
&lt;br /&gt;
 *gdmain file format:&lt;br /&gt;
 Title MoleculeMP2sp gdmain&lt;br /&gt;
&lt;br /&gt;
 File ./311gss-2d2p/c5_311gss.fchk  density MP2&lt;br /&gt;
 Angstrom&lt;br /&gt;
 AU&lt;br /&gt;
 Multipoles&lt;br /&gt;
 SWITCH 0&lt;br /&gt;
 Limit 2&lt;br /&gt;
 Punch ./311gss-2d2p/c5_311gss.punch&lt;br /&gt;
 Radius H 0.65&lt;br /&gt;
&lt;br /&gt;
 Start&lt;br /&gt;
&lt;br /&gt;
 Finish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 *For Alanine Dipeptide, 7 gas phase conformers are used to fit the multipoles. &lt;br /&gt;
 c5, c7a, c7e, alpha_l, alpha_p, beta2, alpha_r&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2111</id>
		<title>Research:AMOEBA</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2111"/>
		<updated>2025-04-21T23:28:27Z</updated>

		<summary type="html">&lt;p&gt;Eew947: /* AMOEBA force field */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is next===&lt;br /&gt;
*[[Research:Discussion|Discussion]]&lt;br /&gt;
===AMOEBA force field===&lt;br /&gt;
*[[Research:Typer|Typer - Automated ligand parameterization]]&lt;br /&gt;
**[[Logs:parameterization|Development Logs]]&lt;br /&gt;
*[[Research:amoeba_force_field|AMOEBA Force Field]]&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research: AMOEBA Ligand Par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
**[[Research:Potential_Tutorial|Tutorial to use the potential utility]]&lt;br /&gt;
**[[Research: AMOEBA Reference Frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
**[[Research:Amoeba par tut|A Tutorial on Amoeba Parameterization Procedure (Old)]]&lt;br /&gt;
*[[Research:AMOEBA HFE|A Tutorial on automated calculations for hydration free energy of a small molecule]]&lt;br /&gt;
*[[Research:AMOEBA Amber Free|A Tutorial on amoeba free energy simulation with amber]] &lt;br /&gt;
*[[Research:amber_tips|Tips of running simulation with AMBER]]&lt;br /&gt;
*[[Research:amber_tips_pr|Examples of running simulation with sander and pmemd]]&lt;br /&gt;
*[[Research:pmemd_tacc|How to install and run PMEMD on ranger]]&lt;br /&gt;
*[[Research:remd_tutorial|REMD and structural analysis tutorials]]&lt;br /&gt;
&lt;br /&gt;
===AMBER MODIFICATION===&lt;br /&gt;
*[[Research:compile_amber|Compile amber instruction]]&lt;br /&gt;
*[[Research:build_instructions_sander|New build instructions for Sander]]&lt;br /&gt;
*[[Research:condor_cluster|Running jobs on Condor cluster]]&lt;br /&gt;
*[[Research:amber_modification|AMBER software modification]]&lt;br /&gt;
*[[Research:amber_prog_tips|AMBER AMOEBA programing and usage tips]]&lt;br /&gt;
&lt;br /&gt;
===Generalized-Kirkwood Implicit Solvation===&lt;br /&gt;
*[[Research:GK_FEP_BAR|GK-FEP/BAR]]&lt;br /&gt;
&lt;br /&gt;
===AMOEBA Protein Force Field Refinement===&lt;br /&gt;
*[[Research:amoeba_dev_protocol|Current Protocol]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA_HFE&amp;diff=2110</id>
		<title>Research:AMOEBA HFE</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA_HFE&amp;diff=2110"/>
		<updated>2025-04-21T23:27:46Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;= The script does the automation -- hfe_setup.pl=    You can find the script here /work/oscar/bin  = Files you need =  (1) xyz file of the ligand  (2) amoeba parameter file  (3) xyz file of water box  (4) AMBER input file template  =Procedures= == Set-ups ==  (1) After you run hfe_setup.pl, a prompt pops up  &amp;quot;Enter the xyz file name of the ligand&amp;quot;  Make sure you have that file in your current directory and type in the file name.  The script will figure out how many atoms...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The script does the automation -- hfe_setup.pl=&lt;br /&gt;
   You can find the script here /work/oscar/bin&lt;br /&gt;
&lt;br /&gt;
= Files you need =&lt;br /&gt;
&lt;br /&gt;
(1) xyz file of the ligand&lt;br /&gt;
&lt;br /&gt;
(2) amoeba parameter file&lt;br /&gt;
&lt;br /&gt;
(3) xyz file of water box&lt;br /&gt;
&lt;br /&gt;
(4) AMBER input file template&lt;br /&gt;
&lt;br /&gt;
=Procedures=&lt;br /&gt;
== Set-ups ==&lt;br /&gt;
&lt;br /&gt;
(1) After you run hfe_setup.pl, a prompt pops up&lt;br /&gt;
 &amp;quot;Enter the xyz file name of the ligand&amp;quot;&lt;br /&gt;
 Make sure you have that file in your current directory and type in the file name.&lt;br /&gt;
 The script will figure out how many atoms are there in the ligand and store the range in a &amp;quot;soft_atm.txt&amp;quot; file &lt;br /&gt;
 for softcore vdw simulations.&lt;br /&gt;
&lt;br /&gt;
(2) You will then be asked for the parameter file.&lt;br /&gt;
&lt;br /&gt;
(3) Now enter the file name of a waterbox (.xyz)&lt;br /&gt;
 This is the box you will soak the ligand in. &lt;br /&gt;
&lt;br /&gt;
(4) &amp;quot;Input the size of the box&amp;quot;&lt;br /&gt;
 It assumes it is a cubic box, just input the side length in Angstrom.&lt;br /&gt;
 After this step, a key file will be generated. Also the ligand will be soaked in the waterbox. A new file will be generated.&lt;br /&gt;
&lt;br /&gt;
(5) Electrostatic scaling&lt;br /&gt;
  It will ask &amp;quot;Would you like to use the default electrostatic scaling scheme&amp;quot;&lt;br /&gt;
  You can either follow the default scheme which is &amp;quot;1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0&amp;quot; by typing &amp;quot;Y&amp;quot; (stands for yes)&lt;br /&gt;
  or type in the steps you want for the ele scaling after you type &amp;quot;N&amp;quot;&lt;br /&gt;
  The corresponding scaled parameter files will be created.&lt;br /&gt;
&lt;br /&gt;
(6) Van der Waals scaling&lt;br /&gt;
  &amp;quot;Would you like to use the default Van der Waals scaling scheme&amp;quot;&lt;br /&gt;
  The default is &amp;quot;0.9 0.8 0.75 0.7 0.65 0.6 0.5 0.4 0.2 0  [Y/N]&amp;quot;. If you don&#039;t like it you can customize the scheme by typing the series of scaling factors&lt;br /&gt;
  Similarly, the parameter files will be created.&lt;br /&gt;
&lt;br /&gt;
(7) &amp;quot;Input the mdin file template&amp;quot;&lt;br /&gt;
  This will generate a mdin file for equlibration simulation first and later on the mdin for each step.&lt;br /&gt;
    &lt;br /&gt;
  After this step, all the directories will be created along with the all the files that are needed for amber simulation. &lt;br /&gt;
  A directory for intramolecular simulation will also be created.&lt;br /&gt;
&lt;br /&gt;
== Simulations ==&lt;br /&gt;
  The script will launch the equlibration run first after the preparation of all the files. THe time it takes depends on the size of the system.&lt;br /&gt;
  Wait until it&#039;s done and go to each directory and you will find run.pl file which is the command for simulation.&lt;br /&gt;
  Simply do &amp;quot;./run.pl&amp;quot; will fire up your sander simulation.&lt;br /&gt;
  &lt;br /&gt;
== Free energy calculations ==&lt;br /&gt;
  Every directory also contains a &amp;quot;ana&amp;quot; file which will analyze the free energy from the simulation trajectory.&lt;br /&gt;
  After all the simulations are finished, run all the &amp;quot;ana&amp;quot; files, this will generate lots of .e energy files&lt;br /&gt;
  Once the free energy analysis is over, run &amp;quot;bar&amp;quot;. This will yield the free energies between steps.&lt;br /&gt;
  &lt;br /&gt;
== Get the result ==&lt;br /&gt;
  This last step is manual. Open up all the files that &amp;quot;bar&amp;quot; creates and copy paste the free energies for steps into a spreadsheet &lt;br /&gt;
  and get the solvation free energy for your ligand&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Potential_Tutorial&amp;diff=2109</id>
		<title>Research:Potential Tutorial</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Potential_Tutorial&amp;diff=2109"/>
		<updated>2025-04-21T23:26:54Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=Introduction/Motivation= * GDMA has issues/difficulties with SP calculations of higher basis sets.  =What you need= # FCHK file # GDMA output file # Example of input files of para-cresol is available at /home/wuch/work/research/ligand_param/sample/pot/tutorial  Image:Cresol.png  =Process=  *Follow AMOEBA Ligand Param Instructions to get output from GDMA  *Generate multipoles in Tinker format (gdout.xyz and gdout...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction/Motivation=&lt;br /&gt;
* GDMA has issues/difficulties with SP calculations of higher basis sets.&lt;br /&gt;
&lt;br /&gt;
=What you need=&lt;br /&gt;
# FCHK file&lt;br /&gt;
# GDMA output file&lt;br /&gt;
# Example of input files of para-cresol is available at /home/wuch/work/research/ligand_param/sample/pot/tutorial&lt;br /&gt;
&lt;br /&gt;
[[Image:Cresol.png]]&lt;br /&gt;
&lt;br /&gt;
=Process=&lt;br /&gt;
&lt;br /&gt;
*[[Research:Amoeba_ligand_par#Multipoles_calculation.|Follow AMOEBA Ligand Param Instructions to get output from GDMA]]&lt;br /&gt;
&lt;br /&gt;
*Generate multipoles in Tinker format (gdout.xyz and gdout.key)&lt;br /&gt;
 /home/pren/tinker5-2-2009/source/poledit.x 1 gdout&lt;br /&gt;
&lt;br /&gt;
*Poledit can be used to extract intramolecular polarization.&lt;br /&gt;
**Needed to average multipoles of molecules with different conformations.&lt;br /&gt;
&lt;br /&gt;
*Answer the following prompts&lt;br /&gt;
 Enter Altered Local Frame Definition [&amp;lt;CR&amp;gt;=Exit] : 12 13 14&lt;br /&gt;
 Enter Altered Local Frame Definition [&amp;lt;CR&amp;gt;=Exit] :&lt;br /&gt;
 Enter Atom Number &amp;amp; Polarizability Values [&amp;lt;CR&amp;gt;=Exit] :&lt;br /&gt;
 Enter a Bond between Polarization Groups [&amp;lt;CR&amp;gt;=Exit] :&lt;br /&gt;
 Average the Multipoles of Equivalent Hydrogen Atoms [N] :  Y&lt;br /&gt;
 Remove Y-Component Multipoles at Achiral Sites [N] :  Y &lt;br /&gt;
&lt;br /&gt;
*Better yet, create a file (poledit.input) with the responses (and appropriate carriage returns)&lt;br /&gt;
 /home/pren/tinker5-2009-6/source/poledit.x 1 gdout &amp;lt; poledit.input&lt;br /&gt;
&lt;br /&gt;
*Average multipoles of the same type&lt;br /&gt;
 /home/wuch/work/research/ligand_param/dev/avgmpoles.pl gdout.key \&lt;br /&gt;
   gdout.xyz types.txt 1 16 21 gdout.key_2 gdout.xyz_2&lt;br /&gt;
&lt;br /&gt;
*Prepend this to the newest key file (gdout.key_2)&lt;br /&gt;
&lt;br /&gt;
 parameters none&lt;br /&gt;
 bondterm none&lt;br /&gt;
 angleterm none&lt;br /&gt;
 torsionterm none&lt;br /&gt;
 vdwterm none&lt;br /&gt;
 fix-monopole&lt;br /&gt;
 potential-offset 1.0 #???&lt;br /&gt;
&lt;br /&gt;
*Create grid points for molecule (gdout.grid and gdout.pot)&lt;br /&gt;
&lt;br /&gt;
 /home/pren/tinker5-2009-6/source/potential.x 2 gdout.xyz_2 Y&lt;br /&gt;
&lt;br /&gt;
*Compute electrostatic potential from Total MP2 Density (gdout.cube)&lt;br /&gt;
&lt;br /&gt;
 /opt/g03/bin/cubegen 0 potential=MP2 cresolxyzsp.fchk gdout.cube -5 h &amp;lt; gdout.grid&lt;br /&gt;
&lt;br /&gt;
*Create potential file for grid points readable by potential.x (gdout_cube.qmpot)&lt;br /&gt;
&lt;br /&gt;
 /home/pren/CHUANJIE/potcon/readcube/readcube gdout.cube&lt;br /&gt;
&lt;br /&gt;
*Fit Electrostatic Parameters to Target Grid (gdout.key_3)&lt;br /&gt;
&lt;br /&gt;
 /home/pren/tinker5-2009-6/source/potential.x 5 gdout.xyz_2 gdout_cube.qmpot&lt;br /&gt;
&lt;br /&gt;
*Append fitted multipoles to original parameter file&lt;br /&gt;
 cat gdout.key_2 gdout.key_3 &amp;gt; gdout.key_4&lt;br /&gt;
&lt;br /&gt;
*Modify class type in parameter file accordingly&lt;br /&gt;
&lt;br /&gt;
=Keywords for potential.x=&lt;br /&gt;
*POTENTIAL-ATOMS: a list of the atoms whose potential grid points will be included in the potential fitting&lt;br /&gt;
**use the usual TINKER mechanism where a negative number is the start of a range through the following atom number&lt;br /&gt;
**For example &amp;quot;POTENTIAL-ATOMS -1 5 7 9&amp;quot; == 1-5, 7, 9&lt;br /&gt;
*POTENTIAL-FIT: a list of atoms whose electrostatic parameter values will be allowed to vary in the potential fitting&lt;br /&gt;
**a negative number is the start of a range through the following atom number &lt;br /&gt;
*FIX-MONOPOLE: Do not fit for monopole (charges)&lt;br /&gt;
*FIX-DIPOLE: Do not fit for dipoles&lt;br /&gt;
*FIX-QUADRUPOLE: Do not fit for quadrupoles&lt;br /&gt;
*TARGET-DIPOLE: Fit for dipoles&lt;br /&gt;
*TARGET-QUADRUPOLE: Fit for quadrupoles&lt;br /&gt;
*POTENTIAL-SHELLS: &lt;br /&gt;
*POTENTIAL-SPACING: &lt;br /&gt;
*POTENTIAL-OFFSET:&lt;br /&gt;
&lt;br /&gt;
=2011 Dec example used for AMOEBAPRO 2.0=&lt;br /&gt;
&lt;br /&gt;
 parameters ../../../parm/amoebapro5his2010.prm&lt;br /&gt;
 bondterm none&lt;br /&gt;
 angleterm none&lt;br /&gt;
 torsionterm none&lt;br /&gt;
 polar-eps 0.00001&lt;br /&gt;
 fix-monopole &lt;br /&gt;
 POTENTIAL-OFFSET 1.0&lt;br /&gt;
 POTENTIAL-SHELLS 5&lt;br /&gt;
 POTENTIAL-SPACING 0.35&lt;br /&gt;
 POTENTIAL-FIT -13 30&lt;br /&gt;
&lt;br /&gt;
From /home/yues/amoebapro/multipole/TRP&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2108</id>
		<title>Research:AMOEBA</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2108"/>
		<updated>2025-04-21T23:26:35Z</updated>

		<summary type="html">&lt;p&gt;Eew947: /* AMOEBA force field */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is next===&lt;br /&gt;
*[[Research:Discussion|Discussion]]&lt;br /&gt;
===AMOEBA force field===&lt;br /&gt;
*[[Research:Typer|Typer - Automated ligand parameterization]]&lt;br /&gt;
**[[Logs:parameterization|Development Logs]]&lt;br /&gt;
*[[Research:amoeba_force_field|AMOEBA Force Field]]&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research: AMOEBA Ligand Par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
**[[Research:Potential_Tutorial|Tutorial to use the potential utility]]&lt;br /&gt;
**[[Research: AMOEBA Reference Frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
**[[Research:Amoeba par tut|A Tutorial on Amoeba Parameterization Procedure (Old)]]&lt;br /&gt;
*[[Reserach:amoeba_hfe|A Tutorial on automated calculations for hydration free energy of a small molecule]]&lt;br /&gt;
*[[Research:AMOEBA Amber Free|A Tutorial on amoeba free energy simulation with amber]] &lt;br /&gt;
*[[Research:amber_tips|Tips of running simulation with AMBER]]&lt;br /&gt;
*[[Research:amber_tips_pr|Examples of running simulation with sander and pmemd]]&lt;br /&gt;
*[[Research:pmemd_tacc|How to install and run PMEMD on ranger]]&lt;br /&gt;
*[[Research:remd_tutorial|REMD and structural analysis tutorials]]&lt;br /&gt;
&lt;br /&gt;
===AMBER MODIFICATION===&lt;br /&gt;
*[[Research:compile_amber|Compile amber instruction]]&lt;br /&gt;
*[[Research:build_instructions_sander|New build instructions for Sander]]&lt;br /&gt;
*[[Research:condor_cluster|Running jobs on Condor cluster]]&lt;br /&gt;
*[[Research:amber_modification|AMBER software modification]]&lt;br /&gt;
*[[Research:amber_prog_tips|AMBER AMOEBA programing and usage tips]]&lt;br /&gt;
&lt;br /&gt;
===Generalized-Kirkwood Implicit Solvation===&lt;br /&gt;
*[[Research:GK_FEP_BAR|GK-FEP/BAR]]&lt;br /&gt;
&lt;br /&gt;
===AMOEBA Protein Force Field Refinement===&lt;br /&gt;
*[[Research:amoeba_dev_protocol|Current Protocol]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2107</id>
		<title>Research:AMOEBA</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2107"/>
		<updated>2025-04-21T23:25:47Z</updated>

		<summary type="html">&lt;p&gt;Eew947: /* What is next */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is next===&lt;br /&gt;
*[[Research:Discussion|Discussion]]&lt;br /&gt;
===AMOEBA force field===&lt;br /&gt;
*[[Research:Typer|Typer - Automated ligand parameterization]]&lt;br /&gt;
**[[Logs:parameterization|Development Logs]]&lt;br /&gt;
*[[Research:amoeba_force_field|AMOEBA Force Field]]&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research:amoeba_ligand_par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
**[[Research:Potential_Tutorial|Tutorial to use the potential utility]]&lt;br /&gt;
**[[Research: AMOEBA Reference Frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
**[[Research:Amoeba par tut|A Tutorial on Amoeba Parameterization Procedure (Old)]]&lt;br /&gt;
*[[Reserach:amoeba_hfe|A Tutorial on automated calculations for hydration free energy of a small molecule]]&lt;br /&gt;
*[[Research:AMOEBA Amber Free|A Tutorial on amoeba free energy simulation with amber]] &lt;br /&gt;
*[[Research:amber_tips|Tips of running simulation with AMBER]]&lt;br /&gt;
*[[Research:amber_tips_pr|Examples of running simulation with sander and pmemd]]&lt;br /&gt;
*[[Research:pmemd_tacc|How to install and run PMEMD on ranger]]&lt;br /&gt;
*[[Research:remd_tutorial|REMD and structural analysis tutorials]]&lt;br /&gt;
&lt;br /&gt;
===AMBER MODIFICATION===&lt;br /&gt;
*[[Research:compile_amber|Compile amber instruction]]&lt;br /&gt;
*[[Research:build_instructions_sander|New build instructions for Sander]]&lt;br /&gt;
*[[Research:condor_cluster|Running jobs on Condor cluster]]&lt;br /&gt;
*[[Research:amber_modification|AMBER software modification]]&lt;br /&gt;
*[[Research:amber_prog_tips|AMBER AMOEBA programing and usage tips]]&lt;br /&gt;
&lt;br /&gt;
===Generalized-Kirkwood Implicit Solvation===&lt;br /&gt;
*[[Research:GK_FEP_BAR|GK-FEP/BAR]]&lt;br /&gt;
&lt;br /&gt;
===AMOEBA Protein Force Field Refinement===&lt;br /&gt;
*[[Research:amoeba_dev_protocol|Current Protocol]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Discussion&amp;diff=2106</id>
		<title>Research:Discussion</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Discussion&amp;diff=2106"/>
		<updated>2025-04-21T23:22:22Z</updated>

		<summary type="html">&lt;p&gt;Eew947: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=What we have learned=&lt;br /&gt;
*	AMOEBA water has low diffusion constants. All the small molecules seem to have lower diffusion (we have a chart in small molecule manuscript). Although we have a second water model that has better diffusion AND better temperature dependence of density and diffusion(Figure 2 &amp;amp;13 in water-temperature paper). It would be interesting to learn what Teresa get from AMOEBA-v. We should encourage her to try.&lt;br /&gt;
*	I remember you have calculated water surface tension but I don’t remember what was the result. Higher surface tension will stabilize the protein more? Would AMOEBA-v give a different surface tension.&lt;br /&gt;
*	Protein unfold. Is this real? Is the RMSD within normal fluctuation (that correlates with local temperature factor)? If this is real, it means protein likes water too much. Dispersion or electrostatic? &lt;br /&gt;
 We need to run more proteins!&lt;br /&gt;
*        Small molecule solvation free energy seems good (Vijay?). Meaning small molecule and water model are consistent.&lt;br /&gt;
*	Our trypsin-ligand binding free energy seems good. Unless there is fortuitous error cancellation, this indicates protein model is good. The ligand DMA used new gdma program. We should have relative binding energies of 2~3 more ligands in the next couple of months. What if we use new DMA on protein?&lt;br /&gt;
*       ion-water works from gas to condensed phase. Solvation free energy seems good. All free energies are good so far.&lt;br /&gt;
&lt;br /&gt;
=What we can possibly do to “improve” the model=&lt;br /&gt;
*	Mostly the QM part. New DMA with high level basis set and new gdma (will be good to be consistent with nucleic acids now)&lt;br /&gt;
*	Backbone and side chain torsion. With really high basis set that is free of intramolecular BSSE. The tetrapeptide energy of Martin head-gordon with complete basis set does indicate LMP2 is over correcting BSSE for compact conformation, or over-favoring the extended structure.&lt;br /&gt;
*	Vdw? Unlikely&lt;br /&gt;
*	Valence terms? Pretty standard, except the bell torsion. I do remember the flexible bell torsion cause tetrapeptide to “slide” away from QM minima so I have to tune it down by adding regular torsions on top of it. Is David case seeing problem with amide groups?&lt;br /&gt;
&lt;br /&gt;
=What we should do next (immediately)?=&lt;br /&gt;
*	&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Publish the model now, or never. We could get killed before we have a chance to respond to these attacks.&amp;lt;/span&amp;gt;&lt;br /&gt;
*	Run long simulations of a few proteins using TINKER, sander, PMEMD. I can help out if you need more CPUs. Based on your description of Case results, we should aim for 5-10 ns.&lt;br /&gt;
**	Crambin&lt;br /&gt;
**	Ubiquitin&lt;br /&gt;
**	SUMO-2&lt;br /&gt;
**	…&lt;br /&gt;
*	I will continue with ligand binding energy calculations, with more ligands and different proteins. It would be nice to have automated parameterization. My student is sometimes careless and I have to watch every step of parameterization.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Discussion&amp;diff=2105</id>
		<title>Research:Discussion</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Discussion&amp;diff=2105"/>
		<updated>2025-04-21T23:21:32Z</updated>

		<summary type="html">&lt;p&gt;Eew947: added page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;nowiki&amp;gt;=What we have learned=&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	AMOEBA water has low diffusion constants. All the small molecules seem to have lower diffusion (we have a chart in small molecule manuscript). Although we have a second water model that has better diffusion AND better temperature dependence of density and diffusion(Figure 2 &amp;amp;13 in water-temperature paper). It would be interesting to learn what Teresa get from AMOEBA-v. We should encourage her to try.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	I remember you have calculated water surface tension but I don’t remember what was the result. Higher surface tension will stabilize the protein more? Would AMOEBA-v give a different surface tension.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Protein unfold. Is this real? Is the RMSD within normal fluctuation (that correlates with local temperature factor)? If this is real, it means protein likes water too much. Dispersion or electrostatic? &lt;br /&gt;
&lt;br /&gt;
We need to run more proteins!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;        Small molecule solvation free energy seems good (Vijay?). Meaning small molecule and water model are consistent.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Our trypsin-ligand binding free energy seems good. Unless there is fortuitous error cancellation, this indicates protein model is good. The ligand DMA used new gdma program. We should have relative binding energies of 2~3 more ligands in the next couple of months. What if we use new DMA on protein?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;       ion-water works from gas to condensed phase. Solvation free energy seems good. All free energies are good so far.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;=What we can possibly do to “improve” the model=&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Mostly the QM part. New DMA with high level basis set and new gdma (will be good to be consistent with nucleic acids now)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Backbone and side chain torsion. With really high basis set that is free of intramolecular BSSE. The tetrapeptide energy of Martin head-gordon with complete basis set does indicate LMP2 is over correcting BSSE for compact conformation, or over-favoring the extended structure.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Vdw? Unlikely&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Valence terms? Pretty standard, except the bell torsion. I do remember the flexible bell torsion cause tetrapeptide to “slide” away from QM minima so I have to tune it down by adding regular torsions on top of it. Is David case seeing problem with amide groups?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;=What we should do next (immediately)?=&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	&amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Publish the model now, or never. We could get killed before we have a chance to respond to these attacks.&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	Run long simulations of a few proteins using TINKER, sander, PMEMD. I can help out if you need more CPUs. Based on your description of Case results, we should aim for 5-10 ns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;	Crambin&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;	Ubiquitin&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;	SUMO-2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;	…&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;	I will continue with ligand binding energy calculations, with more ligands and different proteins. It would be nice to have automated parameterization. My student is sometimes careless and I have to watch every step of parameterization.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amoeba_force_field&amp;diff=2104</id>
		<title>Research:amoeba force field</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amoeba_force_field&amp;diff=2104"/>
		<updated>2025-04-21T23:20:03Z</updated>

		<summary type="html">&lt;p&gt;Eew947: /* Amoeba */ Fixed broken links. The EF hand page was blank on the old biomol so I left it broken here instead of creating blank page. Maybe then it will be a reminder to actually put something&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Amoeba ==&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research:Amoeba par tut|A Tutorial on Amoeba Parameterization Procedure]]&lt;br /&gt;
*[[Research: AMOEBA Reference Frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
*[[Research:AMOEBA Amber Free|A Tutorial on amoeba free energy simulation with amber]] &lt;br /&gt;
*[[Research: AMOEBA Ligand Par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
*[[Research:Typer|Typer]]: Used to parameterize VDW and internal geometry&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amoeba_force_field&amp;diff=2103</id>
		<title>Research:amoeba force field</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amoeba_force_field&amp;diff=2103"/>
		<updated>2025-04-21T23:16:31Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Amoeba ==&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research:amoeba_par_tut|A Tutorial on Amoeba Parameterization Procedure]]&lt;br /&gt;
*[[Research:amoeba_reference frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
*[[Research:amoeba_amber_free|A Tutorial on amoeba free energy simulation with amber ]]&lt;br /&gt;
*[[Research:amoeba_ligand_par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
*[[Research:Typer|Typer]]: Used to parameterize VDW and internal geometry&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Talk:Logs:parameterization&amp;diff=2102</id>
		<title>Talk:Logs:parameterization</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Talk:Logs:parameterization&amp;diff=2102"/>
		<updated>2025-04-21T23:15:10Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The list of Molecular Functional Groups used:&lt;br /&gt;
#acid&lt;br /&gt;
#alcohol&lt;br /&gt;
#aldehyde&lt;br /&gt;
#alkane&lt;br /&gt;
#alkene&lt;br /&gt;
#alkyl bromide (alkane w/ Br)&lt;br /&gt;
#alkyl chloride (alkane w/ Cl)&lt;br /&gt;
#alkyl iodide (alkane w/ I)&lt;br /&gt;
#alkyne&lt;br /&gt;
#amide (-NC=O)&lt;br /&gt;
#amine　（N w/ 1 lone pair)&lt;br /&gt;
#arene&lt;br /&gt;
#aromatic compound&lt;br /&gt;
#aryl chloride&lt;br /&gt;
#carbonitrile (-C#N)&lt;br /&gt;
#carboxylic acid&lt;br /&gt;
#cyclic hydrocarbon&lt;br /&gt;
#ester (R -C(=O)O- R&#039;)&lt;br /&gt;
#ether (R -O- R&#039;)&lt;br /&gt;
#halogen derivative&lt;br /&gt;
#heterocyclic compound&lt;br /&gt;
#hypervalent S&lt;br /&gt;
#ketone&lt;br /&gt;
#ketone/aldehyde&lt;br /&gt;
#nitrile&lt;br /&gt;
#nitro compound&lt;br /&gt;
#nitrogen heterocyclic&lt;br /&gt;
#nitrohydrocarbon&lt;br /&gt;
#other&lt;br /&gt;
#phenol or hydroxyhetarene&lt;br /&gt;
#sulfide&lt;br /&gt;
#thiol&lt;br /&gt;
&lt;br /&gt;
==== Email from Mike regarding opbendunit ====&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
The MM2/MM3 force field parameter files in TINKER v. 5/6 use an opbendunit&lt;br /&gt;
of 0.02191418 and so did Pengyu&#039;s early versions of the AMOEBA force field&lt;br /&gt;
parameter files. On the other hand, current versions of the AMOEBA&lt;br /&gt;
parameter files in TINKER5/6 do not use an opbendunit conversion. This&lt;br /&gt;
will lead to problems if poltype output is appended to TINKER/FFX&lt;br /&gt;
parameters.&lt;br /&gt;
&lt;br /&gt;
What do you guys think? Does it seem easiest to standardize on the latest&lt;br /&gt;
TINKER6 parameter files (ie. opbendunit = 1.0)? The poltype database of&lt;br /&gt;
opbend parameters would need to be scaled by a factor of (1.0 /&lt;br /&gt;
0.02191418).&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Mike&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:_AMOEBA_Ligand_Par&amp;diff=2101</id>
		<title>Research: AMOEBA Ligand Par</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:_AMOEBA_Ligand_Par&amp;diff=2101"/>
		<updated>2025-04-21T23:14:25Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Build your ligand=&lt;br /&gt;
&lt;br /&gt;
(1) Make your molecule with Chem3D Ultra or Arguslab (windows) &lt;br /&gt;
&lt;br /&gt;
You can also use other program too. &lt;br /&gt;
&lt;br /&gt;
(2) Minimize the structure. &lt;br /&gt;
Once the molecule is built, minimize energy with any of the methods available in Chem3D. In this case MOPAC method was used. There are other ways to minimize energy: MM2, Gaussian, Mechanics. You can use any of them as long as it works.&lt;br /&gt;
&lt;br /&gt;
(3) Save the structure as xyz file.&lt;br /&gt;
&lt;br /&gt;
Save as Tinker MM3 Input (*.xyz), benz.xyz&lt;br /&gt;
&lt;br /&gt;
=Optimize structure with QM=&lt;br /&gt;
&lt;br /&gt;
(1) Convert .xyz to .com &lt;br /&gt;
&lt;br /&gt;
Just copy the atoms and their coordinates into the .com file with following format:&lt;br /&gt;
&lt;br /&gt;
  %chk=benz.chk&lt;br /&gt;
  %mem=50MW&lt;br /&gt;
  %nproc=2&lt;br /&gt;
   # opt hf/6-31g*&lt;br /&gt;
   &lt;br /&gt;
    opt energy&lt;br /&gt;
  &lt;br /&gt;
    1 1&lt;br /&gt;
   C                 -0.37610769    0.74520000    0.98303077&lt;br /&gt;
   H                 -0.43910769    1.74320000    0.99203077&lt;br /&gt;
   C                 -0.72410769    0.05120000    2.12303077&lt;br /&gt;
   H                 -1.03010769    0.54320000    2.93803077&lt;br /&gt;
   C                 -0.64810769   -1.30880000    2.13203077&lt;br /&gt;
   H                 -0.89810769   -1.82380000    2.95203077&lt;br /&gt;
   C                 -0.22510769   -1.96280000    1.00303077&lt;br /&gt;
   H                 -0.17010769   -2.96080000    1.00603077&lt;br /&gt;
   C                  0.12589231   -1.26980000   -0.13596923&lt;br /&gt;
   H                  0.43389231   -1.77480000   -0.94296923&lt;br /&gt;
   C                  0.05989231    0.11420000   -0.18296923&lt;br /&gt;
   C                  0.40489231    0.82420000   -1.33896923&lt;br /&gt;
   N                  0.00089231    2.06920000   -1.47396923&lt;br /&gt;
   H                  0.24089231    2.58620000   -2.29496923&lt;br /&gt;
   H                 -0.54610769    2.49820000   -0.75496923&lt;br /&gt;
   N                  1.12789231    0.22220000   -2.26396923&lt;br /&gt;
   H                  1.38389231    0.71320000   -3.09696923&lt;br /&gt;
   H                  1.41989231   -0.72480000   -2.13196923&lt;br /&gt;
  &amp;lt;blank line&amp;gt;&lt;br /&gt;
&lt;br /&gt;
keyword &amp;quot;opt&amp;quot; indicates it is running optimization.&lt;br /&gt;
&lt;br /&gt;
You have to leave one blank line at the bottom of the file, and then save it as benz.com which will be the input file of Gaussian03&lt;br /&gt;
&lt;br /&gt;
(2) Run Gaussian program to optimize the structure.&lt;br /&gt;
&lt;br /&gt;
Do &amp;quot;g03 benz.com&amp;quot;. benz.chk and benz.log will be generated. benz.log is the output file which &lt;br /&gt;
&lt;br /&gt;
has the optimized structure and energy.&lt;br /&gt;
&lt;br /&gt;
= Single Point calculation=&lt;br /&gt;
&lt;br /&gt;
(1) Make the single point file (.com)&lt;br /&gt;
&lt;br /&gt;
Use the script mkspcom2.pl, do &amp;quot;mkspcom2.pl benz.log&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will extract the optimized coordinates and make it a single point file benzsp.com which &lt;br /&gt;
&lt;br /&gt;
looks like this:&lt;br /&gt;
  %Mem=500MB &lt;br /&gt;
  %Nosave &lt;br /&gt;
  %Chk=benhsp.chk&lt;br /&gt;
  %Nproc=2&lt;br /&gt;
   #MP2/6-311++G(2d,2p) Sp Density=MP2 MaxDisk=960MW&lt;br /&gt;
 &lt;br /&gt;
   sp energy&lt;br /&gt;
  &lt;br /&gt;
    1 1&lt;br /&gt;
  C1  -0.219172  0.772015  1.045507&lt;br /&gt;
  H2  -0.124354  1.841828  1.092625&lt;br /&gt;
  C3  -0.556685  0.065459  2.183830&lt;br /&gt;
  H4  -0.742000  0.589477  3.102333&lt;br /&gt;
  C5  -0.648127  -1.318255  2.138044&lt;br /&gt;
  H6  -0.916424  -1.863862  3.023554&lt;br /&gt;
  C7  -0.395888  -2.003092  0.957999&lt;br /&gt;
  H8  -0.479004  -3.072957  0.925387&lt;br /&gt;
  C9  -0.043176  -1.306084  -0.181602&lt;br /&gt;
  H10  0.125831  -1.839237  -1.099697&lt;br /&gt;
  C11  0.041747  0.084714  -0.138928&lt;br /&gt;
  C12  0.409652  0.833072  -1.353567&lt;br /&gt;
  N13  -0.200543  1.960083  -1.635531&lt;br /&gt;
  H14  0.060474  2.534099  -2.409732&lt;br /&gt;
  H15  -0.999989  2.242440  -1.111118&lt;br /&gt;
  N16  1.345776  0.368932  -2.147446&lt;br /&gt;
  H17  1.581717  0.805673  -3.013818&lt;br /&gt;
  H18  1.901226  -0.409704  -1.866286&lt;br /&gt;
  &amp;lt;blank line&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We use higher energy level and basis set MP2/6-311++G(2d,2p) in order to get accurate energy result. Lower energy level has been used for optimization since the energy is sensitive to energy level while structure is not.&lt;br /&gt;
&lt;br /&gt;
Keyword &amp;quot;sp&amp;quot; means this is a single point calculation. &lt;br /&gt;
&lt;br /&gt;
Now run &amp;quot;g03 benzsp.com&amp;quot;, again this will generate benzsp.chk benzsp.com&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note the gaussian input structure is rotated into standard orientation unless &amp;quot;NoSymm&amp;quot; keyword is specified. SO when you compare the molecular dipoles from gdma using TINKER with Gaussian log file, remember to use the coordinates (xyz file produced by poledit is correct) in standard orientation.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Multipoles calculation.=&lt;br /&gt;
&lt;br /&gt;
(1) Make fchk file from benzsp.chk&lt;br /&gt;
&lt;br /&gt;
Do &amp;quot;formchk benzsp.chk&amp;quot;. This will make benzsp.fchk file.&lt;br /&gt;
&lt;br /&gt;
(2) Make a gdma input file.&lt;br /&gt;
&lt;br /&gt;
Open up a new text file. Type following text in the file.&lt;br /&gt;
 &lt;br /&gt;
  Title &amp;quot;benzamidine gdmain&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  File benzsp.fchk density MP2&lt;br /&gt;
  Angstrom&lt;br /&gt;
  AU&lt;br /&gt;
  Multipoles&lt;br /&gt;
  Limit 2&lt;br /&gt;
  Radius H 0.31&lt;br /&gt;
  Punch benzsp.punch&lt;br /&gt;
 &lt;br /&gt;
  Start&lt;br /&gt;
 &lt;br /&gt;
  Finish&lt;br /&gt;
&lt;br /&gt;
(3) Run GDMA to calculate multipoles of this ligand.&lt;br /&gt;
&lt;br /&gt;
Do &amp;quot;/opt/gdma-2.2/bin/gdma &amp;lt; gdmain &amp;gt; benzsp.gdmaout&amp;quot;. Wait for about 20 min. There are two output files benzsp.punch and benzsp.gdmaout, the latter one has the multipoles.&lt;br /&gt;
&lt;br /&gt;
(4) Edit the multipoles from the GDMA output.&lt;br /&gt;
&lt;br /&gt;
Do &amp;quot;poledit benzsp.gdmaout&amp;quot;. Two options:&lt;br /&gt;
&lt;br /&gt;
    (1) Atomic Multipoles from GDMA Output File&lt;br /&gt;
    (2) Removal of Intramolecular Polarization&lt;br /&gt;
&lt;br /&gt;
Choose the first one. Then it will ask you to &amp;quot;Enter Altered Local Frame Definition&amp;quot;. If you don&#039;t need to change the local frame definition, Press Enter. If you have symmetric atoms that you will average the multipoles later, please make sure the frame definition is symmetric. This will generate &#039;&#039;&#039;benzsp.xyz&#039;&#039;&#039; and benzsp.key. The .key file has all the multipole values.&lt;br /&gt;
&lt;br /&gt;
If you have a large molecule that is flexible, go to step 8.&lt;br /&gt;
&lt;br /&gt;
=Average the multipoles =&lt;br /&gt;
(e.g over methyl H atoms, or C atoms of benzene carry very similiar multipoles but may be slightly different)&lt;br /&gt;
&lt;br /&gt;
(1) Change atom index.&lt;br /&gt;
&lt;br /&gt;
Remove the negative signs of the local-frame indices of the atoms. The negative means atom number (so you can run analyze without defining new types). Group the atoms manually, by making the indices of the same type of atoms identical (including reference indices).&lt;br /&gt;
&lt;br /&gt;
(2) Run avgmpoles.pl to average multipoles&lt;br /&gt;
&lt;br /&gt;
The script is in /home/oscar/bin/. &lt;br /&gt;
&lt;br /&gt;
There are five arguments for this script. Multipule key file, index of first atom in key file, index of last atom in the key file, the starting index of this ligand that will appear in the TINKER parameter file. (For example, the last atom number of the preexisting parameter file is 273, then the first atom number of this new ligand is 274).&lt;br /&gt;
&lt;br /&gt;
In the case of benzamidine, do &amp;quot;avgmpoles.pl benzsp.key_2 1 14 274 benzsp.key_3&amp;quot; &lt;br /&gt;
This script also zero out dy, qxy, qyz components of multipoles for z-then-x. For bisector frame multipoles, please zero out dx also. ALl these components should be very small (0.0xxx), otherwise your bisector definition is improper, or it is a chiral center (like Calpha). We have special definition for chiral atom (check Calpha in amoeba.prm).&lt;br /&gt;
&lt;br /&gt;
6. Create parameters of new ligand in TINKER parameter file amoeba.prm.&lt;br /&gt;
&lt;br /&gt;
(1) Atom definition.&lt;br /&gt;
&lt;br /&gt;
Number all the atoms of the new ligand sequentially at the end of amoeba.prm. Atomic types should also numbered following the last atom type above. Copy the atomic number and mass from existed parameters.&lt;br /&gt;
&lt;br /&gt;
(2) vdw, bond, angle, out-of-plane and torsion parameters&lt;br /&gt;
&lt;br /&gt;
Most parameters can be obtained from the existed AMOEBA force field (or MM3). Try to find the closest atom type, for benzamidine, it is benzene + amidine (from arginine). You may also fine-tune the valence parameters such as bond length and angle values by adjust them to match the QM-optimized structure that you already have. Unless you worry about vibrational spectroscopy, we leave the force constants unchanged. They can be improved however by matching the Vib Freq from QM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Torsion may or may not be transferable.&#039;&#039;&#039; In our hand it has been OK as long as you distinguish single and double bonds and transfer from similar atom_types. If you really care about particular torsions, e.g. peptide backbone or sugar ring puckering, you can refine the trosion parameters by fitting to the QM energy profiles. This is done at the last step (i.e. after you get all the other parameters), then you can calculation the torsional profile using QM (restrained optimization at MP2/6-311++G** level, for example), and repeat the same calculation using TINKER (with the particular torsion parameter set to zero). Now fit the 3-term Fourier series to the energy difference E(QM-TINKER). Here is a gnuplot script we use to do this. This example fit two torsion (phi-psi) simultaneously, and can be easily modified for one torsion:&lt;br /&gt;
 f(x,y)=a/2.0*(1+cos(x))+b/2.0*(1-cos(2*x))+c/2.0*(1+cos(3*x))+a1/2.0*(1+cos(y))+b1/2.0*(1-cos(2&lt;br /&gt;
 *y))+c1/2.0*(1+cos(3*y))+g &lt;br /&gt;
 a=1;b=1;c=1;a1=1;b1=1;c1=1;g=1 &lt;br /&gt;
 f(x,y)=a/2.0*(1+cos(x))+b/2.0*(1-cos(2*x))+c/2.0*(1+cos(3*x))+a1/2.0*(1+cos(y))+b1/2.0*(1-cos(2&lt;br /&gt;
 *y))+c1/2.0*(1+cos(3*y))+g&lt;br /&gt;
 fit f(x,y) &#039;lacphipsi2.csv&#039;  using 1:2:10:($7) via a,b,c,a1,b1,c1,g&lt;br /&gt;
 #splot f(x,y), &#039;lacphipsi2.csv&#039;  using 1:2:10&lt;br /&gt;
 splot &#039;lacphipsi2.csv&#039;  using 1:2:10, f(x,y)&lt;br /&gt;
 pause -1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(3) Polarizability&lt;br /&gt;
&lt;br /&gt;
Polarization parameters can be also tranfered from existed parameters. Normally, if you have a large molecule, you need to split up the molecule into polarization groups (each with less than 15 atoms but can be larger if needed).You also need to modify the connectivity of each atom. Remove the connection between polarization groups. But benzamdine only has 18 atoms, so we still consider it as a whole group. SEE step 8 for necessary modification of permanent multipoles if you have 2 or more groups in a molecule.&lt;br /&gt;
&lt;br /&gt;
(4) Append the multipole parameters from step 5 to the amoeba.prm.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Analyze check.&lt;br /&gt;
&lt;br /&gt;
(1) Assign the new atom types to each atom in xyz file. &lt;br /&gt;
&lt;br /&gt;
(2) Run &amp;quot;analyze ligand.xyz em&amp;quot; to print out the potential energy and electrostatic properties. If any parameter like bond, angle is missing, it will complain parameters are not defined. Compare the electrostatic properties with QM calculation espesially total charge and dipole moment and x y z components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Intramolecular polarization group.&lt;br /&gt;
If the the molecule is large and flexible, it is necessary to definite a few groups so that the permanent multipoles will polarize atoms in other groups but not atoms within the same groups. See JCC 2002 paper for detailed discussion. For example, a polypeptide backbone will consists of amide groups. Each groups is essentially a rigid fragment/functional group.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The group is defined through polarize keyword in tinker parameter file:&lt;br /&gt;
polarize atom_type_integer polarizability_real connected atom_types_integer&lt;br /&gt;
The connected atom_types are atoms connected to the current atoms AND belong to the same group. TINKER uses this information to build up groups.&lt;br /&gt;
&lt;br /&gt;
Because in QM DMA, the multipoles would include both permanent and induced dipole moments (depending on how you define the group). &lt;br /&gt;
Once the groups is defined in the tinker key or parameter files, you can use &amp;quot;poledit&amp;quot; option 2 &lt;br /&gt;
to extract the permanent multipoles that go in the final tinker parameter file.&lt;br /&gt;
 &lt;br /&gt;
 * Moficaton of step 5: don;t goup the same atoms (symmetric) yet. Assign uniuqe atom_type to each atom. Define poalrize and group. use poledit to extract (option2).&lt;br /&gt;
 * You can now use ~pren/avgmpoles.pl extracted_key first_atom_type last 1 new_key to average mutipoles of the same.&lt;br /&gt;
&lt;br /&gt;
 * Now continue with step 6 and 7.&lt;br /&gt;
&lt;br /&gt;
9. If you want to fine tune the torsion see Step 6.(2). Otherwise you are done. Again please check the parameters to make sure it is right before jump ahead. Check the total dipole moments against QM (using the same structure of course). Check the polarization energy and group definition (analyuze ed and analyze ed). Superimpose the optimize dstructure against QM structure etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Note please use tinker 4.3 parameter style and executable (in ~pren/tinker4.3) if you want to use with AMBER.=&lt;br /&gt;
&lt;br /&gt;
 We also have in-house modification of tinker 4.3 for handling Ca/Mg and Zn. Jay used different style which is not understood by AMBER yet. &lt;br /&gt;
 The main differences is that TINKER5 has explicit damping coefficient in &amp;quot;polarize&amp;quot; definition. We used polar-damp-ion in tinker4.3. &lt;br /&gt;
 We have modified amber pre-9 to be compatible with our approach.&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA_Amber_Free&amp;diff=2100</id>
		<title>Research:AMOEBA Amber Free</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA_Amber_Free&amp;diff=2100"/>
		<updated>2025-04-21T23:13:40Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==README FIRST==&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Right now, only tinker v4 parameter files can be used by amber. Use these to convert from TINKER to amber:&#039;&#039;&#039;&lt;br /&gt;
 /home/pren/tinker/bin/analyze&amp;lt;br&amp;gt;&lt;br /&gt;
 /opt/amber/bin/amoeba_parm &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The prm tinker key has to be in tinker4.3 format (no 0.39 in polarize key)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Afterwords you can use amber9, pmemd9 exe with softcore/ion modifications. ) The executable may not always be in /opt/amber/bin, see oscar&#039;s document on AMBER mod for exact location.&lt;br /&gt;
&lt;br /&gt;
To go from tinker to AMBER, you need:&lt;br /&gt;
&lt;br /&gt;
mol.xyz&lt;br /&gt;
mol.key&lt;br /&gt;
mol.pdb&lt;br /&gt;
&lt;br /&gt;
((pdb must match xyz)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 1. Make a water box to soak the protein  ==&lt;br /&gt;
&lt;br /&gt;
 You can build a big box with small boxes using the command: crystal.x. Make sure the box is big enough to contain the protein--side&lt;br /&gt;
 length should be at least 12 angstroms longer than protein&#039;s dimension.&lt;br /&gt;
&lt;br /&gt;
 If you want to speed up the simulation you can also chop off the corners of the cubic box to make a octohedral water box (see 10.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 2. If the box is a little too big, delete some water molecules in the end of the xyz file of waterbox proportionally.  ==&lt;br /&gt;
&lt;br /&gt;
 Do not forget to change the atom number in the first line. Then run command dynamic to make the box shape back to normal.&lt;br /&gt;
&lt;br /&gt;
 Put this keyword &amp;quot;octahedron&amp;quot; in the tinker.key file or whatever key file you are using before dynamic or minimize in order to transform the box from cubic to octahedron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== 3. Soak the protein in the water box.  ==&lt;br /&gt;
&lt;br /&gt;
 Command: xyzedit protein.xyz&lt;br /&gt;
&lt;br /&gt;
 Option 11: to translate the center of mass to origin in order that the protein soaked in the box completely.&lt;br /&gt;
&lt;br /&gt;
 Option 17: input waterbox.xyz, soak the protein in the water box.&lt;br /&gt;
&lt;br /&gt;
 This step will generate a new xyz file of the whole system, we name it pro_wat.xyz&lt;br /&gt;
&lt;br /&gt;
 Make sure the a-zxis in the tinker key file will give the right density (1.00 g/cc). &lt;br /&gt;
 later when you run MD, if the box size change din dyn file, make sure to change the key accordingly.&lt;br /&gt;
&lt;br /&gt;
== 4. Optional: Run minimize pro_wat.xyz, and then dynamic pro_wat.xyz. ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REN: freeze the protein position (see manual for positional restrain or fix atoms). This is to reduce the disruption of protein structure from non-equilibrated water.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can specify the atoms/residues you want to fix during the simulation in the mdin file by adding two keywords restraint_wt and restraintmask.&lt;br /&gt;
&lt;br /&gt;
restraint_wt is the strength of the restraint. restraintmask is the atom selection. For example if you want the strength to be 10 and the protein you are to fix has 224 residues, include the following in the cntrl block of mdin file:&lt;br /&gt;
&lt;br /&gt;
restraint_wt=10.0,restraintmask=&#039;:1-224&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to relax a system using TINKER:&#039;&#039;&#039;&lt;br /&gt;
*   For acceleration, turn mpole and polarization off at first by adding to the key file and them &amp;quot;minimize&amp;quot; to  a convergence of 5.0:&lt;br /&gt;
 neighbor-list&lt;br /&gt;
 mpoleterm none&lt;br /&gt;
 polarizeterm none&lt;br /&gt;
 #polar-eps             0.00001  # uncomment this when uncomment polarization&lt;br /&gt;
 #polar-predict                      # uncomment this when uncomment polarization&lt;br /&gt;
 openmp-threads 8&lt;br /&gt;
 printout 1    #so you can see the move&lt;br /&gt;
 cutoff 9.0      #it is also faster not use Ewald for large box &amp;gt; 60 A&lt;br /&gt;
                      #but in case if you have convergence issue with polarization in minimization, you may have to use Ewald.&lt;br /&gt;
 #Ewald (with this commented out, no Ewald will be used. Faster for initial refinement but needs uncomment for final relaxation)&lt;br /&gt;
 #position-restrain proteins &amp;amp; ligands (&amp;quot;inactive” has trouble)&lt;br /&gt;
 restrain-position 1 x y z 10.0 (restrain atom 1 at x y z location with a force constant=10 kcal/mol/A; one for each atom, write a script to restrain all proteins)&lt;br /&gt;
 ##Note you may be able to skip the protein-restrain step if heat up slowly (below). &lt;br /&gt;
 ....&lt;br /&gt;
* Minimize to 5.0 with protein/ligand inactive/restrained, with mpole but no polarization&lt;br /&gt;
* Turn both mpole and polarization (polar-eps=0.05) back on and minimize to 5.0&lt;br /&gt;
* remove restraints on P/L and minimize to 5.0&lt;br /&gt;
* Uncomment Ewald, polarization keywords, run minimization to 5.0&lt;br /&gt;
* Run NPT MD for 10000 steps to gradually heat up the system from 50K, to 110K, 150K, ...300K (eg. 5000 steps at each T)&lt;br /&gt;
* Run NPT at 300K for 500ps-1ns to equilibrate and calculate average volume before switching to NVT&lt;br /&gt;
&lt;br /&gt;
== 5. Take the last structure of tinker and make it the xyz file. Generate PDB file that macthes the xyz ==&lt;br /&gt;
Do xyzpdb to this xyz file with the protein&#039;s seq file which is generated when doing pdbxyz to the protein. &lt;br /&gt;
 It turns out atom order will be changed within residues in pdb file. &lt;br /&gt;
 There is one way to correct this. Do xyzpdb to the whole structure without seq file. &lt;br /&gt;
 This will give the right atom order. Now copy the atom column together with coordinate columns &lt;br /&gt;
 to substitute these parts in the former pdb file. &lt;br /&gt;
&lt;br /&gt;
 Also you can use the script ~yues/bin/pdb_crt to fix this error.&lt;br /&gt;
&lt;br /&gt;
== 6. Now we have dyn (dyn is optional) pdb and xyz files. Ready for amber  ==&lt;br /&gt;
&lt;br /&gt;
 Do analyze [ ] PC &amp;amp;gt; [].analout&lt;br /&gt;
&lt;br /&gt;
 comment out the additional keywords you added for restraint and turning off polarization etc.&lt;br /&gt;
 Only analyze from TINKER4.3 work for now (/home/pren/tinker/bin&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;&#039;&#039;&#039;Note: when completely turning off electrostatic parameters of a group of atoms (or a molecule), &#039;&#039;&#039;&lt;br /&gt;
 &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;the polarizability can be set to exact 0.0, but the permanent multipole&lt;br /&gt;
 needs a tiny charge has of 0.0000001 (all dipole and Q are eaxct 0), &lt;br /&gt;
 otherwise analyze PC won;t print out any multipoles/polarizability for theses atoms. &lt;br /&gt;
 Thus amber is confused becuase natom misatches the parameters and will bomb. &lt;br /&gt;
 &#039;&#039;&#039;Solution: Use a tiny charge with 6 zeros; This small charge will make tinker print out 0.00000 so they are exactly zero but it is printed in the analout.&lt;br /&gt;
&#039;&#039;&#039; &lt;br /&gt;
 When there is only one molecule and/or all atomic polarizabilities are zero; &lt;br /&gt;
 amoeba_parm will also bomb, complaining no polarizability found. Can use 0.0000001 &lt;br /&gt;
 for poalrizability&amp;lt;/span&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Check the analout!&lt;br /&gt;
&lt;br /&gt;
== 7. /opt/amber/bin/amoeba_parm -name [ ] -title &amp;quot;....&amp;quot; &amp;amp;gt; [].amoeba_parm.out  ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;you may need to set intel v9 path to use the amber_pre9 from Darden&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 This step will also generate input coordinate file(.inpcrd) and parameter file (.prmtop).&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;Remember you need to have the key file with the same name as amoeba_parm.out, and also note that in the key file, the keyword &amp;quot;parameter&amp;quot; can&#039;t have capital P.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== 8. Write a mdin file and then run sander to do simulation  ==&lt;br /&gt;
&lt;br /&gt;
 /opt/amber/bin/sander -i [].mdin -c [].inpcrd -p [].prmtop -o mdout &amp;amp;amp;&lt;br /&gt;
&lt;br /&gt;
== 9. Use AMBER to further relax the system before the production run.  ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;First minimize the structure well&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Then gradually heat up the protein from 0K to 300K in a series of MD (10 ps at 100K, another 10 ps at 200K...).&#039;&#039;&#039; &lt;br /&gt;
to restrain pro/lig in PMEMD:&lt;br /&gt;
Group input for restraint residue&lt;br /&gt;
2.0&lt;br /&gt;
RES 1 365&lt;br /&gt;
END&lt;br /&gt;
END&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run NPT dynamics at 300K for at 100 ps or more to get the equilibrium density. Then ready for NVT using the average density. Please check your protein/ligand structure at every step by comparing against original PDB structure, to make sure nothing is screwed up.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=Octahedron=&lt;br /&gt;
&amp;lt;br&amp;gt; If the water box is octahedron, there are some differences from cubic box. [Ren: this is because TINKER and amber define octahedron differently so the density drops when moving from TINKER to amber].&lt;br /&gt;
&lt;br /&gt;
== 10. Add the keyword &amp;quot;octahedron&amp;quot; in the tinker key file. Soak the protein in an octahedron box and go through step 1-6 above.  ==&lt;br /&gt;
&lt;br /&gt;
== 11. Since the definition of octahedron size is different in tinker and amber we need to modify some files.  ==&lt;br /&gt;
&lt;br /&gt;
 Change the last two lines in inpcrd file. &lt;br /&gt;
 (1) Angle: from 90 to 109.4712; 0.109471219000E+03  0.109471219000E+03  0.109471219000E+03&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 (2) Make the size big at the beginning and then shrink it otherwise SANDER bomb complaining too many subcells.&lt;br /&gt;
   for example, the tinker size is 29 A, change it to 30 A in .inpcrd will let sander to run, but density is only 0.56 (see shrinking box below). &lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
 In the prmtop file there are &#039;&#039;&#039;two places&#039;&#039;&#039; need to be changed. In the last second row of FLAG POINTERS, &lt;br /&gt;
 change the value 1 (the last third) to 2 meaning octahedron.&lt;br /&gt;
 %FLAG POINTERS&lt;br /&gt;
 %FORMAT(10I8)&lt;br /&gt;
    1170       1       1       1       1       1       1       1       0       0&lt;br /&gt;
    1170     390       1       1       1       1       1       1       1       1&lt;br /&gt;
       0       0       0       0       0       0       0       &#039;&#039;&#039;2&#039;&#039;&#039;       0       0&lt;br /&gt;
       0       0&lt;br /&gt;
 %FLAG ATOM_NAME&lt;br /&gt;
&lt;br /&gt;
 ALso change the angle (search BOX) from 90 to 109&lt;br /&gt;
 0.90E2 to 0.10947122E+03&lt;br /&gt;
&lt;br /&gt;
== 12. Shrink the box before long simulation.  ==&lt;br /&gt;
&lt;br /&gt;
(1) Run NPT simulations(300 fs) to shrink the box (&#039;&#039;&#039;remember to freeze everything but water&#039;&#039;&#039;); stop when density = 1.0. &lt;br /&gt;
 &lt;br /&gt;
 To run NPT: In the mdin file add this: &#039;&#039;&#039;ntb=2, ntp=1, taup=1.0 press0=500&#039;&#039;&#039; to run NPT instead of NVT. 500 atom is used to squeeze the box. Alternatively, one may run a series of short NVT and manually reduce the box size in inpcrd: Every time overwrite inpcrd file with restrt file and decrease the size a little  bit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; To FREEZE THE PROTEIN and ION and LIGANDS with positional constrain on protein/ion/ligand:&#039;&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
 from AMBER 9.0 Drug/DNA Complex Tutorial tutorial:&lt;br /&gt;
&lt;br /&gt;
 Initial restrained minimization on DNA &amp;amp; DRG, 10 cut&lt;br /&gt;
 &amp;amp;cntrl&lt;br /&gt;
 imin = 1,&lt;br /&gt;
 maxcyc = 1000,&lt;br /&gt;
 ncyc = 250,&lt;br /&gt;
 ntb = 1,&lt;br /&gt;
 ntr = 1,&lt;br /&gt;
 cut = 10&lt;br /&gt;
 /&lt;br /&gt;
 Hold the DNA &amp;amp; DRG fixed&lt;br /&gt;
 500.0&lt;br /&gt;
 RES 1 25&lt;br /&gt;
 END&lt;br /&gt;
 END&lt;br /&gt;
&lt;br /&gt;
Hold the DNA and the DRG fixed&lt;br /&gt;
500.0 (This is the force in kcal/mol used to restrain the atom positions.)&lt;br /&gt;
RES 1 25 (Tells AMBER to apply this force to residue #’s 1 to 25). Then let go the restrain and relax the system for another period &lt;br /&gt;
&lt;br /&gt;
(2)Let go restrain and Follow instructions at the step 9 above to equilibrate the system.&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Compare your current structure (protein/peptide/ligands) and original structure to make sure RMSD is small (ie. npt didn&#039;t ruin the structure)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
(3)Check the structure with crystal frequently to see if the ligand is still in the pocket, me important ions are still in the same place and the RMSD of the protein is reasonable. You can use software as VMD to visualize the two structures at the same time and compute their RMSD.  Normally backbone RMSD should be around 1.0 Angstrom.&lt;br /&gt;
&lt;br /&gt;
(4)It is time for long NVT simulation.&lt;br /&gt;
 &lt;br /&gt;
 In the mdin file, delete &#039;&#039;&#039;ntb=2, ntp=1, pres0=1.0 taup=50&#039;&#039;&#039;.&lt;br /&gt;
 BE CAREFUL AT EACH STEP. CHECK EVERYTHING THAT CAN INDUCE ERROR!!!&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
How to calculate free energy between step i and j: &lt;br /&gt;
&lt;br /&gt;
four energy files are needed: &lt;br /&gt;
&lt;br /&gt;
ii.e ij.e jj.e ji.e &lt;br /&gt;
&lt;br /&gt;
The first letter indicates the trajectory and the 2nd is the parameter. &lt;br /&gt;
&lt;br /&gt;
To generate the above energy files: For given trajectory, run &lt;br /&gt;
&lt;br /&gt;
#get energy from current parameters&lt;br /&gt;
&lt;br /&gt;
/opt/amber/bin/sander -i ele1.min -c ../ele1.inpcrd -x ../mdcrd -p ../ele1.prmtop -o ele1.e &amp;amp;amp; &lt;br /&gt;
&lt;br /&gt;
#get energy from perturbed parameters&lt;br /&gt;
&lt;br /&gt;
/opt/amber/bin/sander -i ele1.min -c ../ele1.inpcrd -x ../mdcrd -p ../ele2/ele2.prmtop -o ele2.e &amp;amp;amp; &lt;br /&gt;
&lt;br /&gt;
ele1.min is the same as ele2.min. No need for restrain as they cancel. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; Then run &amp;quot;BAR-amber ii.e ij.e ji.e jj.e start_frame end_frame guessed_init&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
#energy file with first trajectory and first prm file&lt;br /&gt;
&lt;br /&gt;
$file00=$ARGV[0]; &lt;br /&gt;
&lt;br /&gt;
#energy file with first trajectory and second prm file&lt;br /&gt;
&lt;br /&gt;
$file01=$ARGV[1]; &lt;br /&gt;
&lt;br /&gt;
#energy file with second trajectory and first prm file&lt;br /&gt;
&lt;br /&gt;
$file10=$ARGV[2]; &lt;br /&gt;
&lt;br /&gt;
#energy file with second trajectory and second prm file&lt;br /&gt;
&lt;br /&gt;
$file11=$ARGV[3]; &lt;br /&gt;
&lt;br /&gt;
We also have a program to evaluate the statistical error of dG from BAR (/home/pren/bin/barerror_bigstep.oscar.amber). It also tells you if the step is too big (error too big).&lt;br /&gt;
&lt;br /&gt;
=Free Energy Perturbation=&lt;br /&gt;
*&amp;lt;math&amp;gt;\Delta G(A \rightarrow B) = G_B - G_A = -k_B T \ln \left \langle \exp \left ( - \frac{E_B - E_A}{k_B T} \right ) \right \rangle _A&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:_AMOEBA_Reference_Frame&amp;diff=2099</id>
		<title>Research: AMOEBA Reference Frame</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:_AMOEBA_Reference_Frame&amp;diff=2099"/>
		<updated>2025-04-21T23:12:48Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;1 After we got the moleculeMP2.log file, copy/pasting the new Cartesian coordinates out of the end of moleculeMP2.log into the new .xyz file named moleculeMP2sp.xyz.   600px  2 Then we use one of TINKER&amp;#039;s facilities XYZEDIT. It have many interactively selectable options, choose (13) Translate and Rotate to Inertial Frame. At the end of the editing process, a new version of the orginal .xyz file is written as output. In our case, we should have a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1 After we got the moleculeMP2.log file, copy/pasting the new Cartesian coordinates out of the end of moleculeMP2.log into the new .xyz file named moleculeMP2sp.xyz. &lt;br /&gt;
&lt;br /&gt;
[[Image:Screenshot1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
2 Then we use one of TINKER&#039;s facilities XYZEDIT. It have many interactively selectable options, choose (13) Translate and Rotate to Inertial Frame. At the end of the editing process, a new version of the orginal .xyz file is written as output. In our case, we should have a file named moleculeMP2sp.xyz_2. &lt;br /&gt;
&lt;br /&gt;
3 Copy the coordinates from the moleculeMP2sp.xyz_2 file to your moleculeMP2sp.com file as your input coordinates. And add the command &amp;quot;Nosymm&amp;quot; .In this way, we can make the frame consistent with TINKER&#039;s inertial frame. &lt;br /&gt;
&lt;br /&gt;
See the molecule flips in following picture. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Screenshot2.png|600px]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Amoeba_par_tut&amp;diff=2098</id>
		<title>Research:Amoeba par tut</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Amoeba_par_tut&amp;diff=2098"/>
		<updated>2025-04-21T23:12:16Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;&amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=6 STYLE=&amp;quot;font-size: 22pt&amp;quot;&amp;gt;Quantum Calculations&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt; &amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=4 STYLE=&amp;quot;font-size: 16pt&amp;quot;&amp;gt;From initial structure to TINKER simulation&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt; &amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3 STYLE=&amp;quot;font-size: 13pt&amp;quot;&amp;gt;(uses Gaussian03, TINKER, and formatting scripts written by P. Ren and C. King)&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt; &amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt; &amp;lt;/P&amp;gt; &amp;lt;P STYLE=&amp;quot;margin-...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=6 STYLE=&amp;quot;font-size: 22pt&amp;quot;&amp;gt;Quantum&lt;br /&gt;
Calculations&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=4 STYLE=&amp;quot;font-size: 16pt&amp;quot;&amp;gt;From&lt;br /&gt;
initial structure to TINKER simulation&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3 STYLE=&amp;quot;font-size: 13pt&amp;quot;&amp;gt;(uses&lt;br /&gt;
Gaussian03, TINKER, and formatting scripts written by P. Ren and C.&lt;br /&gt;
King)&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Copy these files into your ~/bin&lt;br /&gt;
directory from ~kris/bin:&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;	 avgmpoles.pl, mkMP2spcom.pl,&lt;br /&gt;
indexyz.pl, indexmpole.pl, poledit.x, 			MP2template.com,&lt;br /&gt;
template.gdmain&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;You need to set up your .cshrc file so&lt;br /&gt;
you can run these programs:&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;	Gaussian g03, TINKER analyze.x,&lt;br /&gt;
formchk&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Type “source ~/.cshrc” to update.&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Initial Structure: Make molecule&lt;br /&gt;
	in your favorite program. Save file in Cartesian coordinate format.&lt;br /&gt;
	For this tutorial, the molecule&#039;s arbitrary name is  “molecule.*”,&lt;br /&gt;
	but you can use any name wherever “molecule” appears. Try to get&lt;br /&gt;
	the molecule in a roughly accurate conformation to reduce computing&lt;br /&gt;
	time (e.g. “Minimize” function in ChemDraw3D).&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;MP2 Structure Optimization: Open a&lt;br /&gt;
	new text file (or use MP2template.com). Use this format:&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;-------------------------------------------------------------------------------------------------------&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;%Mem=900MB &lt;br /&gt;
	&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;%Nosave&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;%Nproc=2 &lt;br /&gt;
	&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;%Chk=moleculeMP2.chk&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt; &lt;br /&gt;
	&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;#MP2/6-31G* OPT MaxDisk=960MW&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;molecule&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt; &lt;br /&gt;
	&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt; 0 1&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;C1		0.000		0.000		0.000&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;H2		1.000		1.000		1.000&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;-----------------------------------------------------------------------------------------------------------&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;The newlines are part of the syntax.&lt;br /&gt;
Make sure you leave one blank line at the bottom of the file also, or&lt;br /&gt;
the program will not run! Then just copy-paste the Cartesian&lt;br /&gt;
coordinates of your molecule from step 1 into the bottom section. &lt;br /&gt;
Save this file as moleculeMP2.com . This will be your input for&lt;br /&gt;
quantum structural optimization. Next, login to a node that has no&lt;br /&gt;
processes running (you will need BOTH processors), navigate to the&lt;br /&gt;
directory where you saved the moleculeMP2.com file, and type “g03&lt;br /&gt;
moleculeMP2.com &amp;amp;amp;” from the command line. Wait approximately&lt;br /&gt;
12-24 hours.&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=3&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;MP2 Single Point Calculation:&lt;br /&gt;
	Next, you will use the Cartesian coordinate output from the MP2&lt;br /&gt;
	optimization as the input for MP2 single point calculation. The g03&lt;br /&gt;
	program should have generated moleculeMP2.chk and moleculeMP2.log.&lt;br /&gt;
	Open moleculeMP2.log and look at the bottom of the file to make sure&lt;br /&gt;
	it has finished. It should have some inspirational quote and the job&lt;br /&gt;
	CPU time and some other stuff. If it is done, you can generate a new&lt;br /&gt;
	.com file using a script. Type “mkMP2spcom.pl moleculeMP2.log”.&lt;br /&gt;
	This will make a new .com file called moleculeMP2sp.com. Like step&lt;br /&gt;
	2,  navigate to a free node and type “g03 moleculeMP2sp.com &amp;amp;amp;”.&lt;br /&gt;
	Wait ~24hrs.&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;(In the absence of a script, you can&lt;br /&gt;
	just make the new .com file yourself by replacing the basis set line&lt;br /&gt;
	with “#MP2/6-311++G(2d,2p) Sp Density=MP2 MaxDisk=960MW” and&lt;br /&gt;
	copy/pasting the new Cartesian coordinates out of the end of&lt;br /&gt;
	moleculeMP2.log and into the new .com file and rewriting the atom&lt;br /&gt;
	type and number in the correct syntax.) &lt;br /&gt;
	&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;4.  File Conversions: When it has&lt;br /&gt;
finished running, the g03 program should have generated&lt;br /&gt;
moleculeMP2sp.chk and moleculeMP2sp.log. Type  “formchk&lt;br /&gt;
moleculeMP2sp.chk”. This will generate moleculeMP2sp.fchk. Now open&lt;br /&gt;
a new text file (or use template.gdmain) and make this:&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=3&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;--------------------------------------------------------------------------------------------------------&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Title &amp;amp;quot;MoleculeMP2sp gdmain&amp;amp;quot;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;File moleculeMP2sp.fchk density MP2&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Angstrom&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;AU&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Multipoles&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;  Limit 2&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;  Limit 2 H&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt; Radius H 0.35&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt; Punch moleculeMP2sp.punch&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Start&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;Finish&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;--------------------------------------------------------------------------------------------------------&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;You should overwrite “molecule”&lt;br /&gt;
with your own molecule name in this file so it points to your .fchk&lt;br /&gt;
file and generates the filenames you want. Save this .gdmain file.&lt;br /&gt;
Now type “/opt/gdma-2.2/bin/gdma &amp;amp;lt; moleculeMP2sp.gdmain &amp;amp;gt;&lt;br /&gt;
moleculeMP2sp.gdmaout &amp;amp;amp;”. Wait about 30 minutes. If the new&lt;br /&gt;
.gdmaout file ends with the CPU runtime, then it is done. Now type&lt;br /&gt;
“poledit.x moleculeMP2sp.gdmaout” then type “1” at the&lt;br /&gt;
options prompt. Press enter a couple times. This should have&lt;br /&gt;
generated moleculeMP2sp.key and moleculeMP2sp.xyz. The&lt;br /&gt;
moleculeMP2sp.key is not a key file, but contains TINKER format&lt;br /&gt;
atomic multipoles for use in creating a new parameter file. To&lt;br /&gt;
prevent confusion, rename this file  moleculeMP2sp.mpole.&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;(&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;see&lt;br /&gt;
Appendix 1: How does amoeba.prm formatting&amp;lt;/SPAN&amp;gt; work?)&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=5&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;Parameter&lt;br /&gt;
	File Editing Part 1a: Open up amoeba.prm for editing. First, you&lt;br /&gt;
	need to create a new atom type for each atom in your molecule.&amp;lt;/SPAN&amp;gt;&lt;br /&gt;
	You can just append the new types to the end of the “Atom Type&lt;br /&gt;
	Definitions” section. To make things easy on yourself later, make&lt;br /&gt;
	the atom types correspond sequentially to the index numbers of the&lt;br /&gt;
	associated .xyz file. (For example, atom 1 becomes type 300, atom 2&lt;br /&gt;
	becomes type 301, and so on.) Assign each atom a preexisting class&lt;br /&gt;
	number. Multiple types can have the same class number. Just look at&lt;br /&gt;
	the preexisting atom type definitions and use an atom class number&lt;br /&gt;
	of the same species that is in a similar local environment.&lt;br /&gt;
	Alternatively, if you have some atoms in local environments that are&lt;br /&gt;
	not well defined by any Amoeba classes, you can create new classes&lt;br /&gt;
	for them. Also make sure to redefine the binding partner number for&lt;br /&gt;
	each atom. Since your molecule probably has atoms with class numbers&lt;br /&gt;
	that are not usually connected in amoeba.prm, you will need to&lt;br /&gt;
	create new definitions for bond, angle, and torsion parameters at&lt;br /&gt;
	the very least. You may also need to define new opbend parameters&lt;br /&gt;
	for ring systems. You also need to redefine the ideal bond lengths&lt;br /&gt;
	and bond angles, since the Gaussian quantum calculations gave you an&lt;br /&gt;
	.xyz file with optimized coordinates. Use your favorite&lt;br /&gt;
	visualization program (e.g. PyMol) and measure all bond lengths and&lt;br /&gt;
	bond angles. Rewrite these values into the corresponding sections of&lt;br /&gt;
	amoeba.prm, averaging multiple values for the same class. If you&lt;br /&gt;
	have created any new classes, you will also need to make new vdw&lt;br /&gt;
	parameters for each new class. To get all these new parameters, you&lt;br /&gt;
	can just copy/paste from other definitions in amoeba.prm and then&lt;br /&gt;
	rewrite the atom class connectivity, assuming there are some&lt;br /&gt;
	preexisting definitions that are relatively similar to the situation&lt;br /&gt;
	you are defining. If amoeba.prm doesn&#039;t have any entries in a given&lt;br /&gt;
	section that are close enough to one of your atomic environments,&lt;br /&gt;
	you can take paramters from mm3.prm, which has a more extensive list&lt;br /&gt;
	of atomic environments. However, if you use mm3.prm parameters, you&lt;br /&gt;
	need to convert the k constant for bond length, angle, and torsion&lt;br /&gt;
	by multiplying by a factor of 71.94.  Next, you need to modify the&lt;br /&gt;
	“Polarization” section. Unlike the other parameters you have&lt;br /&gt;
	modified, polarization is defined in terms of atom type, not class.&lt;br /&gt;
	Thus you need to make a new entry for each of the atoms in your&lt;br /&gt;
	molecule. Like before, you can just copy/paste polarization&lt;br /&gt;
	constants from elsewhere in amoeba.prm or mm3.prm. You also need to&lt;br /&gt;
	define connectivity of each atoms. If your molecule is less than&lt;br /&gt;
	about 15 atoms, just list the type numbers of every atom that each&lt;br /&gt;
	atom is connected to (for now, each new type number corresponds to a&lt;br /&gt;
	single atom, even if you have multiple similar atoms.) However, if&lt;br /&gt;
	you have a larger molecule, you need to split up the molecule into&lt;br /&gt;
	polarization groups, each with less than 15 atoms. In amoeba.prm,&lt;br /&gt;
	this is done by omitting the connections (just in the “Polarization”&lt;br /&gt;
	section) between atoms and all of their binding partners that are in&lt;br /&gt;
	different polarization groups. Thus, if atom type “100” is&lt;br /&gt;
	connected to atom type “101”, but “101” is in a different&lt;br /&gt;
	polarization group, you would leave out that connectivity in both&lt;br /&gt;
	atoms&#039; polarization definitions.&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;OL START=5&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;OL START=6&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;Parameter&lt;br /&gt;
	File Editing Part 1b: Now you are ready to define new multipoles for&lt;br /&gt;
	each new atom type. These were generated by poledit.x and named&lt;br /&gt;
	moleculeMP2sp.mpole at the end of step 4. Since the atom type&lt;br /&gt;
	numbers in moleculeMP2sp.mpole are just the index numbers of the&lt;br /&gt;
	.xyz file (starting at 1), you need to change them to your new atom&lt;br /&gt;
	type numbers. You can do it manually, or use indexmpole.pl. Let us&lt;br /&gt;
	say that the atom of index number “1” in molecule.xyz&lt;br /&gt;
	corresponds to atom type number “287” in the modified&lt;br /&gt;
	amoeba.prm. To use the script, type “indexmpole.pl &lt;br /&gt;
	moleculeMP2sp.mpole 287 &amp;amp;gt;  moleculeMP2sp-index.mpole”. This&lt;br /&gt;
	will copy moleculeMP2sp.mpole into moleculeMP2sp-index.mpole, but&lt;br /&gt;
	will offset the type numbers to the correct numbers for use in your&lt;br /&gt;
	new amoeba.prm. For this to work right, the new atom type numbers&lt;br /&gt;
	must be sequential (the script simply adds a user-defined number to&lt;br /&gt;
	each atom type/index number). Now you can just open up&lt;br /&gt;
	moleculeMP2sp-index.mpole and copy/paste directly into amoeba.prm at&lt;br /&gt;
	the end of the preexisting “Atomic Multipole Parameters”&lt;br /&gt;
	section.&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=7&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;Analyze&lt;br /&gt;
	Check: To make sure you did everything right, you will run analyze.x&lt;br /&gt;
	using your new parameter file. Before doing this, you need to change&lt;br /&gt;
	the atom type definitions in moleculeMP2sp.xyz to your own type&lt;br /&gt;
	numbers. Because Perl is awesome, you can use a script to do this.&lt;br /&gt;
	Assuming (for example) that your new type numbers start at type&lt;br /&gt;
	“287”,  type “indexyz.pl  moleculeMP2sp.xyz 287&amp;lt;/SPAN&amp;gt; &amp;amp;gt;&lt;br /&gt;
	&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;moleculeMP2sp-index.xyz&amp;lt;/SPAN&amp;gt;”.&lt;br /&gt;
	Then create &amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;moleculeMP2sp-index.key&amp;lt;/SPAN&amp;gt;&lt;br /&gt;
	that points to your modified amoeba.prm. Your *.key file for the&lt;br /&gt;
	analysis needs to have this term somewhere in the body:&lt;br /&gt;
	“polarizeterm NONE”. This will turn off polarization so you can&lt;br /&gt;
	accurately compare the output with your *.log file from before. Now&lt;br /&gt;
	you can run TINKER&#039;s analyze.x on &amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;moleculeMP2sp-index.xyz&lt;br /&gt;
	using the new amoeba.prm. Type “analyze.x moleculeMP2sp-index.xyz&lt;br /&gt;
	-k moleculeMP2sp-index.key EM”. Look at the “Total Electric&lt;br /&gt;
	Charge” on the output. If you have a neutral molecule, this should&lt;br /&gt;
	be very near to 0. Open up moleculeMP2sp.log and scroll down to the&lt;br /&gt;
	bottom of the file. Check and see if the dipoles and dipole moment&lt;br /&gt;
	magnitude generated by g03 in the .log file are the same as those&lt;br /&gt;
	generated by TINKER in the analyze.x output. If they are the same or&lt;br /&gt;
	very nearly the same, you can proceed to step 8.&amp;lt;/SPAN&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=8&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;Remove&lt;br /&gt;
	Induced Dipole from Total Dipole: Since everything is working&lt;br /&gt;
	correctly so far, it is time to change the dipole component of the&lt;br /&gt;
	multipole parameters such that only the permanent dipoles contribute&lt;br /&gt;
	to the magnitudes of the dipole directions. So far, the dipole&lt;br /&gt;
	moments of your atoms, which were calculated by Gaussian, have&lt;br /&gt;
	consisted of a sum of induced and permanent dipole factors (Gaussian&lt;br /&gt;
	does not know the difference). This has been OK so far because you&lt;br /&gt;
	turned off polarization in moleculeMP2sp-index.key (in step 7).&lt;br /&gt;
	Since you want TINKER to be able to calculate new induced dipole&lt;br /&gt;
	moments from intermolecular interactions, you need to remove this&lt;br /&gt;
	extra component from the amoeba.prm dipole moments before doing&lt;br /&gt;
	simulations with polarization turned back on. To do this, you will&lt;br /&gt;
	use poledit.x again. First, open up moleculeMP2sp-index.key and turn&lt;br /&gt;
	polarization back on by deleting or commenting out the line you&lt;br /&gt;
	wrote earlier that says “polarizeterm NONE”. Now create a file&lt;br /&gt;
	that looks like this:&amp;lt;/P&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
 2&lt;br /&gt;
 1mer_amideMP2sp-indx.xyz&lt;br /&gt;
 blankline&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0in; padding-bottom: 0.03in; padding-left: 0in; padding-right: 0in; font-weight: medium&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=8&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;Save&lt;br /&gt;
	the file as “molecule.poleditin”. This will be the input file&lt;br /&gt;
	for poledit.x (it will automatically select option 2 in poledit.x).&lt;br /&gt;
	Make sure that your *.key file which points to amoeba.prm has the&lt;br /&gt;
	same name as your *.xyz file (e.g. “moleculeMP2sp-index.key”) or&lt;br /&gt;
	the program will not work correctly!  Now type “poledit.x &amp;amp;lt;&lt;br /&gt;
	molecule.poleditin &amp;amp;gt; molecule.poleditout”. The contents of&lt;br /&gt;
	molecule.poleditout&amp;lt;/SPAN&amp;gt; are the output of poledit.x (multipoles&lt;br /&gt;
	with polarization terms added in).&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;9. Atom Type&lt;br /&gt;
Grouping: Now you will reduce the number of different atom types by&lt;br /&gt;
grouping some of the similar atoms in your molecule together as&lt;br /&gt;
single atom types and averaging their multipole moments. You might&lt;br /&gt;
want to make a copy of molecule.poleditout before you edit it. Look&lt;br /&gt;
at your molecule and identify which atoms look like they are in&lt;br /&gt;
essentially identical environments (they must at least be in the same&lt;br /&gt;
class!). Open up molecule.poleditout which was generated by poledit.x&lt;br /&gt;
in step 8. Look at the multipole moments for the atoms you suspect&lt;br /&gt;
are similar. If the numbers are fairly close (within 0.1), then you&lt;br /&gt;
can probably label them as the same type number. However, the atoms&lt;br /&gt;
defining the X and Z axes must also be the same. Let&#039;s say that you&lt;br /&gt;
want to group type 1 and type 2 into a single type. If their&lt;br /&gt;
multipoles are going to be described by a single entry in the&lt;br /&gt;
amoeba.prm, then the axes of both atoms must be defined by the same&lt;br /&gt;
atom types. That is, if atom type 1 axes are defined by atom types&lt;br /&gt;
(5, 6),  and atom type 2 axes are defined by atom types (7,8), then&lt;br /&gt;
types 5 and 7 must also become the same type, and types 6 and 8 must&lt;br /&gt;
become the same type. If it is not possible to make the atoms&lt;br /&gt;
defining their axes the same type (they are connected to different&lt;br /&gt;
kinds of atoms), then you cannot group them together. For each group&lt;br /&gt;
of atoms that you wish to assign to the same type, just overwrite the&lt;br /&gt;
atom  numbers in the multipole moments  file molecule.poleditout with&lt;br /&gt;
the same type number. To keep things simpler, just use the lowest&lt;br /&gt;
type number in the group for all the atoms. &amp;lt;B&amp;gt;It&#039;s OK if you end up&lt;br /&gt;
having gaps in the sequence of  numbers. &amp;lt;/B&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt;10.&lt;br /&gt;
Atom Type Averaging: Now that you have eliminated some atom types by&lt;br /&gt;
grouping, you need to delete all the instances of those unused atom&lt;br /&gt;
types in amoeba.prm. This includes changing the connectivity numbers&lt;br /&gt;
in the “Polarizability Parameters” section to atom types that&lt;br /&gt;
have not been deleted. Using your edited molecule.poleditout file&lt;br /&gt;
with the same number of multipole entries but a lesser number&amp;lt;/SPAN&amp;gt;&lt;br /&gt;
of different atom types, you can average the multipole moments of&lt;br /&gt;
identical atom types using a script. For example, say that you want&lt;br /&gt;
the lowest atom type number (corresponding to type “1” in&lt;br /&gt;
molecule.poleditout) to be type&amp;lt;SPAN STYLE=&amp;quot;font-weight: medium&amp;quot;&amp;gt; 287&lt;br /&gt;
in your .prm file. If your molecule is, say, 2 atoms big, then the&lt;br /&gt;
range would be 287 288. Since our molecule is 31 atoms big, it is 287&lt;br /&gt;
317.  Type “avgmpoles.pl  molecule.poleditout 287 317 &amp;amp;gt;&lt;br /&gt;
AVGmolecule.poleditout ”. This will&amp;lt;/SPAN&amp;gt; output a file with&lt;br /&gt;
multipoles averaged over identical type numbers and indexed to the&lt;br /&gt;
correct range. Most likely, there will be gaps in the sequence of&lt;br /&gt;
numbers, but that doesn&#039;t matter. You can now copy/paste these into&lt;br /&gt;
amoeba.prm. Double check to make sure that none of the multipole axis&lt;br /&gt;
types are numbers that you deleted from the amoeba.prm file. If there&lt;br /&gt;
are, change them to the atom type number that represents that group&lt;br /&gt;
which was not deleted.&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;OL START=7&amp;gt;&lt;br /&gt;
	&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt; &lt;br /&gt;
	&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=CENTER STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=4 STYLE=&amp;quot;font-size: 16pt&amp;quot;&amp;gt;Appendix&lt;br /&gt;
1: How does amoeba.prm formatting work?&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;	In&lt;br /&gt;
amoeba.prm, there are atom types and atom classes. Atom types are&lt;br /&gt;
more specific (there are more types than classes). Multipoles and&lt;br /&gt;
polarization parameters are defined for each atom type. All other&lt;br /&gt;
paramteters are defined for entire classes. Below, you can find the&lt;br /&gt;
format for each section.&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Atom Type&lt;br /&gt;
Definitions:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Type#&lt;br /&gt;
   Class#    Element     &amp;amp;quot;Description&amp;amp;quot;       Atomic#     &lt;br /&gt;
Mass    ConnectedAtoms#&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Van der&lt;br /&gt;
Waals Parameters:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Class#&lt;br /&gt;
         EnergyWellDepth     ?&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Bond&lt;br /&gt;
Stretching Parameters:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Class#1&lt;br /&gt;
  Class#2         ForceConstant(k)     IdealLength&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Angle&lt;br /&gt;
Bending Parameters:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Class#1&lt;br /&gt;
  Class#2   Class#3     (k)     IdealAngle&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Torsional&lt;br /&gt;
Paramters:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Class#1&lt;br /&gt;
Class#2 Class#3 Class#4  (k)  CisOrTrans Term#1 (then two more&lt;br /&gt;
similar terms)&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Atomic&lt;br /&gt;
Multipole Parameters:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Type#&lt;br /&gt;
  XaxisType#   ZaxisType#                charge&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;       &lt;br /&gt;
                               &amp;lt;FONT SIZE=3&amp;gt;			dipoleX   Y         Z&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;       &lt;br /&gt;
                              &amp;lt;FONT SIZE=3&amp;gt;			multipoleXX&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;       &lt;br /&gt;
                               &amp;lt;FONT SIZE=3&amp;gt;			YX          YZ&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;       &lt;br /&gt;
                               &amp;lt;FONT SIZE=3&amp;gt;			ZX           ZY     &lt;br /&gt;
ZZ  &amp;lt;/FONT&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;&amp;lt;B&amp;gt;Dipole&lt;br /&gt;
Polarizability Parameters:&amp;lt;/B&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;FONT SIZE=3&amp;gt;Type#&lt;br /&gt;
              Polarizability        ConnectedAtomType#&#039;s(in same&lt;br /&gt;
polarization group)&amp;lt;/FONT&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=LEFT STYLE=&amp;quot;margin-bottom: 0in; font-weight: medium&amp;quot;&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA_Force_Field&amp;diff=2097</id>
		<title>Research:AMOEBA Force Field</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA_Force_Field&amp;diff=2097"/>
		<updated>2025-04-21T23:11:51Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Amoeba ==&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research:amoeba_par_tut|A Tutorial on Amoeba Parameterization Procedure]]&lt;br /&gt;
*[[Research:amoeba_reference frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
*[[Research:amoeba_amber_free|A Tutorial on amoeba free energy simulation with amber ]]&lt;br /&gt;
*[[Research:amoeba_ligand_par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
*[[Research:Typer|Typer]]: Used to parameterize VDW and internal geometry&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Logs:parameterization&amp;diff=2096</id>
		<title>Logs:parameterization</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Logs:parameterization&amp;diff=2096"/>
		<updated>2025-04-21T23:11:06Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The external webpage that describes the usage of [http://water.bme.utexas.edu/wiki/index.php/Software:autoparm poltype.py] is on water.&lt;br /&gt;
&lt;br /&gt;
== Issues/Feature Requests ==&lt;br /&gt;
&lt;br /&gt;
*Add pi-tors term to NH2 (i.e. propanamide) &lt;br /&gt;
**Adenine example http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=190 &lt;br /&gt;
*Default opbendunit to TINKER 5 format&lt;br /&gt;
**[[Talk:Logs:parameterization]]&lt;br /&gt;
**Add opbend v4 option&lt;br /&gt;
*Add biotypes to parameters&lt;br /&gt;
*Issues with [http://water.bme.utexas.edu/wiki/index.php/Software:autoparm2 1P1O]&lt;br /&gt;
&lt;br /&gt;
=== OP Bend ===&lt;br /&gt;
&lt;br /&gt;
*Differences between the opbend terms from poltype and amides from amoeba &#039;09 parameters &lt;br /&gt;
*Main difference is for CO - N &lt;br /&gt;
*First number is from poltype. Numbers in parantheses are from AMOEBA &#039;09 small molecules and AMOEBA_BIO &#039;09)&lt;br /&gt;
&lt;br /&gt;
 # CH3 CO&lt;br /&gt;
 opbend    401   403     0     0    14.402 (same, N/A)&lt;br /&gt;
 # CO N&lt;br /&gt;
 opbend    403   404     0     0    71.940 (12.9, 70.5)&lt;br /&gt;
 # N CO&lt;br /&gt;
 opbend    404   403     0     0   107.910 (same, same)&lt;br /&gt;
 # O CO&lt;br /&gt;
 opbend    407   403     0     0   122.298 (46.8, 54.0)&lt;br /&gt;
 # H N&lt;br /&gt;
 opbend    408   404     0     0     5.755 ( 5.8, 12.9)&lt;br /&gt;
&lt;br /&gt;
=== Updated polarizabilities&amp;lt;br&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
The third column is polarizablity; and the fourth one is vdW, if different with current amoeba.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; width=&amp;quot;60%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
| O- (in COO-)&amp;lt;br&amp;gt;&lt;br /&gt;
| 1.600&amp;lt;br&amp;gt;&lt;br /&gt;
| 3.700/0.1290&amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
| S- (in R-S-)&amp;lt;br&amp;gt;&lt;br /&gt;
| 4.000&amp;lt;br&amp;gt;&lt;br /&gt;
| 4.200/0.3550&amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
| N(aromatic HIS)&amp;lt;br&amp;gt;&lt;br /&gt;
| 1.500&amp;lt;br&amp;gt;&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
| C(aromatic HIS &amp;amp;amp; COO-)&amp;lt;br&amp;gt;&lt;br /&gt;
| 1.750&amp;lt;br&amp;gt;&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
| H(aromatic HIS)&amp;lt;br&amp;gt;&lt;br /&gt;
| 0.696&amp;lt;br&amp;gt;&lt;br /&gt;
| &amp;lt;br&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Parameterization==&lt;br /&gt;
*Bisector: set XZ component of quadrupole to 0&lt;br /&gt;
*Use parameters from /home/pren/AMOEBA&lt;br /&gt;
**amoeba_v2_new.prm&lt;br /&gt;
**amoeba_2009_ver4.prm.isoprop&lt;br /&gt;
*If all opbend angles for atom X of minimized structure &amp;gt; 4 degrees, remove opbend parameters and set equilibrium angles around atom to 110 degrees&lt;br /&gt;
**Confirm with Jenny if &amp;quot;4 degrees&amp;quot; and &amp;quot;110 degrees&amp;quot; are correct.&lt;br /&gt;
*Set opbend force constant according to amoeba.prm&lt;br /&gt;
**1.7 for carbonyl C=O, C-C(O), and -N-C=O (amide)&lt;br /&gt;
**~0.6-0.7 for alkane C?&lt;br /&gt;
**Add opbend to nitromethane-like groups&lt;br /&gt;
*Remove pi-torsion param for C-C=C-C and increase torsion to 5.5 from 4.5&lt;br /&gt;
*quadrupole scaling on OH in alcohol (-Csp3-OH)&lt;br /&gt;
**Use [http://water.bme.utexas.edu/wiki/index.php/Software:parmnote#GDMA_input GDMA Input]&lt;br /&gt;
**Scale by 70% if gdma v2.2 procedure is used&lt;br /&gt;
**Scale by 60% if gdma v1.2 or 1.3 is used (switch=0 and H radius 0.65)&lt;br /&gt;
*Classify terminal atoms that are the same element together&lt;br /&gt;
**Check Gaussian MBO (bond order to get accurate valence info)&lt;br /&gt;
*Torsion&lt;br /&gt;
**Minimize with HF/6-31G8 or M06L&lt;br /&gt;
**SP using DFT with ML06 functional (in G09)&lt;br /&gt;
**Methyl group torsion 0.299&lt;br /&gt;
**Only single bonds with heavy atoms&lt;br /&gt;
*Plot phase angle without torsion parameters&lt;br /&gt;
*DFT vs HF optimization? Which is better?&lt;br /&gt;
*Modify polarizability for imidazole N and C (based on Jenny&#039;s findings)&lt;br /&gt;
*New functional groups&lt;br /&gt;
**fit_struct (run with MP2/6-31++G(2d,2p)&lt;br /&gt;
***bond, angle, opbend&lt;br /&gt;
**polarizability (pol-eps = 0.000001)&lt;br /&gt;
**vdw (compare distance, dimer/interaction energy)&lt;br /&gt;
***To calculate dimer energy from Gaussian output:&lt;br /&gt;
****BSSE Corrected Dimer energy = (1 - 2 - 3) * 621.5095     # Constant to convert HF to kcal/mol&lt;br /&gt;
****Non-BSSE Corrected Dimer energy = (1 - 4 - 5) * 621.5095&lt;br /&gt;
****Values 1, 2, 3, 4, 5 are taken by grepping EUMP2 from Gaussian logfile&lt;br /&gt;
****Take the EUMP2 values from the 5 lines&lt;br /&gt;
****Compare BSSE corrected and non-corrected&lt;br /&gt;
****Try to get somewhere in between&lt;br /&gt;
*Add option for Freq for DMA QM&lt;br /&gt;
*Fix QM torsion for all heavy atoms&lt;br /&gt;
*Generate torsion conformations with AMOEBA rather than QM (add option)&lt;br /&gt;
&lt;br /&gt;
===Status===&lt;br /&gt;
*What value to use for alkane? 0.6 or 0.7?&lt;br /&gt;
*Question: Amide opbend values don&#039;t match.&lt;br /&gt;
**/home/pren/AMOEBA/amoeba_v2_new.prm&lt;br /&gt;
**Values we discussed 1.7&lt;br /&gt;
&lt;br /&gt;
==Validation==&lt;br /&gt;
*Calculate molecular polarizability: B3LYP/6-311++G(2d,2p)&lt;br /&gt;
*Water-compound Dimer Energy&lt;br /&gt;
**Opt: MP2/6-31++G(2d,2p)&lt;br /&gt;
**SP:  MP2/aug-cc-pVTZ &amp;amp; Counterpoise 1,1,1,1,1,1 (using Q-chem/RI TRIM)&lt;br /&gt;
**Use to modify some vdW parameters&lt;br /&gt;
**nitro - water: find O -- H distance, and angle&lt;br /&gt;
*Run QM of nitro as N-O bond distance changes&lt;br /&gt;
**Explore changes in multipoles&lt;br /&gt;
*Run QM with Q-Chem (rimp2)&lt;br /&gt;
&lt;br /&gt;
=Bugs/Feature request=&lt;br /&gt;
*Convert Tinker 5 to Tinker 4&lt;br /&gt;
&lt;br /&gt;
=Paper #1=&lt;br /&gt;
==Method==&lt;br /&gt;
*Parametrization: Run HF/6-31G* opt, single point MP2/6-311G** -&amp;amp;gt; GDMA (polgrp, average/symm) -&amp;amp;gt; ESP of&amp;amp;nbsp; MP2/6-311++G(2d2p)&lt;br /&gt;
*Assign all other valence, vdw, polarizability, ...&lt;br /&gt;
*High-level QM data for dimers/complexes (RI-MP2/aug-cc-pvtz -pvdz)&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
===DFT vs. MP2===&lt;br /&gt;
*Molecule/water dimer energy&lt;br /&gt;
*Torsion energy&lt;br /&gt;
*Geometry?&lt;br /&gt;
*(w/ ~10-20 molecules)&lt;br /&gt;
===AMOEBA vs. DFT===&lt;br /&gt;
*Based on DFT vs. MP2 findings&lt;br /&gt;
====Monomer====&lt;br /&gt;
*Vibrational frequency&lt;br /&gt;
*Dipole moment (using different conformations)&lt;br /&gt;
*ESP&lt;br /&gt;
*Geometry (RMSD)&lt;br /&gt;
====Hetero Dimer w/ water====&lt;br /&gt;
*Energy&lt;br /&gt;
*Structure&lt;br /&gt;
*QM:MP/6-31+G* opt and MP2/aug-cc-pvtz for dimerization energy all the *other (validation): DFT/B3LYP 6-31G* opt and dimer energy&lt;br /&gt;
*Correlation w/ solvation energy&lt;br /&gt;
&lt;br /&gt;
===Solvation Free Energy===&lt;br /&gt;
*Choose 5/20 molecules which should agree with fixed-charge FF and some that should showcase strenght of AMOEBA FF.&lt;br /&gt;
&lt;br /&gt;
=Done=&lt;br /&gt;
*Implement symmetry class assignment in Python&lt;br /&gt;
*Implement atom type assignment based on SMARTS string&lt;br /&gt;
*Implemented opbend framework ([[User:Jwu|Jwu]] 05:05, 29 June 2010 (UTC))&lt;br /&gt;
**Added opbend values from amoeba_v2_new.prm ([[User:Jwu|Jwu]] 22:09, 9 July 2010 (UTC))&lt;br /&gt;
**Re-implemented opbend to use values ([[User:Jwu|Jwu]] 22:10, 6 July 2010 (UTC))&lt;br /&gt;
*Match polarization group class ID with multipole class IDs&lt;br /&gt;
*print/check bond, angle and torsion deviations ([[User:Jwu|Jwu]] 03:58, 12 March 2010 (UTC))&lt;br /&gt;
*select ~ 200 molecules &lt;br /&gt;
*From Rizzo Supplementary Info:&lt;br /&gt;
*#1040&lt;br /&gt;
*#1014&lt;br /&gt;
*#1018&lt;br /&gt;
*#1019&lt;br /&gt;
*Describe Babel instructions ([[User:Jwu|Jwu]] 22:31, 9 March 2010 (UTC))&lt;br /&gt;
*Remove duplicate multipoles ([[User:Jwu|Jwu]] 22:33, 10 March 2010 (UTC))&lt;br /&gt;
*Geometry: RMSD AMOEBA vs. QM ([[User:Jwu|Jwu]] 03:57, 12 March 2010 (UTC))&lt;br /&gt;
*Check polarization groups ([[User:Jwu|Jwu]] 07:40, 12 March 2010 (UTC))&lt;br /&gt;
**Alcohol (-C-OH)&lt;br /&gt;
**(-C-NH2)&lt;br /&gt;
**Benzene ring w/ CH2 (-CH2-c1ccccc1)&lt;br /&gt;
**Phenol (-c1ccccc1(-OH)&lt;br /&gt;
**(-CH2-C(=O)-NH2)&lt;br /&gt;
*Check electrostatics ([[User:Jwu|Jwu]] 20:25, 12 March 2010 (UTC))&lt;br /&gt;
**net charges (0  or -1, +1...)&lt;br /&gt;
**dipole and quadrupole&lt;br /&gt;
**ESP&lt;br /&gt;
*minimize your molecule and compare to the Qm structure. RMSD should be small ([[User:Jwu|Jwu]] 20:25, 12 March 2010 (UTC))&lt;br /&gt;
*Run QM for set of molecules ([[User:Jwu|Jwu]] 16:41, 17 March 2010 (UTC))&lt;br /&gt;
**Copy correct SDF files and generate load-balanced scripts to run QM&lt;br /&gt;
**Modify poltype to run QM only ([[User:Jwu|Jwu]] 20:20, 15 March 2010 (UTC))&lt;br /&gt;
**Install babel 2.2.3 and python bindings on TI3d cluster (ddfe) ([[User:Jwu|Jwu]] 20:20, 15 March 2010 (UTC))&lt;br /&gt;
*QM method ([[User:Jwu|Jwu]] 21:01, 21 June 2010 (UTC))&lt;br /&gt;
**Perform GDMA on MP2/6-311G** to get charge&lt;br /&gt;
**minimize ESP RMSD to MP2/6-311++G(2d,2p) (or Aug-CC-pVTZ) to get dipole, quadropole&lt;br /&gt;
*Check for amide (OCN), acetic (OCC) to recognize polarization groups&lt;br /&gt;
*Scale amine quadrupoles ([[User:Jwu|Jwu]] 03:51, 1 December 2011 (UTC))&lt;br /&gt;
*Use ESP convergence (0.5) ([[User:Jwu|Jwu]] 03:51, 1 December 2011 (UTC))&lt;br /&gt;
*Polarization group of functional group should include adjacent SP3 carbon ([[User:Jwu|Jwu]] 03:51, 1 December 2011 (UTC))&lt;br /&gt;
*Explain how aromatic carbons are found in Babel on water site ([[User:Jwu|Jwu]] 04:51, 1 December 2011 (UTC))&lt;br /&gt;
*Explain how charge multiplicity can be changed in SDF file on water site ([[User:Jwu|Jwu]] 04:51, 1 December 2011 (UTC))&lt;br /&gt;
*Explain in docs, what are from database (and how it can be expanded), and what will be computed. ([[User:Jwu|Jwu]] 05:07, 1 December 2011 (UTC))&lt;br /&gt;
**How are bond orders determined &lt;br /&gt;
***single vs double bonds &lt;br /&gt;
***aromatic C &lt;br /&gt;
***What are aromatic C information for? &lt;br /&gt;
&lt;br /&gt;
=Notes/Misc.=&lt;br /&gt;
*In amoebapro4.prm, header “opbendunit 0.02191418”, so actual force constant is “smaller” than amobeabiov4.prm &lt;br /&gt;
*amobeabiov4.prm (doesn’t have the opbendunit in the header)&lt;br /&gt;
**Uses the default: 1/radian^2, where radian =57.29&lt;br /&gt;
**opbend_force_in_prm= actual_opbend_force_used* (radian**2/opbunit)&lt;br /&gt;
**opbendunit is 0.02191418 instead of 1/57.3^2 (when not defined the opbendunit in the header)&lt;br /&gt;
**Force constant in prm should be smaller by 71.9&lt;br /&gt;
**Can’t mix parameters from the amoebapro4.prm and amoebbiov4.prm right now&lt;br /&gt;
**amber handles amoebapro4.prm correctly, but need to check the amobeabiov4.prm&lt;br /&gt;
&lt;br /&gt;
==Paper #2==&lt;br /&gt;
Solvation&lt;br /&gt;
*HFE energy &amp;amp;gt;50 molecules?&lt;br /&gt;
*Solvation energy too negative &lt;br /&gt;
**23 dimethylpyridine &lt;br /&gt;
**NN dimethylformamide &lt;br /&gt;
**diisopropylamine &lt;br /&gt;
**4 methoxyacetophenone &lt;br /&gt;
**2 ethoxyethanol &lt;br /&gt;
**propanone &lt;br /&gt;
***Test with ethanone? &lt;br /&gt;
**Notes in Dropbox:small_mol_johnny\solvation\solv-free-energy.xls&lt;br /&gt;
&lt;br /&gt;
==Paper #3, etc.==&lt;br /&gt;
Solvation with octane (LogP)&lt;br /&gt;
&lt;br /&gt;
=Links=&lt;br /&gt;
*[[Research:Typer]]&lt;br /&gt;
*[http://water.bme.utexas.edu/wiki/index.php/Software:parmnote Notes on parameterization]&lt;br /&gt;
*[http://water.bme.utexas.edu/wiki/index.php/Software:autoparm2 Jenny&#039;s notes on parameterization]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Typer&amp;diff=2095</id>
		<title>Research:Typer</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Typer&amp;diff=2095"/>
		<updated>2025-04-21T23:10:00Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Program Overview=&lt;br /&gt;
*Electrostatic parameters&lt;br /&gt;
**Gaussian fchk as input&lt;br /&gt;
**MOPAC2007 ESP on the grid,then fit -- is the speed much better? accuracy?&lt;br /&gt;
**transfer from fragment databases? how to merge? (bond increment) accuracy?&lt;br /&gt;
&lt;br /&gt;
*vdw and bond, angle, torsion, out of plane&lt;br /&gt;
**typer (databases growth?)&lt;br /&gt;
**refit torsion as required (if use input the profile)&lt;br /&gt;
&lt;br /&gt;
*Output&lt;br /&gt;
**tinker key file&lt;br /&gt;
**amber topology&lt;br /&gt;
&lt;br /&gt;
*standalone or web server&lt;br /&gt;
&lt;br /&gt;
=Poltype setup on Ren lab cluster=&lt;br /&gt;
*Using bash shell:&lt;br /&gt;
 source /home/wuch/gaussian-setup/.g09.bashrc&lt;br /&gt;
 export PYTHONPATH=$PYTHONPATH:/opt/software/CHEM/openbabel-2.2.3/lib/python2.5/site-packages&lt;br /&gt;
 export LD_LIBRARY_PATH=/opt/software/CHEM/openbabel-2.2.3/lib:$LD_LIBRARY_PATH&lt;br /&gt;
*Using csh/tcsh:&lt;br /&gt;
 source /home/wuch/gaussian-setup/.g09.cshrc&lt;br /&gt;
 setenv PYTHONPATH $PYTHONPATH:/opt/software/CHEM/openbabel-2.2.3/lib/python2.5/site-packages&lt;br /&gt;
 setenv LD_LIBRARY_PATH=/opt/software/CHEM/openbabel-2.2.3/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
=Advanced SDF specifications=&lt;br /&gt;
*Available here: /opt/reprints/individuals/wuch/booksctfile.pdf&lt;br /&gt;
&lt;br /&gt;
=Miscelaneous=&lt;br /&gt;
===[[Logs:parameterization|Development Page]]===&lt;br /&gt;
&lt;br /&gt;
=== Phenol Multipole Test ===&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;555&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;text-align: right;&amp;quot; | Site 1 &lt;br /&gt;
! align=&amp;quot;right&amp;quot; scope=&amp;quot;col&amp;quot; | Site 2 &lt;br /&gt;
! align=&amp;quot;right&amp;quot; scope=&amp;quot;col&amp;quot; | Norm&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 4&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 6&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 0.0165&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 3&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 7&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 0.1181&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 4&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 7&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 0.1335&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 6&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 7&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 0.1347&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 3&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 4&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 0.1675&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 3&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 6&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | 0.1727&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Image:Phenol.png|300px]]&lt;br /&gt;
&lt;br /&gt;
===special cases===&lt;br /&gt;
bisector and non-chiral Dx Dy, Qxy, Qxz, Qyz =0&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2094</id>
		<title>Research:AMOEBA</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA&amp;diff=2094"/>
		<updated>2025-04-21T23:09:24Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is next===&lt;br /&gt;
*[[Research:discussion|Discussion]]&lt;br /&gt;
===AMOEBA force field===&lt;br /&gt;
*[[Research:Typer|Typer - Automated ligand parameterization]]&lt;br /&gt;
**[[Logs:parameterization|Development Logs]]&lt;br /&gt;
*[[Research:amoeba_force_field|AMOEBA Force Field]]&lt;br /&gt;
*[[Research:EFhand|MD simulation of ca binding to EF hand]]&lt;br /&gt;
*[[Research:amoeba_ligand_par|A Tutorial on Ligand Parameterization Procedure (Oscar)]]&lt;br /&gt;
**[[Research:Potential_Tutorial|Tutorial to use the potential utility]]&lt;br /&gt;
**[[Research:amoeba_reference frame|A Tutorial on Amoeba Parameterization Procedure_About The Reference Frame]]&lt;br /&gt;
**[[Research:amoeba_par_tut|A Tutorial on Amoeba Parameterization Procedure (Old)]]&lt;br /&gt;
*[[Reserach:amoeba_hfe|A Tutorial on automated calculations for hydration free energy of a small molecule]]&lt;br /&gt;
*[[Research:amoeba_amber_free|A Tutorial on amoeba free energy simulation with amber ]]&lt;br /&gt;
*[[Research:amber_tips|Tips of running simulation with AMBER]]&lt;br /&gt;
*[[Research:amber_tips_pr|Examples of running simulation with sander and pmemd]]&lt;br /&gt;
*[[Research:pmemd_tacc|How to install and run PMEMD on ranger]]&lt;br /&gt;
*[[Research:remd_tutorial|REMD and structural analysis tutorials]]&lt;br /&gt;
&lt;br /&gt;
===AMBER MODIFICATION===&lt;br /&gt;
*[[Research:compile_amber|Compile amber instruction]]&lt;br /&gt;
*[[Research:build_instructions_sander|New build instructions for Sander]]&lt;br /&gt;
*[[Research:condor_cluster|Running jobs on Condor cluster]]&lt;br /&gt;
*[[Research:amber_modification|AMBER software modification]]&lt;br /&gt;
*[[Research:amber_prog_tips|AMBER AMOEBA programing and usage tips]]&lt;br /&gt;
&lt;br /&gt;
===Generalized-Kirkwood Implicit Solvation===&lt;br /&gt;
*[[Research:GK_FEP_BAR|GK-FEP/BAR]]&lt;br /&gt;
&lt;br /&gt;
===AMOEBA Protein Force Field Refinement===&lt;br /&gt;
*[[Research:amoeba_dev_protocol|Current Protocol]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:DrugDesign&amp;diff=2093</id>
		<title>Research:DrugDesign</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:DrugDesign&amp;diff=2093"/>
		<updated>2025-04-21T23:08:50Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==reactive drug project==&lt;br /&gt;
[[Research:reactive_drug | reactive drug]]&lt;br /&gt;
== prepare protein and ligand ==&lt;br /&gt;
&lt;br /&gt;
Add missing residue/side chain atoms: &lt;br /&gt;
&lt;br /&gt;
**spdbview &lt;br /&gt;
**PDB2PQR can handle missing some side chain atoms&lt;br /&gt;
&lt;br /&gt;
Add hydrogen (based on pka): &lt;br /&gt;
&lt;br /&gt;
**propka/PDB2PQR http://propka.ki.ku.dk/ can handle protein charged residue. &amp;lt;span style=&amp;quot;color: #ff9900&amp;quot;&amp;gt;Is this reliable for ligand as claimed in v2.0? check a few to decide &amp;lt;/span&amp;gt;&lt;br /&gt;
**common orgnaic molecule pka: http://www.zirchrom.com/organic.htm&lt;br /&gt;
&lt;br /&gt;
Water? keep the ones in actie site or all of them if possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Chunli&#039;&#039;&#039;&#039;&#039;,how to prepare protein and ligand:&lt;br /&gt;
&lt;br /&gt;
*Check the hydrogen bond in pdb structure&lt;br /&gt;
I think it&#039;s important that you need to check hydrogen bond in the complex system. Firstly you need to read the paper that publish the structure. Most of time, in the paper, the author may tell you which residue can form hydrogen bond with ligand. So one is hydrogen bond acceptor (contain hydrogen), another is donor. &lt;br /&gt;
For example:&lt;br /&gt;
[[Image:hydrogenbond.png|500px]]    [[Image:text.png|500px]]    &lt;br /&gt;
[[File:Structural basis for the selective inhibition of JNK1 by the scaffolding protein JIP1 and SP600125.pdf]]&lt;br /&gt;
*The following are the residues can form hydrogen bond, and also we can use this to generate the hydrogen bond for amber trajectory:&lt;br /&gt;
  &lt;br /&gt;
  #-- Donors from standard amino acids&lt;br /&gt;
  donor mask :GLN@OE1&lt;br /&gt;
  donor mask :GLN@NE2&lt;br /&gt;
  donor mask :ASN@OD1&lt;br /&gt;
  donor mask :ASN@ND2&lt;br /&gt;
  donor mask :TYR@OH&lt;br /&gt;
  donor mask :ASP@OD1&lt;br /&gt;
  donor mask :ASP@OD2&lt;br /&gt;
  donor mask :GLU@OE1&lt;br /&gt;
  donor mask :GLU@OE2&lt;br /&gt;
  donor mask :SER@OG&lt;br /&gt;
  donor mask :THR@OG1&lt;br /&gt;
  donor mask :HIS@ND1&lt;br /&gt;
  donor mask :HIE@ND1&lt;br /&gt;
  donor mask :HID@NE2&lt;br /&gt;
  #-- Acceptors from standard amino acids&lt;br /&gt;
  acceptor mask  :ASN@ND2 :ASN@HD21&lt;br /&gt;
  acceptor mask  :ASN@ND2 :ASN@HD22&lt;br /&gt;
  acceptor mask  :TYR@OH  :TYR@HH&lt;br /&gt;
  acceptor mask  :GLN@NE2 :GLN@HE21&lt;br /&gt;
  acceptor mask  :GLN@NE2 :GLN@HE22&lt;br /&gt;
  acceptor mask  :TRP@NE1 :TRP@HE1&lt;br /&gt;
  acceptor mask  :LYS@NZ  :LYS@HZ1&lt;br /&gt;
  acceptor mask  :LYS@NZ  :LYS@HZ2&lt;br /&gt;
  acceptor mask  :LYS@NZ  :LYS@HZ3&lt;br /&gt;
  acceptor mask  :SER@OG  :SER@HG&lt;br /&gt;
  acceptor mask  :THR@OG1 :THR@HG1&lt;br /&gt;
  acceptor mask  :ARG@NH2 :ARG@HH21&lt;br /&gt;
  acceptor mask  :ARG@NH2 :ARG@HH22&lt;br /&gt;
  acceptor mask  :ARG@NH1 :ARG@HH11&lt;br /&gt;
  acceptor mask  :ARG@NH1 :ARG@HH12&lt;br /&gt;
  acceptor mask  :ARG@NE  :ARG@HE&lt;br /&gt;
  acceptor mask  :HIS@NE2 :HIS@HE2&lt;br /&gt;
  acceptor mask  :HIE@NE2 :HIE@HE2&lt;br /&gt;
  acceptor mask  :HID@ND1 :HID@HD1&lt;br /&gt;
  acceptor mask  :HIP@ND1,NE2 :HIP@HE2,HD1&lt;br /&gt;
*For small ligand, the author also give you some clue to add hydrogen, see the following structures:&lt;br /&gt;
[[Image:ligand1.png|500px]]    [[Image:ligand2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Identification of a new JNK inhibitor targeting the JNK-JIP interaction site.pdf]]&lt;br /&gt;
&lt;br /&gt;
[[File:The Structure of JNK3 in Complex with Small Molecule Inhibitors Structural Basis for Potency and Selectivity.pdf]]&lt;br /&gt;
&lt;br /&gt;
*Never trust any softwares that add the hydrogen, different softwares maybe add different hydrogen. Once you add the hydrogen, you also need to show them and check them manully using some softwares like VMD, Pymol, UCSF Chimera (http://www.cgl.ucsf.edu/chimera/) and so on.&lt;br /&gt;
**Softwares that can add hydrogen: &lt;br /&gt;
  UCSF Chimera (http://www.cgl.ucsf.edu/chimera/), Swiss-PdbViewer (http://spdbv.vital-it.ch/). You also can use these &lt;br /&gt;
  softwares to check hydrogen bond network.&lt;br /&gt;
** tleap and xleap in amber can add hydrogen automatically. When you load your pdb file, hydrogen can be added at the same time. &lt;br /&gt;
** protonate is another one to add hydrogen&lt;br /&gt;
    Usage: protonate [-fhkmpr] [-d datafile]&lt;br /&gt;
    [-i input-pdb-file] [-o output-pdb-file] [-l logfile]&lt;br /&gt;
    -f to force write of atoms found (debugging)&lt;br /&gt;
    -h to write ONLY hydrogens to output file&lt;br /&gt;
    -k to keep original coordinates of matched protons&lt;br /&gt;
    -m to list mismatched protons&lt;br /&gt;
    -p to print proton substitutions&lt;br /&gt;
    -r to renumber residues starting at 1&lt;br /&gt;
    -d to specify datafile (default is $AMBERHOME/dat/PROTON_INFO)&lt;br /&gt;
    -i to specify input file (default is stdin)&lt;br /&gt;
    -o to specify output file (default is stdout)&lt;br /&gt;
    -l to specify logfile (default is stderr)&lt;br /&gt;
Using tleap or xleap:&lt;br /&gt;
     source leaprc.ff03&lt;br /&gt;
     mol = loadpdb ukh.pdb&lt;br /&gt;
     savepdb mol ukh_addH.pdb OR savemol2 mol ukh_addH.mol2&lt;br /&gt;
* Add missing atoms  &lt;br /&gt;
**tleap or xleap&lt;br /&gt;
     source leaprc.ff03&lt;br /&gt;
     mol = loadpdb ukh.pdb&lt;br /&gt;
     savepdb mol ukh_addH.pdb OR savemol2 mol ukh_addH.mol2 (### have added missing atoms)&lt;br /&gt;
**Swiss-PdbViewer (http://spdbv.vital-it.ch/)&lt;br /&gt;
*Modeling missing loop&lt;br /&gt;
**UCSF Chimera (http://www.cgl.ucsf.edu/chimera/)&lt;br /&gt;
**Swiss-PdbViewer (http://spdbv.vital-it.ch/)&lt;br /&gt;
**Modeler (http://salilab.org/modeller/) and (http://biomol.bme.utexas.edu/wiki/index.php/Research:DrugDesign#Homology)&lt;br /&gt;
**MMTSB Tool Set (http://mmtsb.org/)&lt;br /&gt;
    buildModel.pl  build template-based model with loops generated by MODELLER  &lt;br /&gt;
    loopModel.pl  model loops with MODELLER  &lt;br /&gt;
    psipred.pl  predict secondary structure with PSIPRED  &lt;br /&gt;
    psiblast.pl  obtain sequence alignment with PSI-BLAST&lt;br /&gt;
*pKa calculation&lt;br /&gt;
**H++ (http://biophysics.cs.vt.edu/H++/)&lt;br /&gt;
**PDB2PQR (http://www.poissonboltzmann.org/pdb2pqr/p&lt;br /&gt;
**propka/PDB2PQR (http://propka.ki.ku.dk/)&lt;br /&gt;
*Another software that can add hydrogen for small ligand&lt;br /&gt;
**Babel in openeye&lt;br /&gt;
    usage: /opt/openeye/babel/bin/babel −in ligand.sdf −out ligand.mol2 &lt;br /&gt;
    -hydrogens Hydrogen handling: allowed values are ”add”, ”delete” and ”same” (meaning same as&lt;br /&gt;
    input).&lt;br /&gt;
**Open babel&lt;br /&gt;
   Usage: babel &amp;lt;input spec&amp;gt; &amp;lt;output spec&amp;gt; [Options]&lt;br /&gt;
   -d Delete hydrogens (make implicit)&lt;br /&gt;
   -h Add hydrogens (make explicit)&lt;br /&gt;
   -p Add Hydrogens appropriate for pH model&lt;br /&gt;
**Hermes (in Gold: http://www.ccdc.cam.ac.uk/products/life_sciences/hermes/)&lt;br /&gt;
**ADT (in Autodock: http://autodock.scripps.edu/resources/adt/index_html)&lt;br /&gt;
*You can use VIDA (/opt/openeye/vida/bin/vida) and Hermes to visualize many ligand file (10000?) at the same time.&lt;br /&gt;
&lt;br /&gt;
==Docking==&lt;br /&gt;
* [[Reference:ScoringFunction | Scoring Function Reference]]&lt;br /&gt;
&lt;br /&gt;
==LIE using gromacs==&lt;br /&gt;
* create energy groups for ligand and protein [[Research:gromacs_ndx|using make_ndx]]&lt;br /&gt;
* [[Research:gromacs_lie|LIE in GROMACS (full tutorial)]]&lt;br /&gt;
* [[Research:gromacs_lie|Lie procedure]]&lt;br /&gt;
&lt;br /&gt;
==Free energy calculations==&lt;br /&gt;
===Methods===&lt;br /&gt;
   Compare Bennett acceptance ratio and other methds for free energy calculations. &lt;br /&gt;
   Shirts and Pande [[Image:JChemPhys_122_144107.pdf|file here]] [[Image:Webster.pdf|File]]&lt;br /&gt;
===Thermodynamic integration usig GROMACS===&lt;br /&gt;
This is can be useful for disappearing a ligand or mutate one into another&lt;br /&gt;
&lt;br /&gt;
A tutorial explaining disappearing a methane molecule in water using gromacs 3: http://www.dillgroup.ucsf.edu/group/wiki/index.php?title=Free_Energy:_Tutorial#Setting_up_run_input_files &lt;br /&gt;
&lt;br /&gt;
John Fonner also use this to build polymer matrix, by scaling polymer interactions back while annealing the structure.&lt;br /&gt;
&lt;br /&gt;
Some key points:&lt;br /&gt;
&lt;br /&gt;
Assuming you have state A and B, in your case,  no nonbonded interaction between polymers -&amp;gt; full interaction&lt;br /&gt;
&lt;br /&gt;
1.	You can define state A and B in one topology file [ atoms ]section.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 [ atoms ]&lt;br /&gt;
 ;   nr       type  resnr residue  atom   cgnr     charge       mass  typeB    chargeB  massB&lt;br /&gt;
     1   opls_138      1   ALAB     CB      1      0.0       12.011   dum_138      0.000     12.011&lt;br /&gt;
     2   opls_140      1   ALAB    HB1      2      0.0        1.008   dum_140      0.000      1.008bb&lt;br /&gt;
     3   opls_140      1   ALAB    HB2      3      0.0        1.008   dum_140      0.000      1.008&lt;br /&gt;
     4   opls_140      1   ALAB    HB3      4      0.0        1.008   dum_140      0.000      1.008&lt;br /&gt;
     5   opls_140      1   ALAB    HB4      5      0.0        1.008   dum_140      0.000      1.008&lt;br /&gt;
&lt;br /&gt;
Note the typeB is dummy in the methane disappearing example above. You can define the dummy in the topology file, [ atomtypes ] section or in your ffoplsaanb.itp.&lt;br /&gt;
&lt;br /&gt;
[ atomtypes ]&lt;br /&gt;
; ala&lt;br /&gt;
 opls_138    CT     12.01100    -0.240       A    3.50000e-01  2.76144e-01&lt;br /&gt;
 opls_140    HC      1.00800     0.060       A    2.50000e-01  1.25520e-01&lt;br /&gt;
 dum_138     CT     12.01100    -0.240       A    0.0          0.0&lt;br /&gt;
 dum_140     HC      1.00800     0.060       A    0.0          0.0&lt;br /&gt;
&lt;br /&gt;
If you are changing bonded interactions from A to B, see gromacs manual (v3.3) 5.7.4 Topologies for free energy calculations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	What lambda means: Utotal=(1-lamda)*Ua+lamda*Ub. So if you use dummy for state A and real vdw and charge for state B, at lamda=0 there will be no interaction. At lamda=1, there will be full interaction.&lt;br /&gt;
&lt;br /&gt;
3.	As pointed by the methane tutorial, it is best to set delta_lamda =0. This effect will allow you run minimization or MD at sepcfic lambda. The only difference between the mdp input file will be init_lambda = X, where X can be 0, 0.1, 0.2…….1&lt;br /&gt;
&lt;br /&gt;
 ; Free energy control stuff in mdp&lt;br /&gt;
 free_energy = yes &lt;br /&gt;
 init_lambda = 0.1 &lt;br /&gt;
 delta_lambda = 0 &lt;br /&gt;
 sc_alpha =0.5 &lt;br /&gt;
 sc-power =1.0 &lt;br /&gt;
 sc-sigma = 0.3&lt;br /&gt;
&lt;br /&gt;
===Implicit-solvent approach: AMBER MM-PBSA tutorials===&lt;br /&gt;
How to use MM-PBSA to re-evaluate binding energy of several snapshots from MD simulations&lt;br /&gt;
&lt;br /&gt;
 http://amber.scripps.edu/tutorial/AMBER-MM_PBSA-tutorial_v8.pdf &lt;br /&gt;
 including entropy calculaion using normal-mode&lt;br /&gt;
&lt;br /&gt;
 http://amber.scripps.edu/tutorials/advanced/tutorial3/index.htm &lt;br /&gt;
 More updated on other aspects but ignore entropy, i.e. enthalpy only)&lt;br /&gt;
&lt;br /&gt;
 Another one that discuss entropy - including a sphere around active site t save computational cost)&lt;br /&gt;
 http://www.teokem.lu.se/~ulf/Methods/mm_pbsa.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Correction when using AMBER MM-PBSA&lt;br /&gt;
*A file called nmode_com.in generated by mm_pbsa.pl need to be corrected, i.e.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;data&lt;br /&gt;
   ntx    =0,%%Here ntx=0 need to be corrected to ntx=1 to calculate the nmode&lt;br /&gt;
   ntrun  =1,   nvect   =0, &lt;br /&gt;
   drms   =0.0001, &lt;br /&gt;
   dielc  =4.0,  idiel   =0, &lt;br /&gt;
   scnb   =2.0,  scee  =1.2, &lt;br /&gt;
  &amp;amp;end&lt;br /&gt;
 END&lt;br /&gt;
&lt;br /&gt;
Chunli tips&lt;br /&gt;
    &lt;br /&gt;
----&lt;br /&gt;
  I always use amber ff99SB, amberff99 and amber03 for protein,RNA and DNA. For ligand, &lt;br /&gt;
I use gaff.But Gaussian otimization is different for  amberff99 and amber03.&lt;br /&gt;
  &lt;br /&gt;
     &lt;br /&gt;
   &#039;&#039;&#039;*For ff99SB and ff99:&#039;&#039;&#039;  &lt;br /&gt;
    &lt;br /&gt;
    Quantum chemical calculations were executed for the small ligand to deduce the atom &lt;br /&gt;
charges utilized in MD  simulations.Geometry optimization was performed on each ligand, &lt;br /&gt;
and the electrostatic  potential was calculated at the HF/6-31G(d) level using the Gaussian03 &lt;br /&gt;
program. The partial atom charges were determined using the RESP method.&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
    *&#039;&#039;&#039;For ff03:&#039;&#039;&#039;&lt;br /&gt;
       &lt;br /&gt;
    &lt;br /&gt;
    Quantum chemical calculations were executed for the ligand to deduce the atom charges utilized in MD simulations.&lt;br /&gt;
&lt;br /&gt;
Geometry optimization was performed on ligand at the HF/6-31G(d,p) level, and the electrostatic potential was calculated &lt;br /&gt;
&lt;br /&gt;
at the B3LYP/cc-pVTZ level under solvation conditions with ether (ε = 4) by the IEFPCM method using the Gaussian 03 program. &lt;br /&gt;
&lt;br /&gt;
The partial atom charges were determined using the RESP program, implemented in the AMBER9 package.&lt;br /&gt;
&lt;br /&gt;
==Autodock 4.0==&lt;br /&gt;
* The latest version of AutoDock 4.0 has been installed in /opt/autodock4-08/&lt;br /&gt;
* All the install files are in download directory.&lt;br /&gt;
** &#039;&#039;MGLTools-1.4.6-Linux-x86-Install&#039;&#039; is the ADT install file&lt;br /&gt;
** &#039;&#039;autodocksuite-4.0.1-all.tar.gz&#039;&#039; is the source code (whole package)&lt;br /&gt;
** &#039;&#039;autodocksuite-4.0.1-i86Linux2.tar.gz&#039;&#039; is the executables for Linux redhat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Directory &#039;&#039;cvs-tutorial&#039;&#039; contains the tutorial of virtual screen including scripts and documents.&lt;br /&gt;
**Please begin with UsingAutoDock4WithADT_1.4.5d.pdf if this is your first time using autodock. This tutorial uses the ADT graphical tool to perfrom docking. &lt;br /&gt;
***Some of the exercise files are in /opt/autodock4-08/cvs-tutorial/tutorial4/Results4&lt;br /&gt;
***To use adt (docking interface) and other graphical interface, add the following to your .cshrc file&lt;br /&gt;
     alias pmv /opt/autodock4-08/MGLTools-1.4.6/share/bin/pmv&lt;br /&gt;
     alias adt /opt/autodock4-08/MGLTools-1.4.6/share/bin/adt&lt;br /&gt;
     alias vision /opt/autodock4-08/MGLTools-1.4.6/share/bin/vision&lt;br /&gt;
     alias pythonsh /opt/autodock4-08/MGLTools-1.4.6/share/bin/pythonsh&lt;br /&gt;
**Virtual screen tutorial is useful for automated, high throughput screening.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Directory &#039;&#039;autodocksuite-4.0.1&#039;&#039; has the source code as well as executables for differenct platforms while directory &#039;&#039;i86Linux2&#039;&#039; only has the executables &#039;&#039;autodock4&#039;&#039; and &#039;&#039;autogrid4&#039;&#039; for Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** ADT is installed under &#039;&#039;MGLTools-1.4.6&#039;&#039;. GUI can be run by doing &#039;&#039;/opt/autodock4-08/MGLTools-1.4.6/share/bin/adt&#039;&#039;. You can add that to your alias in case you forget the whole path.&lt;br /&gt;
&lt;br /&gt;
* Everything is also available on http://autodock.scripps.edu/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* During the use of the graphical interface &amp;quot;adt&amp;quot;, be careful in exercise ten starting autogrid4 and exercise 12 starting autodock4, all the input files need to be in the current directory to run autogrid4 or autodock4, say, the *.gpf and the *.dpf. And the command to execute the above two executable files should not contain absolute path of the input files. Since they are prepared in the current directory, simply specify their file names.&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
*     The small molecule databases for Docking or Virtual Screening have been put in /opt/database directory&lt;br /&gt;
      &lt;br /&gt;
      ChemBridge: /opt/database/ChemBridge&lt;br /&gt;
      1. EXPRESS-Pick™ Database: EXPRESS-Pick October 2008.sdf  or EXPRESS-Pick October 2008.db&lt;br /&gt;
      2. KINASet Database (ATP analogue): KINASet.sdf or KINASet.db&lt;br /&gt;
      This is the same as kinaset in CHembridge/ KINASet@: New_custom_Kinaset_3D_05072007 as a sdf or db or zip file (/opt/database/chembridge/kinaset)&lt;br /&gt;
      3. NOVACore/PHARMACophore Combined Database: NCL-PCL October 2008.sdf or NCL-PCL October 2008.db&lt;br /&gt;
      4. GPCR and KINACore Library databases: GPCR September2008.zip&lt;br /&gt;
      5. FOCUSCore Library database: FocusCore_September2008.zip&lt;br /&gt;
   &lt;br /&gt;
      Diversity set (non ATP analogue)&lt;br /&gt;
&lt;br /&gt;
      6. NCI(National Cancer Institute)-diversity Set: NCI-Open_09-03.sdf.gz(/opt/database/NCI-diversity)&lt;br /&gt;
      7. Maybridge Chemical Company (England): MayBridge.sdf (/opt/database/maybridge)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* pdbbind opt/reprints/benchmark/pdbbind/all-core-10-2008.xls&lt;br /&gt;
* binding DB (Gilson)&lt;br /&gt;
&lt;br /&gt;
==Database refinement==&lt;br /&gt;
&lt;br /&gt;
* pdbbind opt/reprints/benchmark/pdbbind/all-core-10-2008.xls&lt;br /&gt;
**documentation: http://www.pdbbind.org.cn/download/pdbbind_2008_intro.pdf &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Database_jenny|Database selection]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Additional literature:&lt;br /&gt;
**3 papers in http://biomol.bme.utexas.edu/reprints/benchmark/merz/&lt;br /&gt;
&lt;br /&gt;
==Solvation energy database==&lt;br /&gt;
&lt;br /&gt;
 http://biomol.bme.utexas.edu/reprints/benchmark/solvation/&lt;br /&gt;
&lt;br /&gt;
There are probably more papers out there by Ron Levy or David Case &lt;br /&gt;
&lt;br /&gt;
The expt data are in the supplemental data  -should be useful for amoeba or coarse-grained implicit solvent model refinement.&lt;br /&gt;
More expt data from simulation papers:&lt;br /&gt;
 http://biomol.bme.utexas.edu/reprints/solvation/small-mol/&lt;br /&gt;
&lt;br /&gt;
==2d to 3d structure conversion==&lt;br /&gt;
The first thing is to convert the structure from 2D to 3D, add hydrogen and optimize.&lt;br /&gt;
1)	You can use babel to add hydrogens, generate 3D structure, and optimize. An example is in /opt/database/chembridge/DIVERSet-06/2d-3d-test/ &lt;br /&gt;
2)	Alternatively, you can use openeye software to do this. Chunli can help you with this.&lt;br /&gt;
3)	Or use my script in /op/database/sdfbatch.pl&lt;br /&gt;
&lt;br /&gt;
==Homology==&lt;br /&gt;
* How to add missing atoms or missing residues&lt;br /&gt;
1) add missing atoms&lt;br /&gt;
   a. using leap module in AMBER&lt;br /&gt;
   b. using Swiss-PdbViewer (http://spdbv.vital-it.ch/)&lt;br /&gt;
2) using Modeler to add missing residues (http://salilab.org/modeller/)&lt;br /&gt;
    &lt;br /&gt;
Often, you will encounter files in the PDB which have missing residues. Special care must be taken in this case,as &lt;br /&gt;
MODELLER only reads the ATOM and HETATM records, not the SEQRES records, and so will not handle missing residues &lt;br /&gt;
automatically. (Unfortunately PDB is not reliable enough to be able to automatically rely on SEQRES.)&lt;br /&gt;
&lt;br /&gt;
One example is PDB code 1qg8, which is missing residues 134-136 and 218-231 (see the REMARK 465 lines in the PDB file). &lt;br /&gt;
We can use Modeller to &#039;fill in&#039; these missing residues by treating the original structure (without the missing residues)&lt;br /&gt;
as a template, and building a comparative model using the full sequence.&lt;br /&gt;
&lt;br /&gt;
First, we obtain the sequence of residues with known structure:&lt;br /&gt;
&lt;br /&gt;
   # Get the sequence of the 1qg8 PDB file, and write to an alignment file&lt;br /&gt;
   code = &#039;1qg8&#039;&lt;br /&gt;
   &lt;br /&gt;
   e = environ()&lt;br /&gt;
   m = model(e, file=code)&lt;br /&gt;
   aln = alignment(e)&lt;br /&gt;
   aln.append_model(m, align_codes=code)&lt;br /&gt;
   aln.write(file=code+&#039;.seq&#039;)&lt;br /&gt;
&lt;br /&gt;
This produces a sequence file, 1qg8.seq:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;P1;1qg8&lt;br /&gt;
&lt;br /&gt;
structureX:1qg8:   2 :A: 256 :A:undefined:undefined:-1.00:-1.00&lt;br /&gt;
PKVSVIMTSYNKSDYVAKSISSILSQTFSDFELFIMDDNSNEETLNVIRPFLNDNRVRFYQSDISGVKERTEKTRYAALINQAIEMAEGEYITYATDDNIYMPDRLLKMVRELDTHPEKAVIYSAS&lt;br /&gt;
KTYHLNDIVKETVRPAAQVTWNAPCAIDHCSVMHRYSVLEKVKEKFGSYWDESPAFYRIGDARFFWRVNHFYPFYPLDEELDLNYITEFVRNLPPQRNCRELRESLKKLGMG*&lt;br /&gt;
&lt;br /&gt;
From the PDB REMARKs or SEQRES records, we know the missing residues, so now we can make an alignment between the original 1qg8 structure (as the template), with gap characters corresponding to the missing residues, and the full sequence. This we place in a new alignment file, alignment.ali:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;P1;1qg8&lt;br /&gt;
&lt;br /&gt;
structureX:1qg8:   2 :A: 256 :A:undefined:undefined:-1.00:-1.00&lt;br /&gt;
&lt;br /&gt;
PKVSVIMTSYNKSDYVAKSISSILSQTFSDFELFIMDDNSNEETLNVIRPFLNDNRVRFYQSDISGVKERTEKTRYAALINQAIEMAEGEYITYATDDNIYMPDRLLKMVRELDTHPEKAVIYSAS&lt;br /&gt;
&lt;br /&gt;
KTYHLN---DIVKETVRPAAQVTWNAPCAIDHCSVMHRYSVLEKVKEKFGSYWDESPAFYRIGDARFFWRVNHFYPFYPLDEELDLNYIT--------------EFVRNLPPQRNCRELRES&lt;br /&gt;
LKKLG&lt;br /&gt;
&lt;br /&gt;
MG*&lt;br /&gt;
&lt;br /&gt;
&amp;gt;P1;1qg8_fill&lt;br /&gt;
&lt;br /&gt;
sequence:1qg8_fill:::::::::&lt;br /&gt;
&lt;br /&gt;
PKVSVIMTSYNKSDYVAKSISSILSQTFSDFELFIMDDNSNEETLNVIRPFLNDNRVRFYQSDISGVKERTEKTRYAALINQAIEMAEGEYITYATDDNIYMPDRLLKMVRELDTHPEKAVIYSAS&lt;br /&gt;
KTYHLNENRDIVKETVRPAAQVTWNAPCAIDHCSVMHRYSVLEKVKEKFGSYWDESPAFYRIGDARFFWRVNHFYPFYPLDEELDLNYITDQSIHFQLFELEKNEFVRNLPPQRNCRELRES&lt;br /&gt;
&lt;br /&gt;
LKKLGMG*&lt;br /&gt;
&lt;br /&gt;
We can now use the standard Modeller &#039;loopmodel&#039; class to generate a model with all residues, and then to refine the loop regions:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   from modeller import *&lt;br /&gt;
   from modeller.automodel import *    # Load the automodel class&lt;br /&gt;
   &lt;br /&gt;
   log.verbose()&lt;br /&gt;
   env = environ()&lt;br /&gt;
   &lt;br /&gt;
   # directories for input atom files&lt;br /&gt;
   env.io.atom_files_directory = [&#039;.&#039;, &#039;../atom_files&#039;]&lt;br /&gt;
   &lt;br /&gt;
  a = loopmodel(env, alnfile = &#039;alignment.ali&#039;,&lt;br /&gt;
                 knowns = &#039;1qg8&#039;, sequence = &#039;1qg8_fill&#039;)&lt;br /&gt;
  a.starting_model= 1&lt;br /&gt;
  a.ending_model  = 1&lt;br /&gt;
  &lt;br /&gt;
  a.loop.starting_model = 1&lt;br /&gt;
  a.loop.ending_model   = 2&lt;br /&gt;
  a.loop.md_level       = refine.fast&lt;br /&gt;
  &lt;br /&gt;
  a.make()&lt;br /&gt;
&lt;br /&gt;
If you do not want loop refinement, simply use the automodel class rather than loopmodel, and remove the three lines which set a.loop parameters.&lt;br /&gt;
&lt;br /&gt;
Note that loop modeling will only refine the shorter of the two loops by default. You can modify the select_loop_atoms routine to refine both loops, but you are not likely to get good results with this long insertion. In this case, you should probably try to find another template for this part of the sequence, or impose secondary structure restraints if you have reason to believe the insertion is not a loop.&lt;br /&gt;
&lt;br /&gt;
(!) Because either automodel or loopmodel will build a comparative model using your input PDB as a template, potentially all of the atoms in your final model could move. If you really don&#039;t want the non-missing residues to move, you can override the select_atoms method to select only the missing residues with a script similar to:&lt;br /&gt;
&lt;br /&gt;
   from modeller import *&lt;br /&gt;
   from modeller.automodel import *    # Load the automodel class&lt;br /&gt;
   &lt;br /&gt;
   log.verbose()&lt;br /&gt;
   env = environ()&lt;br /&gt;
   &lt;br /&gt;
   # directories for input atom files&lt;br /&gt;
   env.io.atom_files_directory = [&#039;.&#039;, &#039;../atom_files&#039;]&lt;br /&gt;
   &lt;br /&gt;
  class MyModel(automodel):&lt;br /&gt;
      def select_atoms(self):&lt;br /&gt;
           return selection(self.residue_range(&#039;133&#039;, &#039;135&#039;),&lt;br /&gt;
                            self.residue_range(&#039;216&#039;, &#039;230&#039;))&lt;br /&gt;
   &lt;br /&gt;
   a = MyModel(env, alnfile = &#039;alignment.ali&#039;,&lt;br /&gt;
               knowns = &#039;1qg8&#039;, sequence = &#039;1qg8_fill&#039;)&lt;br /&gt;
   a.starting_model= 1&lt;br /&gt;
   a.ending_model  = 1&lt;br /&gt;
   &lt;br /&gt;
   a.make()&lt;br /&gt;
&lt;br /&gt;
Modeler usage:&lt;br /&gt;
   command: mod9v5 configure file&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Penetration&amp;diff=2092</id>
		<title>Research:Penetration</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Penetration&amp;diff=2092"/>
		<updated>2025-04-21T23:07:35Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;==Multipoles for monomers==  From poltype:  ~pren/poltype-1.1.3-dev/poltype.py.0.1 -s *.sdf -n 8 -m 6000MB -M 120GB --do-tor-qm-opt --espbasisset=aug-cc-pvtz &amp;amp;  Files are in:  ...  ==SAPT energy for dimer interactions==  ===SAPT2+0 methods=== ===SAPT energy data and structures===  ==CP parameter fitting==  ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Multipoles for monomers==&lt;br /&gt;
&lt;br /&gt;
From poltype:&lt;br /&gt;
 ~pren/poltype-1.1.3-dev/poltype.py.0.1 -s *.sdf -n 8 -m 6000MB -M 120GB --do-tor-qm-opt --espbasisset=aug-cc-pvtz &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Files are in:&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
==SAPT energy for dimer interactions==&lt;br /&gt;
&lt;br /&gt;
===SAPT2+0 methods===&lt;br /&gt;
===SAPT energy data and structures===&lt;br /&gt;
&lt;br /&gt;
==CP parameter fitting==&lt;br /&gt;
&lt;br /&gt;
...&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:AMOEBA_NA&amp;diff=2091</id>
		<title>Research:AMOEBA NA</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:AMOEBA_NA&amp;diff=2091"/>
		<updated>2025-04-21T23:07:01Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, haven&amp;#039;t checked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DMP- =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;Multipole&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;DMA:&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;structure? GT with Na+/water&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;basis set 6-311G** (opt, SP)&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;ESP optimize (dipole and Q)&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;9 conformations, Na+water geometry&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;aug-cc-pvQZ (OPT, ESP) QZ structure is closer to crystal&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;VALENCE&#039;&#039;&#039;:&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;valence.x&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;Using Na+water+DMP geometry&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;Basis set, cc-pvtZ&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;length/angle manual opt&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;force constant: force fit&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;valence-torsion coupling&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;Using Na+water+DMP geometry&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;Basis set, cc-pvtZ/PCM&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;Torsion/Conformation energy&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;Basis set, cc-pvtZ/PCM for opt, aug-cc-pvqz (no PCM) for energy&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial; font-size: 13px;&amp;quot;&amp;gt;Using gg, gt, tt 3 confomers to fit torsion?&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial; font-size: 13px;&amp;quot;&amp;gt;Check the complete 2-D map?&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-family: Arial; font-size: 13px;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;Water-DMP interaction energy&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;Ion-DMP interaction?&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= TMP&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;TMP multipoles, valence, torsion???&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;Water-TMP interaction&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;span style=&amp;quot;font-size: 13px; font-family: Arial;&amp;quot;&amp;gt;&#039;&#039;&#039;TMP liquid density/Hvap at 4 temperatures&#039;&#039;&#039;&amp;lt;/span&amp;gt; =&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:Reading&amp;diff=2090</id>
		<title>Research:Reading</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:Reading&amp;diff=2090"/>
		<updated>2025-04-21T23:06:11Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;=General=  &amp;#039;&amp;#039;&amp;#039;Molecular Modelling&amp;#039;&amp;#039;&amp;#039;, Principles and Pllications, Andrew Leach  &amp;#039;&amp;#039;&amp;#039;Computer simulations of liquids&amp;#039;&amp;#039;&amp;#039;, Allen &amp;amp; Tildesley  &amp;#039;&amp;#039;&amp;#039;Molecular Simulations&amp;#039;&amp;#039;&amp;#039;, Frenkel and Smit  =Free energy methods=   &amp;#039;&amp;#039;&amp;#039;Free energy Calculations&amp;#039;&amp;#039;&amp;#039;, Theory and Applications in Chemistry and bIology, Chipot and Pophorille, Springer  =MD books in dropbox = http://biomol.bme.utexas.edu/wiki/index.php/Software:Tutorials#Modeling_books_in_dropbox  https://www.dropbox.com/sh/g3myhes5y1r...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=General=&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Molecular Modelling&#039;&#039;&#039;, Principles and Pllications, Andrew Leach&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Computer simulations of liquids&#039;&#039;&#039;, Allen &amp;amp; Tildesley&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Molecular Simulations&#039;&#039;&#039;, Frenkel and Smit&lt;br /&gt;
&lt;br /&gt;
=Free energy methods=&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Free energy Calculations&#039;&#039;&#039;, Theory and Applications in Chemistry and bIology, Chipot and Pophorille, Springer&lt;br /&gt;
&lt;br /&gt;
=MD books in dropbox =&lt;br /&gt;
http://biomol.bme.utexas.edu/wiki/index.php/Software:Tutorials#Modeling_books_in_dropbox&lt;br /&gt;
&lt;br /&gt;
https://www.dropbox.com/sh/g3myhes5y1rd6sv/AAAW2FsReOuamNvVWHjqzEA9a?dl=0&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research_ex:OpenMM&amp;diff=2089</id>
		<title>Research ex:OpenMM</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research_ex:OpenMM&amp;diff=2089"/>
		<updated>2025-04-21T23:05:21Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Copied, have not edited. Already see some old links I will have to take care of.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Software site: tinker-OpenMM =&lt;br /&gt;
http://biomol.bme.utexas.edu/tinker-openmm/index.php/Main_Page&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;&#039;Theory:&#039;&#039;&#039;&amp;lt;br/&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
This relase has been designed for the calculation of protein-ligand binding free energies on a&amp;amp;nbsp; cluster of CUDA compatible GPUs. In order to allow for&amp;amp;nbsp; the efficient of use of multiple GPUs, this release includes the ability to perform independant lambda-based energy perturbation calculations that can be summed to calculate ligand binding free energy. The parameter lambda is a desciption of the strength of interaction between a ligand and its environment ( protein, water, etc.). By first calculating the free energy difference that results from&amp;amp;nbsp; the electrostatic lambda&amp;amp;nbsp; being lowered from 1 to 0, and then lowering the Van Der Waals lambda from 1 to 0, we can calculate the magnitude of the interaction between a ligand and its&amp;amp;nbsp; protein environment.&amp;amp;nbsp; This binding calculation also contains the contribution of desolvation, so this calculation&amp;amp;nbsp; of&amp;amp;nbsp; the&amp;amp;nbsp; strength of ligand-environment interaction&amp;amp;nbsp; is repeated in a ligand-water environment. This desolvation energy can be subtracted from the protein-ligand simulation energy to get the free energy of binding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Van Der Waals force utalized in this release is a modified version of a standard 14-7 equation, shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:SoftCoreVdw.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note the important feature that when lambda is one, this term is identical to the standard 14-7 equation, and that at lambda=0, the energy resulting from the Van Der Waals force is equal to zero. Since energy is a state function, the energy value at intermediate lambdas is insignificant. Since this equation is identical to a standard 14-7 interaction at lambda=1, this modified&amp;amp;nbsp; force&amp;amp;nbsp; can be used for all environmental-environmental and intraligand interactions without affecting simulation results by merely setting lambda equal to one for these interactions.&lt;br /&gt;
&lt;br /&gt;
Electrostatic lambda has been implemented by using lambda as a multiplicitive scalar to the permenant&amp;amp;nbsp; charge, dipole, quadupole and polarizability parameters of each particle. For each ligand atom, these parameters have been scaled down by a factor of lambda. At lambda=0, these particles have no associated electronic charge, and thus have a zero magnitude electrostatic force and energy.&lt;br /&gt;
&lt;br /&gt;
= Installation&amp;lt;br/&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
The softcore modified openMM Source &amp;amp;nbsp;can be obtained &amp;amp;nbsp;by running the command git clone&amp;amp;nbsp;[https://github.com/pren/openmm-amoeba.git https://github.com/pren/openmm-amoeba.git]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Environmental variables:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
enter the following environmental variable export commands into ~/.bashrc. &amp;amp;nbsp;Change prefixes to match your system.&lt;br /&gt;
&lt;br /&gt;
cuda libraries:&lt;br /&gt;
&lt;br /&gt;
 export PATH=$PATH:/usr/local/cuda-7.5/bin/&lt;br /&gt;
 export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:/usr/local/cuda-7.5/lib:$LD_LIBRARY_PATH&lt;br /&gt;
 export CUDA_HOME=/usr/local/cuda-7.5/&lt;br /&gt;
&lt;br /&gt;
openMM directories( use the same prefix as in the installation below)::&lt;br /&gt;
&lt;br /&gt;
 export LD_LIBRARY_PATH=/users/mh43854/openMMstable4/bin/lib:$LD_LIBRARY_PATH&lt;br /&gt;
 export PATH=/users/mh43854/openMMstable4/bin/:$PATH  (should be same folder as used for CMAKE_INSTALL_PREFIX in openMM make below);&lt;br /&gt;
 export OPENMM_PLUGIN_DIR=/users/mh43854/openMMstable4/bin/lib/plugins&lt;br /&gt;
 export OPENMM_CUDA_COMPILER=/usr/local/cuda-7.5/bin/nvcc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&#039;&#039;&#039;Step 1 Install openMM softcore&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Make sure to enter above environmental variables before starting. Unzip the provided openMM zip file. Make a empty build directory, and inside this build folder run&lt;br /&gt;
&lt;br /&gt;
 ccmake../openmm-amoeba-master/ &lt;br /&gt;
 press t to go into advanced options and add the -std=c++0x flag into CXX flags (need for softcore mod using tuples.Then press &#039;g&#039; to generate a makefile.&lt;br /&gt;
&lt;br /&gt;
Note that this should be done on a machine with a CUDA compatible graphics card and a CUDA installation.&amp;amp;nbsp;make sure&amp;amp;nbsp;OPENMM_BUILD_AMOEBA_CUDA_LIB,&amp;amp;nbsp;OPENMM_BUILD_AMOEBA_PLUGIN, and&amp;amp;nbsp;OPENMM_BUILD_CUDA_LIB are on, and that&amp;amp;nbsp;CUDA_TOOLKIT_ROOT_DIR points to a valid cuda ( version 7.5+) installation. Set and record the option under &amp;quot;CMAKE_INSTALL_PREFIX&amp;quot; (use it in the PATH above);&lt;br /&gt;
&lt;br /&gt;
Still inside this &amp;amp;nbsp;build folder, run&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 make install &lt;br /&gt;
 make PythonInstall (if you use python to run openmm; not required for tinker-openmm)&lt;br /&gt;
&lt;br /&gt;
=== Step 2 Make modified tinker dynamic_omm.x executable ===&lt;br /&gt;
&lt;br /&gt;
. Download tinker by running git clone [https://github.com/jayponder/tinker.git https://github.com/jayponder/tinker.git]&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;First, set the environmental CC variable to icc, and F77 to ifort. Make sure icc is in your PATH variable. First, you need to compile fftw by entering the /fftw/ folder, and running &#039;&#039;./&#039;&#039;&amp;lt;span style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;configure --prefix=/Users/ponder/tinker/fftw --enable-threads( changing the prefix to be the absolute path of the current folder&amp;lt;/span&amp;gt;&#039;&#039;&amp;amp;nbsp;&#039;&#039;, then&amp;amp;nbsp;&#039;&#039;make , &#039;&#039;then&amp;amp;nbsp;&#039;&#039;make install.&amp;amp;nbsp;&#039;&#039;The prefix options changes installation directory. It defaults to /usr/lib/, but can be changed to allow install without root access..&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;copy /make/Makefile &amp;amp;nbsp; into /source/.&amp;amp;nbsp;modify this makefile so TINKERDIR is set to the tinker home directory, uncomment the appropriate platorm( intel is advised for performance reasons, and must match the fftw set above ), and then &amp;amp;nbsp; run make.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Copy the contents of /openmm/ into source, modifying the makefile to&amp;amp;nbsp;&amp;amp;nbsp;set&amp;amp;nbsp;&#039;&#039;&#039;TINKERDIR&#039;&#039;&#039;&amp;amp;nbsp;to the base untarred directory of the &amp;amp;nbsp;softcore modified &amp;amp;nbsp;tinker( the folder that contains the /source/ folder), and&amp;amp;nbsp;&#039;&#039;&#039;OPENMMDIR&#039;&#039;&#039;&amp;amp;nbsp;to the home directory of the openMM installation, containing&amp;amp;nbsp;the bin and lib directories( this was what you set in step 1 of the installation, not the build folder you ran make inside). Uncomment the compile options corresponding to the appropriate platform( again, use iniel), and make this Makefile. modify the&amp;amp;nbsp;libs line as shown above.&amp;amp;nbsp;This should result in the creation of a dynamic_omm.x executable which is used to run tinker simulations on a GPU using CUDA, as well as executables for tinker.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;input setup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;font-family: Arial, Verdana, sans-serif;&amp;quot;&amp;gt;ligand&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
File containing a ligand in a water box should be in xyzformat( use tinker&#039;s pdbxyz for conversion if needed). To prepare a ligand parameter file, one can use Poltype( more information &amp;lt;a href=&amp;quot;[http://biomol.bme.utexas.edu/wiki/index.php/Research_ex:Poltype http://biomol.bme.utexas.edu/wiki/index.php/Research_ex:Poltype]&amp;quot;&amp;gt;here&amp;amp;lt;/a&amp;amp;gt;). This will output a key file with ligand parameters for use in the simulation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Waterbox addition&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Both the ligand alone( solvation) and ligand-protein complex(binding) simulations require the addition of a waterbox with slightly more than 1/2 the larger of the VDW and Electrostatics cutoff. Premade water boxes have been provided athttp://biomol.bme.utexas.edu/~mh43854/openmm/water_boxes/ .&lt;br /&gt;
&lt;br /&gt;
The sizes of these boxes are:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 500px;&amp;quot; cellpadding=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| box&lt;br /&gt;
| size(Angstroms)&lt;br /&gt;
|-&lt;br /&gt;
| 216water&lt;br /&gt;
| 18&lt;br /&gt;
|-&lt;br /&gt;
| 500water&lt;br /&gt;
| 24&lt;br /&gt;
|-&lt;br /&gt;
| 1600water&lt;br /&gt;
| 36&lt;br /&gt;
|-&lt;br /&gt;
| 4kwater&lt;br /&gt;
| 49&lt;br /&gt;
|-&lt;br /&gt;
| 32kwater&lt;br /&gt;
| ~100&lt;br /&gt;
|-&lt;br /&gt;
| 96kwater&lt;br /&gt;
| ~160&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If &amp;amp;nbsp;you want to create a water box of a size not included in this folder, use crystal.x from tinker, option 4 to create a larger box from one of the smaller boxes.&amp;lt;br/&amp;gt;The protein-ligand complex file also needs to be in xyz format&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:medium;&amp;quot;&amp;gt;&#039;&#039;&#039;protein-ligand complex&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To solvate the ligand ( for solvation simulations) and ligand-protein complex( for binding complexes), run xyzedit.x option 20 to soak the system inside the waterbox.&lt;br /&gt;
&lt;br /&gt;
=== solvation key file ===&lt;br /&gt;
&lt;br /&gt;
An example key file for solvation is shown below:&lt;br /&gt;
&lt;br /&gt;
parameters /users/mh43854/openeye.prm&lt;br /&gt;
&lt;br /&gt;
ligand -1 24&lt;br /&gt;
&lt;br /&gt;
vdw-lambda 1.0&lt;br /&gt;
&lt;br /&gt;
ele-lambda 0.5&lt;br /&gt;
&lt;br /&gt;
archive&lt;br /&gt;
&lt;br /&gt;
a-axis 40.000&lt;br /&gt;
&lt;br /&gt;
integrator RESPA&lt;br /&gt;
&lt;br /&gt;
ewald&lt;br /&gt;
&lt;br /&gt;
neighbor-list&lt;br /&gt;
&lt;br /&gt;
vdw-cutoff 12.0&lt;br /&gt;
&lt;br /&gt;
ewald-cutoff 8.0&lt;br /&gt;
&lt;br /&gt;
polar-eps 0.00001&lt;br /&gt;
&lt;br /&gt;
polar-predict&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;The parameters setting should be set to the appropriate AMOEBA parameter file. The ligand line should contain the starting atom of the ligand( with a &amp;quot;-&amp;quot; sign prepended to indicate range) followed by the last atom of the ligand. If multiple atom index ranges are needed to be treated as ligand( such as a multi-ligand system), just add a new set of two numbers to this line( ex. if ranges 1-24 and 50-90 are ligands, the ligand line should read ligand -1 24 -50 90).&lt;br /&gt;
&lt;br /&gt;
If using the preparation script described below, don&#039;t include vdw-lambda or ele-lambda lines( these will be added by the provided script).&lt;br /&gt;
&lt;br /&gt;
These desired parameters should be prepended to the keyfile output by poltype.&lt;br /&gt;
&lt;br /&gt;
=== binding key file ===&lt;br /&gt;
&lt;br /&gt;
The binding key file parameters are identical to the solvation keyfile except for the addition of the following lines to enable a harmonic restraint of the form k(distance-targetdistance)^2 between the ligand and its surrounding protein atoms(protein atoms in residues within a ~5Å radius of the ligand). The distanced utalized in this calculation is the distance between the centroid of the ligand and the selected protein atoms).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GROUP 1 -1 24&lt;br /&gt;
&lt;br /&gt;
GROUP 2 -25 150&lt;br /&gt;
&lt;br /&gt;
RESTRAIN-GROUPS 1 2 15.0 0&lt;br /&gt;
&lt;br /&gt;
The group lines aboce&amp;amp;nbsp; contain the group number followed by atom ranges with the same syntax as used in defining the ligand line( described under solvation key file heading). The first two numbers correspond to the group numbers to add restraints to, the next number corresponds to k, , and the last line corresponds to target distance in angstroms( most often 0).&lt;br /&gt;
&lt;br /&gt;
Note that the energy needs to be corrected on both the end and beginning points to result in accurate energies.&lt;br /&gt;
&lt;br /&gt;
For the correction going from full strength with restrain to full strength without restraint, one can either calculate this energy diffence by running extra simulations using bar, or by weaking restraint with larger Electrostatics.&lt;br /&gt;
&lt;br /&gt;
For the correction at no intermolecular interaction( going from a low entropy, high energy state to a higher entropy, lower energy state, the magnitude is equal to RT*ln(C&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;)*V&amp;lt;sub&amp;gt;1.&amp;amp;nbsp;&amp;lt;/sub&amp;gt;C&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;amp;nbsp;is standard concentration, and V&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;amp;nbsp;is the constrained volume, equal to (2piRT/k)&amp;lt;sup&amp;gt;3/.2&amp;lt;/sup&amp;gt;.&amp;lt;sub&amp;gt;&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= running simulations =&lt;br /&gt;
==ren lab nodes==&lt;br /&gt;
/users/mh43854/openMMstable2/tinker/bin contains the dynamic_omm.x executable. extension corresponds to the node number. use .205 for nodes 205 and 206, and .sugar for sugar and mars&lt;br /&gt;
&lt;br /&gt;
== environmental setup ==&lt;br /&gt;
&lt;br /&gt;
Make sure the CUDA_HOME, OPENMM_PLUGIN_DIR, and OPENMMDIR environmental variables are setup correctly( this should have been done in installation. These variables are described in installation under step 1. Note that the OPENMM_PLUGIN_DIR and OPENMMDIR will be used to select library files, so be sure these environmental variables are correct. It would be advisable to always keep the ~/.bashrc file up to date with these variables so you don&#039;t have to constantly export.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Minimize system&#039;&#039;&#039;&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: 12px;&amp;quot;&amp;gt;The system created above needs to be minimized using the minimize.x routine inside tinker.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Heat and equilibriate ==&lt;br /&gt;
&lt;br /&gt;
The systems need to be heated in order to start runs at 300K. Heating should be done for 100ps each step, increasing by 50K each step. This step should be done at NVT, with a reasonable estimate of box volume as the water box volume.&lt;br /&gt;
&lt;br /&gt;
An example heating script setup( to put in a shell script) is:&lt;br /&gt;
&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.xyz 50000 2 100 &amp;amp;nbsp;2 &amp;amp;nbsp;50 N&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.arc 50000 2 100 2 100 N&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.arc 50000 2 100 2 150 N&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.arc 50000 2 100 2 200 N&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.arc 50000 2 100 2 250 N&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.arc 50000 2 100 2 300 N&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;parameters correspond to&amp;amp;nbsp;: number of steps, step size( in fs) writeout frequency( in ps) , mode, temperature&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;the last frame of input.arc should be utalized as a start point for system equilibriation at constant pressue, which should be run for 1ns. An example script is:&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;~/bin/tinker-release/source/dynamic_omm.x input.arc 500000 2 1000 4 300 1.0 N( last option is to select &amp;amp;nbsp;pressure for equilibriation).&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;&amp;amp;nbsp;note that the .dyn file should be in the same folder( with same basename) as input to set correct particle velocities.&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;Inspection of the last frame of the output arc will contain a number on the line right after system size corresponding to the box volume to use for simulation runs.&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
== preparation of simulation filesystem ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: 12px&amp;quot;&amp;gt;A python script for the creation of the required files and folder is available here &amp;lt;/span&amp;gt;[[http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/foldercreatenodyn.py http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/foldercreatenodyn.py] . Run inside the folder you want to place simulation results in. Example usage is:&amp;amp;nbsp;&#039;&#039;Python foldercreatenodyn.py bindingkeyfile.key(described above) bindingxyz.xyz solvationkeyfile.key(described above) solvationxyz.xyz &amp;amp;nbsp;&#039;&#039;. If you have a dyn velocity file, use [http://biomol.bme.utexas.edu/%7Emh43854/openmm/scripts/foldercreatenodyn.py http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/foldercreate.py] &lt;br /&gt;
&lt;br /&gt;
To run foldercreate.py, append the dyn file to the end of each &amp;quot;block&amp;quot; of two commands. The parameter line should be an absolute( not relative) path. You do not need to include the lambda lines( these will &amp;amp;nbsp;be handled by the script). This script will make bind and solv folders, each containing subfolders with the keyfile for each simulation run.&lt;br /&gt;
&lt;br /&gt;
== running a simulation&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
select a card for the simulation by running the command &#039;&#039;export CUDA_VISIBLE_DEVICES=0&#039;&#039;. This environmental variable selects which GPU is used for this simulation. Note that GPUs are indexed starting at 0. Each GPU should only be running one simulation at a time. Running multiple simulations on a card will results in a dramatic reduction in performance.&lt;br /&gt;
&lt;br /&gt;
Simulations are run using the dynamic_omm.x executable created during tinker compilation. This program can be run as an interactive terminal( in which case, include no arguments). To run, execute the command &#039;&#039;dynamic_omm.x &amp;amp;nbsp;input.xyz 6000000( number of steps) 2.0( timestep, in fs) 5.0( write frequency, in ps) 2( cannonical, NVT ensemble) 298( temperature, in Kelvin) N.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;To ease this process, I have created a script to create .sh scripts for starting simulations. &amp;amp;nbsp;It is available at [http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/createRunScript.py http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/createRunScript.py]. To &amp;amp;nbsp; use, run python createRunScript.py&amp;amp;nbsp;&#039;&#039;number of GPUS simulationRunScript( the command described above). &#039;&#039;Note that you do not need to include the xyz line(it will automatically include prod.xyz, ,which will be created by the folder creation script above.&amp;amp;nbsp;&#039;&#039;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Calculation binding free energy using Bennet Acceptance Ratio(BAR)&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The tinker program &#039;&#039;bar&#039;&#039; is used to estimate the difference in energy between two lambda states( example, vdw-lambda=100, ele-lambda=90 to vdw-lambda=100, ele-lambda=80). To use, execute&amp;amp;nbsp; &#039;&#039;bar &#039;&#039;t&#039;&#039;rajectory1.arc 100(starting frame) 5000(ending frame) 1(step size) trajectory2.arc 100 &amp;amp;nbsp;5000 1&#039;&#039;.Note that the step size should equal 1, as this step is must faster than actually running the simulation. This program will print out the resulting energy to the terminal. The energy for this state transition is&amp;amp;nbsp; listed as BAR Free Energy Estimate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that in order to get the most commonly used metric ( negative energy difference= favorable binding ), one should use the lower lambda trajectory as state 1, and the higher&amp;amp;nbsp; as state 2.&amp;amp;nbsp; To calculate the&amp;amp;nbsp; binding free energy, subtract the sum of the solvation free energies from the sum of the binding free energies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have provided an automated script for the creation of shell scripts for bar &amp;gt;[http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/barscriptcreate.py http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/barscriptcreate.py]&amp;amp;lt;/a&amp;amp;gt;) To use, run &amp;amp;nbsp;barscriptcreate.py path/to/bar.x &amp;amp;nbsp; &amp;amp;nbsp; &#039;&#039;number of desired scripts&#039;&#039;&amp;amp;nbsp;&amp;amp;nbsp;startingframe endingframe stepsize inside the bind/ or solv/folder. The number of scripts should be the number of nodes in your server you want to use( each bar tasks takes up a whole node). simply ssh into the desired node, and run one of the scripts ( one script per node).&lt;br /&gt;
&lt;br /&gt;
A parser for bar results is available ( &amp;lt;a href=&amp;quot;[http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/readBAR.py http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/readBAR.py]&amp;quot;&amp;gt;[http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/readBAR.py http://biomol.bme.utexas.edu/~mh43854/openmm/scripts/readBAR.py]&amp;amp;lt;/a&amp;amp;gt;). It will take the output of barscriptcreate.py, and print a summery file. run inside the &amp;amp;nbsp;bind/ or solv/ folder.&amp;amp;nbsp;&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research_ex:AMOEBA_in_Amber&amp;diff=2088</id>
		<title>Research ex:AMOEBA in Amber</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research_ex:AMOEBA_in_Amber&amp;diff=2088"/>
		<updated>2025-04-21T23:03:46Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;sander and pmemd modification for ligand binding free enery calculations   = Important: read me first  =  &amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Now (as of June 2013) you can use the latest tinker (v6) and parameter files to set up the system in TINKER and then convert for amber run.&amp;#039;&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;   &amp;lt;br&amp;gt;   *If you have an spherical ion (e.g. Na+, Cl-, Mg++in the system), you may need to modify the analout (see below) to replace multip...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;sander and pmemd modification for ligand binding free enery calculations &lt;br /&gt;
&lt;br /&gt;
= Important: read me first  =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: larger;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;&#039;&#039;&#039;Now (as of June 2013) you can use the latest tinker (v6) and parameter files to set up the system in TINKER and then convert for amber run.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*If you have an spherical ion (e.g. Na+, Cl-, Mg++in the system), you may need to modify the analout (see below) to replace multipole type &amp;quot;None&amp;quot; with Z-then-X&lt;br /&gt;
&lt;br /&gt;
*If you have an octahedron box, please modify the prmtop and inpcrd generated by tinker_to_amber manually according to [[Research_ex:amber#A_Quick_Guide|Quick guide]] below&lt;br /&gt;
&lt;br /&gt;
   (will fix in the future tinker_to_amber.F90).&lt;br /&gt;
&lt;br /&gt;
*You can still use tinker v4.3 for now and download tinker 4.3 here http://dasher.wustl.edu/tinker/ &lt;br /&gt;
*The difference between v4.3 and v6 parameter format is explained here [[Research_ex:tinker |explained here]] . &lt;br /&gt;
*You can use amoeba_conv.pl to convert v5/6 key files to 4.3 compatible.&amp;amp;nbsp;&#039;&#039;&#039;amoeba_conv.pl&#039;&#039;&#039;:http://biomol.bme.utexas.edu/~yues/download/amoeba_conv.pl &lt;br /&gt;
*Distance restraint is not working with the current pmemd.amoeba (see /home/pren/pmemd-oscar/readme)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; For proteins and many small molecules, parameters in tinker 4 or 6 compatible format can be found [[Research_ex:amoeba bio|here]] &lt;br /&gt;
&lt;br /&gt;
For a new small molecule, use [[Research_ex:Poltype|POLTYPE to]] obtained tinker structure and parameter file. &lt;br /&gt;
&lt;br /&gt;
Once you have the tinker files ready, the quick guide section below explains how to convert tinker files to amber by using tinker and amber commands.&lt;br /&gt;
&lt;br /&gt;
= A guide to run AMOEBA simulation using sander or pmemd  =&lt;br /&gt;
&lt;br /&gt;
== Executables (for internal use)  ==&lt;br /&gt;
&lt;br /&gt;
Oscar&#039;s mod sander in /home/oscar/data2-oscar mod pmemd in /home/oscar/pmemd/src &lt;br /&gt;
&lt;br /&gt;
example mdin and run script files in /home/pren/AMOEBA/solvation/compare/ &lt;br /&gt;
&lt;br /&gt;
home/yues/program/amber12/bin/pmemd.amoeba &lt;br /&gt;
&lt;br /&gt;
== A Quick Guide  ==&lt;br /&gt;
&lt;br /&gt;
To run sander: &lt;br /&gt;
&lt;br /&gt;
  If you start with a PDB, pdbxyz will produce the xyz file with the matching parameters of your choice. But this PDB will not match the xyz file and can not be used for amber simulation so you will need do step 1 below. &lt;br /&gt;
&lt;br /&gt;
1. /opt/tinker/bin/xyzpdb ele.xyz &lt;br /&gt;
&lt;br /&gt;
     This produce PDB file from tinker xyz but the atoms have to be in the same order as xyz which is not always true. &lt;br /&gt;
   Use this script fix the order issue: http://biomol.bme.utexas.edu/~yues/download/pdb_crct.pl&lt;br /&gt;
  The most recent tinker analyze (v6.0) also has this option and will output in the v4.3 format recognized by the amoeba_parm below.&lt;br /&gt;
&lt;br /&gt;
2. /opt/tinker/bin/analyze box30 PC &amp;amp;gt; ele.analout &#039;&#039;#done in tinker v4.3&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
3. /opt/amber/bin/amoeba_parm -name ele -title &amp;quot;water&amp;quot; &amp;amp;gt; ele.amoeba_parm.out &lt;br /&gt;
&lt;br /&gt;
     #this is a program by Tom Darden; Linux executable is at http://biomol.bme.utexas.edu/~pren/amoeba_param/amoeba_parm&lt;br /&gt;
&lt;br /&gt;
4. /opt/amber/bin/sander -i ele.mdin -c ele.inpcrd -p ele.prmtop -o mdout&amp;amp;nbsp;; &lt;br /&gt;
&lt;br /&gt;
To run pmemd: &lt;br /&gt;
&lt;br /&gt;
The first 3 steps same as above. &lt;br /&gt;
&lt;br /&gt;
4. /opt/mpich2-fc7/bin/mpdboot -n 1 -f ./host --ncpus=4 &lt;br /&gt;
&lt;br /&gt;
5. /opt/mpich2-fc7/bin/mpirun -n 4 /home/pren/pmemd-oscar/src/pmemd -i ele.mdin -c ele.inpcrd -p ele.prmtop -o mdout.nvt.pmemd -r restrt.pmemd 2&amp;amp;gt;/dev/null &amp;amp;amp; &lt;br /&gt;
&lt;br /&gt;
 A couple of issues about octahedron PBC:&lt;br /&gt;
  TINKER AND AMBER use different oct definition. So the density in amber will be very low once you convert.&lt;br /&gt;
  The conversion script does not recognize octahedron keyword from tinker. See this for how to modify the amber files manually: &lt;br /&gt;
  http://biomol.bme.utexas.edu/wiki/index.php/Research:Amoeba_amber_free#Octahedron&lt;br /&gt;
&lt;br /&gt;
== example mdin  ==&lt;br /&gt;
&lt;br /&gt;
=== minimization using sander  ===&lt;br /&gt;
&lt;br /&gt;
 Titlexxxx&lt;br /&gt;
 &amp;amp;amp;cntrl&lt;br /&gt;
 ntx=7, irest=1,&lt;br /&gt;
 nstlim=1000000,&lt;br /&gt;
 ntpr=500, ntwr=500,ntave=500,&lt;br /&gt;
 nscm=500,ntwx=500,&lt;br /&gt;
 dt=0.001, vlimit=10.0,&lt;br /&gt;
 cut=9.,maxcyc=1000,ntmin=2,imin=5, &#039;&#039;(imin=5 is used to re-evaluate the trajectory during post-processing, as in BAR)&#039;&#039;&lt;br /&gt;
 iamoeba=1 &#039;&#039;(this is new for amber10; previous amber didn&#039;t use this)&#039;&#039;&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;ewald&lt;br /&gt;
 nfft1=36,nfft2=36,nfft3=36,&lt;br /&gt;
 skinnb=0.8,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;amoeba&lt;br /&gt;
 do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
 do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1, &#039;&#039;(note  do_amoeba=1 is obsolete in amber10)&#039;&#039;&lt;br /&gt;
 do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
 do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
 do_torsion_torsion=1,&lt;br /&gt;
 do_vdw=1,amoeba_verbose=0 ,do_vdw_longrange=1,do_vdw_taper=1, &#039;&#039;(verbose=false is obsolete)&#039;&#039;&lt;br /&gt;
 do_self=1,dipole_scf_tol = 0.01,dipole_scf_iter_max=30,&lt;br /&gt;
 sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
=== NVT using pmemd  ===&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;amp;cntrl&lt;br /&gt;
 ntx=1,irest=0,&lt;br /&gt;
 nstlim=1000000,&lt;br /&gt;
 ntpr=100, ntwr=100,ntave=100,&lt;br /&gt;
 nscm=500,ntwx=500,&lt;br /&gt;
 dt=0.001, vlimit=10.0,&lt;br /&gt;
 cut=9.,maxcyc=50,ntmin=2,imin=0,&lt;br /&gt;
 ntt=1, temp0=298.0,tempi=0.0,tautp=0.5,&lt;br /&gt;
 iamoeba=1&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;ewald&lt;br /&gt;
 nfft1=36,nfft2=36,nfft3=36, (this depends on box size. minimum 20% bigger)&lt;br /&gt;
 skinnb=0.8,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;amoeba&lt;br /&gt;
 do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
 do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1,&lt;br /&gt;
 do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
 do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
 do_torsion_torsion=1,&lt;br /&gt;
 do_vdw=1,amoeba_verbose=0,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
 do_self=1,dipole_scf_tol = 0.01,dipole_scf_iter_max=30,&lt;br /&gt;
 ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
=== NPT using sander  ===&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;amp;cntrl&lt;br /&gt;
 irest=0,&lt;br /&gt;
 nstlim=100000,&lt;br /&gt;
 ntpr=100, ntwr=100,ntave=100,&lt;br /&gt;
 nscm=500,ntwx=500,&lt;br /&gt;
 dt=0.001, vlimit=10.0,&lt;br /&gt;
 cut=9.,maxcyc=50,ntmin=2,imin=0,&lt;br /&gt;
 ntt=1, temp0=298.0,tempi=0.0,tautp=0.5,&lt;br /&gt;
 ntb=2, ntp=1, pres0=1.0, taup=1.0&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
== direcories in /home/pren/AMOEBA/solvation/compare/  ==&lt;br /&gt;
&lt;br /&gt;
cube: nvt, cubic water box by&#039;&#039;&#039;sander8&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
cube-pme: nvt, &#039;&#039;&#039;pmemd 9&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
sander-nvt: truncated octahedron (TO) long nvt run, &#039;&#039;&#039;sander 8 &#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
pmemd-nvt: TO, nvt, &#039;&#039;&#039;pmemd 9&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
sander-long-npt: truncated octahedron long npt run &#039;&#039;&#039;sander 8&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
pmemd-test-npt: short npt, TO, pmemd &lt;br /&gt;
&lt;br /&gt;
pmemd-nvt/ &lt;br /&gt;
&lt;br /&gt;
        check softcore parameters defaults in pmemd (sander has initilized correctly).&lt;br /&gt;
      i.e. without softcore-line lines in mdin, lig_idx is initialized to 0 so it is fine.&lt;br /&gt;
      softcore-print usem pmemd from ~/pmemd-sun&lt;br /&gt;
&lt;br /&gt;
= Simulation set up using AMBER and amoeba  =&lt;br /&gt;
&lt;br /&gt;
http://biomol.bme.utexas.edu/~yues/download/amber_auto &lt;br /&gt;
&lt;br /&gt;
The automation tool runs the following steps, &lt;br /&gt;
&lt;br /&gt;
 1. Auto parameterization using Poltype.&lt;br /&gt;
 2. Setting up pro-lig binding system in Tinker.&lt;br /&gt;
 3. Convert the system from Tinker to Amber format&lt;br /&gt;
 4. Start Amber simulations (3000 steps minimization, 100ps NPT equilibration, NVT simulation with respa)&lt;br /&gt;
&lt;br /&gt;
Input files needed: &lt;br /&gt;
&lt;br /&gt;
 1. protein pdb file&lt;br /&gt;
 2. ligand sdf file&lt;br /&gt;
 3. amoebapro4.prm parameter file&lt;br /&gt;
&lt;br /&gt;
To use the script, the following environment variables (with the appropriate paths) need to be exported (same as poltype). &lt;br /&gt;
&lt;br /&gt;
 $ export PYTHONPATH=/opt/openbabel-2.3.0/lib/python2.6/site-packages:$PYTHONPATH&lt;br /&gt;
 $ export GDMADIR=/opt/gdma2.2/bin&lt;br /&gt;
 $ export LD_LIBRARY_PATH=/opt/openbabel-2.3.0/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
 $ source ~/.g09.bashrc&lt;br /&gt;
&lt;br /&gt;
Usage &lt;br /&gt;
&lt;br /&gt;
1. setup the pro-lig binding system &lt;br /&gt;
&lt;br /&gt;
  ./runmd.pl -p protein.pdb -l ligand.sdf -o output_trajectory -n simulation_time(fs)&lt;br /&gt;
&lt;br /&gt;
2. run mpdboot and start amber jobs &lt;br /&gt;
&lt;br /&gt;
 ./run_amber&lt;br /&gt;
&lt;br /&gt;
Example &lt;br /&gt;
&lt;br /&gt;
 /home/yues/automation/new/example&lt;br /&gt;
&lt;br /&gt;
Possible problems. &lt;br /&gt;
&lt;br /&gt;
1. Guassian optimization failed. &lt;br /&gt;
&lt;br /&gt;
    We have to start the optimization with a lower basis set(like HF/3-21G) and then optimize with the default basis set (HF/6-31G*).&lt;br /&gt;
&lt;br /&gt;
2. Poltype assigns to many atoms to the same polarize group, and Tinker won&#039;t continue. &lt;br /&gt;
&lt;br /&gt;
    We need to manually devide the pol group and restart.&lt;br /&gt;
&lt;br /&gt;
For free energy calculations, automation is on the way. The instruction for manual operation is here http://biomol.bme.utexas.edu/wiki/index.php/Research:Amoeba_amber_free &lt;br /&gt;
&lt;br /&gt;
= RESPA and Bussi thermostat  =&lt;br /&gt;
&lt;br /&gt;
Example for amber 10 or 12 (&#039;&#039;&#039;PMEMD only, not in sander&#039;&#039;&#039;) using Bussi and RESPA: &lt;br /&gt;
&lt;br /&gt;
 /home/yues/testamber/ele1.0/respa/pmemd12-verlet-respa/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;&#039;&#039;&#039;Note ntt=4 triggers Bussi thermostat&#039;&#039;&#039;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 short md, nvt ensemble using Bussi thermo and RESPA integrator                   &lt;br /&gt;
 &amp;amp;amp;cntrl                                                    &lt;br /&gt;
 irest=1,ntx=7,                                     &lt;br /&gt;
 nstlim=1000,     &lt;br /&gt;
 ntpr=10, ntwr=100,ntave=100,                              &lt;br /&gt;
 nscm=100,ntwx=100,     &lt;br /&gt;
 dt=0.00025, vlimit=10.0,nrespa=10, &lt;br /&gt;
 cut=12.0,maxcyc=50,ntmin=2,imin=0,       &lt;br /&gt;
 ntt=4, temp0=298.0,tempi=298.0,tautp=0.5,&lt;br /&gt;
 iamoeba=1&lt;br /&gt;
 /                                                &lt;br /&gt;
 &amp;amp;amp;ewald                                                    &lt;br /&gt;
 nfft1=36,nfft2=36,nfft3=36,                                &lt;br /&gt;
 skinnb=2.0,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;amoeba                                   &lt;br /&gt;
 do_induced=1,do_recip=1,do_direct=1,do_adjust=1,      &lt;br /&gt;
 do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=0,&lt;br /&gt;
 do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,       &lt;br /&gt;
 do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
 do_torsion_torsion=1,amoeba_verbose=0,&lt;br /&gt;
 do_vdw=1,do_vdw_longrange=0,do_vdw_taper=1,&lt;br /&gt;
 do_self=1,dipole_scf_tol = 0.0001,dipole_scf_iter_max=30,&lt;br /&gt;
 sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=8,&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
and the REMD example: &lt;br /&gt;
&lt;br /&gt;
 /home/yues/program/amber12/test/rem_respa_amoeba/&lt;br /&gt;
&lt;br /&gt;
In AMBER 12, pmemd for amoeba can now use 2 fs time step (without shake or rattle). &lt;br /&gt;
&lt;br /&gt;
The dt is the smallest time step used for integration over valence terms. The nrespa x dt is the time step for nonbond terms. I recommend nrespa=8 for stability. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(255, 0, 0);&amp;quot;&amp;gt;&#039;&#039;&#039;For RESPA, &amp;amp;nbsp;note &amp;quot;dt=0.00025,nrespa=10&amp;quot;, and &amp;quot;beeman_integrator=0&amp;quot; are needed for RESPA.&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;Also the printing parameters, ntpr, ntwr, ntave, nscm, ntwx... have to be an integer multiply of nrespa, otherwise the output will be wrong.&#039;&#039;&#039;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
md, nvt, RESPA, Langevin &amp;amp;amp;cntrl &lt;br /&gt;
&lt;br /&gt;
   irest=0,                     &lt;br /&gt;
 nstlim=100,     &lt;br /&gt;
 ntpr=200 ntwr=200,ntave=200,                              &lt;br /&gt;
 nscm=200,ntwx=200,     &lt;br /&gt;
 dt=0.00025,nrespa=10, vlimit=10.0, &lt;br /&gt;
 cut=9.0,maxcyc=50,ntmin=2,imin=0,       &lt;br /&gt;
 ntt=3, temp0=298.0,tempi=298.0,tautp=0.5,&lt;br /&gt;
 iamoeba=1&lt;br /&gt;
&lt;br /&gt;
/ &amp;amp;amp;ewald &lt;br /&gt;
&lt;br /&gt;
  nfft1=36,nfft2=36,nfft3=36,                                &lt;br /&gt;
 skinnb=0.8,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
&lt;br /&gt;
/ &amp;amp;amp;amoeba &lt;br /&gt;
&lt;br /&gt;
   do_induced=1,do_recip=1,do_direct=1,do_adjust=1,      &lt;br /&gt;
 do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=0,&lt;br /&gt;
 do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,       &lt;br /&gt;
 do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
 do_torsion_torsion=1,amoeba_verbose=0,&lt;br /&gt;
 do_vdw=1,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
 do_self=1,dipole_scf_tol = 0.01,dipole_scf_iter_max=300,&lt;br /&gt;
 sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=7,&lt;br /&gt;
&lt;br /&gt;
/ &lt;br /&gt;
&lt;br /&gt;
= AMBER Softcore modification (w/ LRC)  =&lt;br /&gt;
&lt;br /&gt;
== [[Software:amber 8 9|Click here for previous documentation related to amber 8 and 9]]  ==&lt;br /&gt;
&lt;br /&gt;
Information below applied to amber 10 (in progress) Latest amber 9 &lt;br /&gt;
&lt;br /&gt;
 /home/yue/program/amber9/pmemd-oscar/src_LRC/pmemd&lt;br /&gt;
&lt;br /&gt;
== Instruction  ==&lt;br /&gt;
&lt;br /&gt;
=== soft_atm.txt  ===&lt;br /&gt;
&lt;br /&gt;
 see /home/pren/pmemd-oscar/node21-amber12-2013 for an example.&lt;br /&gt;
&lt;br /&gt;
The range of atoms that require softcore vdw modification is stored in a file named &amp;quot;soft_atm.txt&amp;quot;. It has to be in the same directory as all the files. &lt;br /&gt;
&lt;br /&gt;
The format of soft_atm.txt: &lt;br /&gt;
&lt;br /&gt;
*These atom numbers should be consistent with xyz file (or pdb file) &lt;br /&gt;
*Each line contains only one segment &lt;br /&gt;
*If it is a range, use hyphen to connect the first atom and the last atom of the segment&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Example of &amp;quot;soft_atm.txt&amp;quot; &lt;br /&gt;
&lt;br /&gt;
  45-340&lt;br /&gt;
 580&lt;br /&gt;
 789-1007&lt;br /&gt;
&lt;br /&gt;
Note that maximum 20 lines are allowed in the soft_atm.txt file &amp;amp;lt;/span&amp;amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Softcore keywords  ===&lt;br /&gt;
&lt;br /&gt;
Some keywords related to the vdw softcore should be included in the mdin file(input file of amber) &lt;br /&gt;
&lt;br /&gt;
In both sander10 and pmemd.amba10 &lt;br /&gt;
&lt;br /&gt;
  soft_lambda=0.9,soft_alpha=0.7,soft_expo=5,vdw_longrange_lambda=0.0&lt;br /&gt;
&lt;br /&gt;
soft_alpha: coefficient of softcore default 0.5d0 &lt;br /&gt;
&lt;br /&gt;
soft_lambda: scaling factor of decoupling usually changing from 1.0 to 0.0 default 1.0 &lt;br /&gt;
&lt;br /&gt;
soft_expo: exponent of scaling factor default 4 &lt;br /&gt;
&lt;br /&gt;
vdw_longrange_lambda: scaling factor of vdw longrange correction, default 1.0 (no LRC); 0.0 when there is full LRC &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
If you are not doing softcore, no need to add these keywords. Even though you have them, as long as softcore_lamda/soft_lamda is 1, no softcore is done. &lt;br /&gt;
&lt;br /&gt;
If you have non-one value for these softcore lambdas, you must have soft_atm.txt file. Otherwise the job will die and complain the file is missing. &lt;br /&gt;
&lt;br /&gt;
== Download  ==&lt;br /&gt;
&lt;br /&gt;
=== Sander10  ===&lt;br /&gt;
&lt;br /&gt;
The original files are in &#039;&#039;&#039;/home/yues/program/amber10/src_org&#039;&#039;&#039;, while the modified files are in &#039;&#039;&#039;/home/yues/program/amber10/src_LRC&#039;&#039;&#039; or &amp;quot;/home/yues/program/amber10/src/sander&amp;quot; &lt;br /&gt;
&lt;br /&gt;
The patch file (sandermod.patch) and config_amber.h can be found in &#039;&#039;&#039;http://biomol.bme.utexas.edu/~yues/download/sander10&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
sander 10 may be much slower than sander 9 if the &amp;quot;!&amp;amp;lt;compile=optimized&amp;amp;gt; &amp;quot; line is missing on the top of amoeba*.f files! This line exist in sander 9 source codes. &lt;br /&gt;
&lt;br /&gt;
=== Pmemd.amba10  ===&lt;br /&gt;
&lt;br /&gt;
The original files are in &#039;&#039;&#039;/home/yues/program/amber10/src_org/pmemd.amba/&#039;&#039;&#039;, while the modified files are in &#039;&#039;&#039;/home/yues/program/amber10/src/pmemd.amba/src-remd-respa pmemd.amba&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
  OLD: &#039;&#039;&#039;/home/yues/program/amber10/src_LRC/pmemd.amba&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
The patch file (pmemdmod.patch) and config.h can be found in &#039;&#039;&#039;http://biomol.bme.utexas.edu/~yues/download/pmemd10&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Here is how to patch the source files &lt;br /&gt;
&lt;br /&gt;
*Just put the directory src-org and pmemd.patch at the same directory. You need config.h too. &lt;br /&gt;
*Go to src-org, do &amp;quot;make clean&amp;quot;, &lt;br /&gt;
*Go one level up and do &amp;quot;patch -p0 -i pmemd.patch&amp;quot;, src-org will be updated. &lt;br /&gt;
*Compile and you are good to go!&lt;br /&gt;
&lt;br /&gt;
== Examples and tests  ==&lt;br /&gt;
&lt;br /&gt;
Example files are in: /home/yues/testamber/lrc , for softcore tests &lt;br /&gt;
&lt;br /&gt;
In /home/yues/testamber/zinc, there are tests for zinc damping factor &lt;br /&gt;
&lt;br /&gt;
Sander10 tests and Pmemd.amba10 tests are in sander-10/ and pmemd-10/ respectively. &lt;br /&gt;
&lt;br /&gt;
== Modification details  ==&lt;br /&gt;
&lt;br /&gt;
=== Modifying Sander10  ===&lt;br /&gt;
&lt;br /&gt;
==== amoeba_mdin.f  ====&lt;br /&gt;
&lt;br /&gt;
*Add the parameter(s) to the variable definitions in amoeba_mdin.f and assign initial values to them:&lt;br /&gt;
&lt;br /&gt;
 module amoeba_mdin&lt;br /&gt;
 implicit none&lt;br /&gt;
 private&lt;br /&gt;
 integer,save&amp;amp;nbsp;:: iamoeba=0,do_amoeba_valence=1,do_amoeba_nonbond=1, &amp;amp;amp;&lt;br /&gt;
                do_vdw_taper=1,do_vdw_longrange=1,am_nbead=1&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: sor_coefficient = 0.75d0&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: dipole_scf_tol = 0.01d0&lt;br /&gt;
 integer,save&amp;amp;nbsp;:: dipole_scf_iter_max = 50&lt;br /&gt;
 #ifndef DISABLE_AMOEBA_CG&lt;br /&gt;
 integer,save&amp;amp;nbsp;:: dipole_scf_use_cg = 0&lt;br /&gt;
 integer,save&amp;amp;nbsp;:: dipole_scf_cg_niter = 4&lt;br /&gt;
 #endif /* DISABLE_AMOEBA_CG */&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: ee_dsum_cut=7.d0&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: ee_damped_cut=4.5d0&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: vdw_taper = 0.9d0&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: thole_expon_coeff=0.39d0&lt;br /&gt;
 _REAL_,save&amp;amp;nbsp;:: compress = 0.000046d0&lt;br /&gt;
 &#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: soft_lambda = 1.0d0&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: soft_alpha = 0.5d0&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;_REAL_,save&amp;amp;nbsp;:: soft_expo = 4&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;  _REAL_,save&amp;amp;nbsp;:: vdw_longrange_lambda = 1.0d0&#039;&#039;&#039;&lt;br /&gt;
 integer, save&amp;amp;nbsp;:: amoeba_verbose = 0&lt;br /&gt;
 integer,save&amp;amp;nbsp;:: beeman_integrator = 0&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;nbsp;!variables and arrays for softcore file&lt;br /&gt;
 &#039;&#039;&#039;integer,save&amp;amp;nbsp;:: soft_atom_range1(20),soft_atom_range2(20),soft_line&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 public AMOEBA_read_mdin,iamoeba,do_amoeba_valence, &amp;amp;amp;&lt;br /&gt;
       do_amoeba_nonbond,amoeba_verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
       sor_coefficient,dipole_scf_tol,dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
 #ifndef DISABLE_AMOEBA_CG&lt;br /&gt;
       dipole_scf_use_cg, dipole_scf_cg_niter, &amp;amp;amp;&lt;br /&gt;
 #endif /* DISABLE_AMOEBA_CG */&lt;br /&gt;
       ee_dsum_cut,ee_damped_cut,thole_expon_coeff,vdw_taper, &amp;amp;amp;&lt;br /&gt;
       compress,do_vdw_taper,do_vdw_longrange,am_nbead, &amp;amp;amp;&lt;br /&gt;
       &#039;&#039;&#039;soft_lambda,soft_alpha,soft_expo, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;AMOEBA_read_soft, soft_atom_range1,soft_atom_range2, soft_line, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;vdw_longrange_lambda&#039;&#039;&#039;&lt;br /&gt;
 contains&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;soft_alpha,soft_lambda,soft_expo,vdw_longrange_lambda see descrition above &lt;br /&gt;
&lt;br /&gt;
soft_atom_range1 and soft_atom_range2 are two arrays store the ranges of softcore atoms taken from soft_atom.txt &lt;br /&gt;
&lt;br /&gt;
soft_line is the number of lines of soft_atom.txt &lt;br /&gt;
&lt;br /&gt;
*AMOEBA_read_soft is a subroutine which read the soft_atom.txt file which will be called in amoeba_vdw.f.&lt;br /&gt;
&lt;br /&gt;
*Include the new parameters in the amoeba_mdin namelist&lt;br /&gt;
&lt;br /&gt;
 subroutine AMOEBA_read_mdin(nf)&lt;br /&gt;
 ...skipping...&lt;br /&gt;
 namelist/amoeba/do_amoeba_valence,do_amoeba_nonbond, &amp;amp;amp;&lt;br /&gt;
                do_bond,do_ureyb,do_reg_angle,  &amp;amp;amp;&lt;br /&gt;
                do_trig_angle,do_opbend,do_torsion,do_str_torsion, &amp;amp;amp;&lt;br /&gt;
                do_pi_torsion,do_strbend,do_torsion_torsion, &amp;amp;amp;&lt;br /&gt;
                do_recip,do_adjust,do_direct,do_self, &amp;amp;amp;&lt;br /&gt;
                do_vdw,do_induced,amoeba_verbose,beeman_integrator, &amp;amp;amp;&lt;br /&gt;
                sor_coefficient,dipole_scf_tol, &amp;amp;amp;&lt;br /&gt;
                dipole_scf_iter_max,&amp;amp;amp;&lt;br /&gt;
 #ifndef DISABLE_AMOEBA_CG&lt;br /&gt;
                dipole_scf_use_cg, dipole_scf_cg_niter, &amp;amp;amp;&lt;br /&gt;
 #endif /* DISABLE_AMOEBA_CG */&lt;br /&gt;
                ee_dsum_cut,ee_damped_cut, &amp;amp;amp;&lt;br /&gt;
                thole_expon_coeff,vdw_taper,do_vdw_taper,do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                compress,am_nbead,&amp;amp;amp;&lt;br /&gt;
                &#039;&#039;&#039;soft_lambda,soft_alpha,soft_expo,vdw_longrange_lambda&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Add subroutine AMOEBA_read_soft to read softcore atom list file&lt;br /&gt;
&lt;br /&gt;
 subroutine AMOEBA_read_soft()&lt;br /&gt;
 integer pos_dash,length,i_range,i&lt;br /&gt;
 character(len=20) atm_range&lt;br /&gt;
 character(len=6) temp&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;nbsp;!flag whether soft_atm.txt exists&lt;br /&gt;
 logical alive&lt;br /&gt;
 inquire(file=&#039;soft_atm.txt&#039;,exist=alive)&lt;br /&gt;
 if(alive) then&lt;br /&gt;
    do i=1,20&lt;br /&gt;
       soft_atom_range1(i)=0;&lt;br /&gt;
       soft_atom_range2(i)=0;&lt;br /&gt;
    end do&lt;br /&gt;
  &lt;br /&gt;
    soft_line=0&lt;br /&gt;
    open (11,FILE=&#039;soft_atm.txt&#039;)&lt;br /&gt;
    do while (.true.)&lt;br /&gt;
    &lt;br /&gt;
       read(11,*,end=99) atm_range&lt;br /&gt;
      &amp;amp;nbsp;!write(*,*) atm_range&lt;br /&gt;
       pos_dash=scan(atm_range,&#039;-&#039;)&lt;br /&gt;
      &amp;amp;nbsp;!write(*,*) &amp;quot;position&amp;quot;,pos_dash&lt;br /&gt;
       length=len_trim(atm_range)&lt;br /&gt;
       if (length &amp;amp;gt; 0) then&lt;br /&gt;
          soft_line=soft_line+1&lt;br /&gt;
       endif&lt;br /&gt;
      &amp;amp;nbsp;!write(*,*) &amp;quot;length&amp;quot;,length&lt;br /&gt;
       if(pos_dash.gt.0) then&lt;br /&gt;
          temp=atm_range(1:pos_dash-1)&lt;br /&gt;
          read(temp,*) soft_atom_range1(soft_line)&lt;br /&gt;
          temp=atm_range(pos_dash+1:length)&lt;br /&gt;
          read(temp,*) soft_atom_range2(soft_line)&lt;br /&gt;
 &lt;br /&gt;
       else&lt;br /&gt;
          read(atm_range,*) soft_atom_range1(soft_line)&lt;br /&gt;
          read(atm_range,*) soft_atom_range2(soft_line)&lt;br /&gt;
       endif&lt;br /&gt;
     end do&lt;br /&gt;
  else&lt;br /&gt;
    write(6,*) &#039;soft_atm.txt not found&#039;&lt;br /&gt;
    call mexit(6,1)&lt;br /&gt;
  endif&lt;br /&gt;
  99 continue&lt;br /&gt;
  close(11)&lt;br /&gt;
 &lt;br /&gt;
 end subroutine AMOEBA_read_soft&lt;br /&gt;
&lt;br /&gt;
==== amoeba_vdw.f  ====&lt;br /&gt;
&lt;br /&gt;
*softcore modification of vdw interaction&lt;br /&gt;
&lt;br /&gt;
 subroutine AM_VDW_DIRECT_ene_frc_i(i,ipairs,numtot,xk,yk,zk, &amp;amp;amp;&lt;br /&gt;
                                 crd,ene_vdw,frc,virial)&lt;br /&gt;
 use nblist, only: bckptr,imagcrds,tranvec&lt;br /&gt;
 use constants, only&amp;amp;nbsp;: zero,one,two,three,four,five,seven&lt;br /&gt;
 use amoeba_mdin, only&amp;amp;nbsp;: do_vdw_taper, &amp;amp;amp;&lt;br /&gt;
                         &#039;&#039;&#039;soft_lambda,soft_alpha,soft_expo, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
                         &#039;&#039;&#039;soft_atom_range1,soft_atom_range2, soft_line&#039;&#039;&#039;&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: i,ipairs(*),numtot&lt;br /&gt;
 _REAL_,intent(in)&amp;amp;nbsp;:: xk,yk,zk,crd(3,*)&lt;br /&gt;
 _REAL_,intent(inout)&amp;amp;nbsp;:: ene_vdw,frc(3,*),virial(3,3)&lt;br /&gt;
 &lt;br /&gt;
 integer&amp;amp;nbsp;:: itran,it,jt,ih,jh,j,m,np,mask27,&#039;&#039;&#039;i_range&#039;&#039;&#039;&lt;br /&gt;
   &lt;br /&gt;
 ...skipping...&lt;br /&gt;
 &lt;br /&gt;
    if ( delr2 &amp;amp;lt; vdw_switch_off_2 )then&lt;br /&gt;
       jt = vdw_atom_type(j)&lt;br /&gt;
       eps = vdw_epsilon(jt,it)&lt;br /&gt;
       rad = vdw_radius(jt,it)&lt;br /&gt;
       delr = sqrt(delr2)&lt;br /&gt;
       rho = delr / rad&lt;br /&gt;
       rho6 = rho**6&lt;br /&gt;
       rho7 = rho6*rho&lt;br /&gt;
       t1 = ((one + vdw_buf_delta) / (rho + vdw_buf_delta))**7&lt;br /&gt;
       t2 = (one + vdw_buf_gamma) / (rho7 + vdw_buf_gamma)&lt;br /&gt;
       dt1drho = -seven*t1 / (rho + vdw_buf_delta)&lt;br /&gt;
       dt2drho = -seven*t2 * (rho6 / (rho7 + vdw_buf_gamma))&lt;br /&gt;
       drhodr = one / rad&lt;br /&gt;
      &#039;&#039;&#039; do i_range = 1,soft_line&#039;&#039;&#039;&lt;br /&gt;
        &#039;&#039;&#039;if ((i.ge.soft_atom_range1(i_range).and. i.le.soft_atom_range2(i_range)) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
           &#039;&#039;&#039;.xor.  (j.ge.soft_atom_range1(i_range) .and.j.le.soft_atom_range2(i_range)) )then&#039;&#039;&#039;&lt;br /&gt;
              &#039;&#039;&#039;eps = eps * soft_lambda ** soft_expo&#039;&#039;&#039;&lt;br /&gt;
             &#039;&#039;&#039; t1 = (one + vdw_buf_delta)**7 / (soft_alpha * (1 - soft_lambda)**2 + (rho + vdw_buf_delta)**7)&#039;&#039;&#039;&lt;br /&gt;
           &#039;&#039;&#039;   t2 = (one + vdw_buf_gamma) / (soft_alpha * (1 - soft_lambda)**2 + rho7 + vdw_buf_gamma)&#039;&#039;&#039;&lt;br /&gt;
             &#039;&#039;&#039; dt1drho = (-seven * (rho + vdw_buf_delta)**6 * t1) / (soft_alpha * (1 - soft_lambda)**2 &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
             &#039;&#039;&#039;          + (rho + vdw_buf_delta)**7)&#039;&#039;&#039;&lt;br /&gt;
              &#039;&#039;&#039;dt2drho = (-seven * rho6 * t2) / (soft_alpha * (1 - soft_lambda)**2 + rho7 + vdw_buf_gamma)&#039;&#039;&#039;&lt;br /&gt;
        &#039;&#039;&#039;endif&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;end do&#039;&#039;&#039;&lt;br /&gt;
       f = eps*t1*(t2 - two)&lt;br /&gt;
       dfdr = eps*(dt1drho*(t2 - two) + t1*dt2drho)*drhodr&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*longrange correction softcore&lt;br /&gt;
&lt;br /&gt;
subroutine AM_VDW_longrange_factor(num_atoms) &lt;br /&gt;
&lt;br /&gt;
  use amoeba_mdin, only&amp;amp;nbsp;: do_vdw_taper, &amp;amp;amp;&lt;br /&gt;
                       &#039;&#039;&#039;soft_lambda,soft_atom_range1,soft_atom_range2,&amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
                       &#039;&#039;&#039;soft_line,vdw_longrange_lambda,AMOEBA_read_soft&#039;&#039;&#039;&lt;br /&gt;
 use constants, only&amp;amp;nbsp;: zero,one,two,three,four,five,seven,pi&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: num_atoms&lt;br /&gt;
 &lt;br /&gt;
 integer ier,n,nt,kdel,ndel,i,j,&#039;&#039;&#039;i_range,i_soft,i_soft_type&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;integer,save,allocatable&amp;amp;nbsp;:: lig_type_ct(:)&#039;&#039;&#039;&lt;br /&gt;
 _REAL_&amp;amp;nbsp;:: r,r1,r2,r3,r4,r5,req,eps,f,sume,sumv,t1,t2,rho,switch,delr&lt;br /&gt;
 _REAL_&amp;amp;nbsp;:: dt1drho,dt2drho,drhodr,dfdr,dswitch_dr,g1,g2&lt;br /&gt;
 allocate(vdw_type_count(num_vdw_atom_types),stat=ier)&lt;br /&gt;
 REQUIRE(ier==0)&lt;br /&gt;
 &#039;&#039;&#039;allocate(lig_type_ct(num_vdw_atom_types),stat=ier)&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;REQUIRE(ier==0)&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;if (vdw_longrange_lambda .ne. 1.0 .or. soft_lambda .ne. 1.0) then&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;call AMOEBA_read_soft()&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;endif&#039;&#039;&#039;&lt;br /&gt;
 do n = 1,num_vdw_atom_types&lt;br /&gt;
  vdw_type_count(n) = 0&lt;br /&gt;
  &#039;&#039;&#039;lig_type_ct(n) = 0&#039;&#039;&#039;&lt;br /&gt;
 enddo&lt;br /&gt;
 do n = 1,num_atoms&lt;br /&gt;
  nt = vdw_atom_type(n)&lt;br /&gt;
  vdw_type_count(nt) = vdw_type_count(nt) + 1&lt;br /&gt;
  &#039;&#039;&#039;do i_range = 1, soft_line&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;if (n .ge. soft_atom_range1(i_range).and. n.le.soft_atom_range2(i_range)) then&#039;&#039;&#039;&lt;br /&gt;
         &#039;&#039;&#039;lig_type_ct(nt) = lig_type_ct(nt) + 1&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039; endif&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;enddo&#039;&#039;&#039;&lt;br /&gt;
 enddo&lt;br /&gt;
 &lt;br /&gt;
 ...skipping...&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;nbsp;! note the 2*pi below not 4*pi---since we do each i,j pair 2x&lt;br /&gt;
   &#039;&#039;&#039;ene_vdw_longrange_factor = ene_vdw_longrange_factor + two*pi*sume* (vdw_type_count(i)*vdw_type_count(j) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;-(1-vdw_longrange_lambda)*(lig_type_ct(i)*vdw_type_count(j)+(vdw_type_count(i)-lig_type_ct(i))*lig_type_ct(j))&#039;&#039;&#039;)&lt;br /&gt;
    &#039;&#039;&#039;vir_vdw_longrange_factor = vir_vdw_longrange_factor + two*pi*sumv*(vdw_type_count(i)*vdw_type_count(j) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;-(1-vdw_longrange_lambda)*(lig_type_ct(i)*vdw_type_count(j)+(vdw_type_count(i)-lig_type_ct(i))*lig_type_ct(j))&#039;&#039;&#039;)&lt;br /&gt;
  enddo&lt;br /&gt;
 enddo&lt;br /&gt;
 &lt;br /&gt;
 end subroutine AM_VDW_longrange_factor&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Modifying PMEMD 10  ===&lt;br /&gt;
&lt;br /&gt;
==== mdin_amoeba_dat.fpp  ====&lt;br /&gt;
&lt;br /&gt;
*Add the parameter(s) to the variable definitions in amoeba_mdin.f module mdin_amoeba_dat_mod and assign initial values to them:&lt;br /&gt;
&lt;br /&gt;
 module mdin_amoeba_dat_mod&lt;br /&gt;
 #ifdef AMOEBA&lt;br /&gt;
 &lt;br /&gt;
 implicit none&lt;br /&gt;
 &lt;br /&gt;
 ! Data that should be broadcast to slave processes from the master:&lt;br /&gt;
 &lt;br /&gt;
 integer, parameter   &amp;amp;nbsp;:: mdin_amoeba_int_cnt = &#039;&#039;&#039;24&#039;&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
 integer                    do_amoeba_valence, do_amoeba_nonbond, do_bond, &amp;amp;amp;&lt;br /&gt;
                           do_ureyb, do_reg_angle, do_trig_angle, do_opbend, &amp;amp;amp;&lt;br /&gt;
                           do_torsion, do_pi_torsion, do_strbend, &amp;amp;amp;&lt;br /&gt;
                            do_torsion_torsion, do_str_torsion, do_recip, &amp;amp;amp;&lt;br /&gt;
                           do_adjust, do_direct, do_self, do_vdw, &amp;amp;amp;&lt;br /&gt;
                           do_induced, do_vdw_taper, do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                           beeman_integrator, dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
                           amoeba_verbose&#039;&#039;&#039;, soft_expo&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;integer              &amp;amp;nbsp;:: soft_atom_range1(20), soft_atom_range2(20), soft_line&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 common / mdin_amoeba_int / do_amoeba_valence, do_amoeba_nonbond, do_bond, &amp;amp;amp;&lt;br /&gt;
                           do_ureyb, do_reg_angle, do_trig_angle, do_opbend, &amp;amp;amp;&lt;br /&gt;
                           do_torsion, do_pi_torsion, do_strbend, &amp;amp;amp;&lt;br /&gt;
                           do_torsion_torsion, do_str_torsion, do_recip, &amp;amp;amp;&lt;br /&gt;
                           do_adjust, do_direct, do_self, do_vdw, &amp;amp;amp;&lt;br /&gt;
                           do_induced, do_vdw_taper, do_vdw_longrange, &amp;amp;amp;&lt;br /&gt;
                           beeman_integrator, dipole_scf_iter_max, &amp;amp;amp;&lt;br /&gt;
                           amoeba_verbose, &#039;&#039;&#039;soft_expo&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;common                     soft_atom_range1, soft_atom_range2, soft_line&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 save &amp;amp;nbsp;:: / mdin_amoeba_int /&lt;br /&gt;
 &lt;br /&gt;
 integer, parameter   &amp;amp;nbsp;:: mdin_amoeba_dbl_cnt = &#039;&#039;&#039;10&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 double precision              compress, dipole_scf_tol, ee_dsum_cut, &amp;amp;amp;&lt;br /&gt;
                              ee_damped_cut, sor_coefficient, &amp;amp;amp;&lt;br /&gt;
                              thole_expon_coeff, vdw_taper, &amp;amp;amp;&lt;br /&gt;
                              &#039;&#039;&#039;soft_lambda, soft_alpha, vdw_longrange_lambda&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 common / mdin_amoeba_dbl /    compress, dipole_scf_tol, ee_dsum_cut, &amp;amp;amp;&lt;br /&gt;
                              ee_damped_cut, sor_coefficient, &amp;amp;amp;&lt;br /&gt;
                              thole_expon_coeff, vdw_taper, &amp;amp;amp;&lt;br /&gt;
                              &#039;&#039;&#039;soft_lambda, soft_alpha, vdw_longrange_lambda&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 save &amp;amp;nbsp;:: / mdin_amoeba_dbl /&lt;br /&gt;
 &lt;br /&gt;
 contains&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*assign the initial values for these softcore parameters in subroutine init_mdin_amoeba_dat&lt;br /&gt;
&lt;br /&gt;
 subroutine init_mdin_amoeba_dat&lt;br /&gt;
 &lt;br /&gt;
 use file_io_dat_mod&lt;br /&gt;
 use file_io_mod&lt;br /&gt;
 &lt;br /&gt;
 implicit none&lt;br /&gt;
 &lt;br /&gt;
 !  Local variables:&lt;br /&gt;
 &lt;br /&gt;
 integer      &amp;amp;nbsp;:: ifind&lt;br /&gt;
 &lt;br /&gt;
 namelist /amoeba/ do_amoeba_valence, do_amoeba_nonbond, &amp;amp;amp;&lt;br /&gt;
                  do_bond, do_ureyb, do_reg_angle,  &amp;amp;amp;&lt;br /&gt;
                  do_trig_angle, do_opbend, do_torsion, do_str_torsion, &amp;amp;amp;&lt;br /&gt;
                  do_pi_torsion, do_strbend, do_torsion_torsion, &amp;amp;amp;&lt;br /&gt;
                  do_recip, do_adjust, do_direct, do_self, &amp;amp;amp;&lt;br /&gt;
                  do_vdw, do_induced, amoeba_verbose, beeman_integrator, &amp;amp;amp;&lt;br /&gt;
                  sor_coefficient, dipole_scf_tol, &amp;amp;amp;&lt;br /&gt;
                  dipole_scf_iter_max, ee_dsum_cut, ee_damped_cut, &amp;amp;amp;&lt;br /&gt;
                  thole_expon_coeff, vdw_taper, do_vdw_taper, &amp;amp;amp;&lt;br /&gt;
                  do_vdw_longrange, compress, &amp;amp;amp;&lt;br /&gt;
                  &#039;&#039;&#039;soft_lambda, soft_alpha, soft_expo, vdw_longrange_lambda&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
  ...skipping...&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;soft_lambda=1.d0&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;soft_alpha=0.5d0&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;soft_expo=4&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;vdw_longrange_lambda=1.d0&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Add subroutine AMOEBA_read_soft&lt;br /&gt;
&lt;br /&gt;
 subroutine AMOEBA_read_soft&lt;br /&gt;
 &lt;br /&gt;
 use parallel_dat_mod&lt;br /&gt;
 &lt;br /&gt;
 integer pos_dash,length,i_range,i&lt;br /&gt;
 character(len=20) atm_range&lt;br /&gt;
 character(len=6) temp&lt;br /&gt;
 logical alive&lt;br /&gt;
 inquire(file=&#039;soft_atm.txt&#039;,exist=alive)&lt;br /&gt;
 if (alive) then&lt;br /&gt;
   do i=1,20&lt;br /&gt;
      soft_atom_range1(i)=0;&lt;br /&gt;
      soft_atom_range2(i)=0;&lt;br /&gt;
   end do&lt;br /&gt;
   soft_line=0&lt;br /&gt;
 &lt;br /&gt;
   open (11,FILE=&#039;soft_atm.txt&#039;)&lt;br /&gt;
   do while (.true.)&lt;br /&gt;
      soft_line=soft_line+1&lt;br /&gt;
      read(11,*,end=99) atm_range&lt;br /&gt;
      pos_dash=scan(atm_range,&#039;-&#039;)&lt;br /&gt;
      length=len_trim(atm_range)&lt;br /&gt;
      if(pos_dash.gt.0) then&lt;br /&gt;
         temp=atm_range(1:pos_dash-1)&lt;br /&gt;
         read(temp,*) soft_atom_range1(soft_line)&lt;br /&gt;
         temp=atm_range(pos_dash+1:length)&lt;br /&gt;
         read(temp,*) soft_atom_range2(soft_line)&lt;br /&gt;
      else&lt;br /&gt;
         read(atm_range,*) soft_atom_range1(soft_line)&lt;br /&gt;
         read(atm_range,*) soft_atom_range2(soft_line)&lt;br /&gt;
      endif&lt;br /&gt;
   end do&lt;br /&gt;
 else&lt;br /&gt;
    write(6,*)&#039;soft_atm.txt not found&#039;&lt;br /&gt;
    call mexit(6, 1)&lt;br /&gt;
 endif&lt;br /&gt;
 99 continue&lt;br /&gt;
 close(11)&lt;br /&gt;
 &lt;br /&gt;
 end subroutine AMOEBA_read_soft&lt;br /&gt;
&lt;br /&gt;
==== amoeba_direct.fpp  ====&lt;br /&gt;
&lt;br /&gt;
softcore modification for vdw interactions in subroutine am_vdw_direct_ene_frc_i &lt;br /&gt;
&lt;br /&gt;
 subroutine am_vdw_direct_ene_frc_i(atm_i, img, ipairs_sublst, x_tran, &amp;amp;amp;&lt;br /&gt;
                                 pair_cnt, crd, ene_vdw, frc, img_frc, &amp;amp;amp;&lt;br /&gt;
                                 virial, img_atm_map)&lt;br /&gt;
 &lt;br /&gt;
 use mdin_amoeba_dat_mod, only&amp;amp;nbsp;: do_vdw_taper, &#039;&#039;&#039;soft_lambda, soft_expo, soft_alpha, dipole_scf_iter_max, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
                                &#039;&#039;&#039;soft_atom_range1,soft_atom_range2, soft_line&#039;&#039;&#039;&lt;br /&gt;
 use amoeba_flags_mod&lt;br /&gt;
 use img_mod&lt;br /&gt;
 &lt;br /&gt;
 implicit none&lt;br /&gt;
 &lt;br /&gt;
 skipping  &lt;br /&gt;
 &lt;br /&gt;
 ! Local variables: &lt;br /&gt;
 &lt;br /&gt;
 integer              &amp;amp;nbsp;:: itran, it, jt, ih, jh, idx&lt;br /&gt;
 integer              &amp;amp;nbsp;:: sublst_idx&lt;br /&gt;
 integer              &amp;amp;nbsp;:: atm_j, img_j&lt;br /&gt;
 &#039;&#039;&#039;integer              &amp;amp;nbsp;:: i_range&#039;&#039;&#039;&lt;br /&gt;
 double precision     &amp;amp;nbsp;:: wi, wj&lt;br /&gt;
 &lt;br /&gt;
 ...skipping...&lt;br /&gt;
 &lt;br /&gt;
  if (delr2 .lt. vdw_switch_off_2) then&lt;br /&gt;
 &lt;br /&gt;
    jt = vdw_atom_type(atm_j)&lt;br /&gt;
    eps = vdw_epsilon(jt, it)&lt;br /&gt;
    rad = vdw_radius(jt, it)&lt;br /&gt;
    delr = sqrt(delr2)&lt;br /&gt;
    rho = delr / rad&lt;br /&gt;
    rho6 = rho**6&lt;br /&gt;
    rho7 = rho6 * rho&lt;br /&gt;
    t1 = ((1.d0 + vdw_buf_delta) / (rho + vdw_buf_delta))**7&lt;br /&gt;
    t2 = (1.d0 + vdw_buf_gamma) / (rho7 + vdw_buf_gamma)&lt;br /&gt;
    dt1drho = -7.d0 * t1 / (rho + vdw_buf_delta)&lt;br /&gt;
    dt2drho = -7.d0 * t2 * (rho6 / (rho7 + vdw_buf_gamma))&lt;br /&gt;
    drhodr = 1.d0 / rad&lt;br /&gt;
    &#039;&#039;&#039;do i_range = 1,soft_line&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;if(((atm_i.ge.soft_atom_range1(i_range)).and.(atm_i.le.soft_atom_range2(i_range))) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
      &#039;&#039;&#039;.or.  ((atm_j.ge.soft_atom_range1(i_range)) .and.(atm_j.le.soft_atom_range2(i_range)))) then&#039;&#039;&#039;&lt;br /&gt;
         &#039;&#039;&#039; eps = eps * soft_lambda ** soft_expo&#039;&#039;&#039;&lt;br /&gt;
         &#039;&#039;&#039; t1 = (1.d0 + vdw_buf_delta)**7 / (soft_alpha * (1.d0 - soft_lambda)**2 + (rho + vdw_buf_delta)**7)&#039;&#039;&#039;&lt;br /&gt;
          &#039;&#039;&#039;t2 = (1.d0 + vdw_buf_gamma) / (soft_alpha * (1.d0 - soft_lambda)**2 + rho**7 + vdw_buf_gamma)&#039;&#039;&#039;&lt;br /&gt;
          &#039;&#039;&#039;dt1drho = (-7.d0 * (rho + vdw_buf_delta)**6 * t1) / (soft_alpha *(1.d0 - soft_lambda)**2 + (rho + vdw_buf_delta)**7)&#039;&#039;&#039;&lt;br /&gt;
          &#039;&#039;&#039;dt2drho = (-7.d0 * rho**6 * t2) / (soft_alpha * (1.d0 - soft_lambda)**2 + rho**7 + vdw_buf_gamma)&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;endif&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;end do&#039;&#039;&#039;&lt;br /&gt;
    f = eps * t1 * (t2 - 2.d0)&lt;br /&gt;
    dfdr = eps * (dt1drho * (t2 - 2.d0) + t1 * dt2drho) * drhodr&lt;br /&gt;
The modification to the long-range correction is to separate out the ligand contribution:&lt;br /&gt;
 total vdw type count =Other+Ligand&lt;br /&gt;
 (O+L)*(O+L)=O*O+O*L+L*O+L*L&lt;br /&gt;
 O=T-L, so&lt;br /&gt;
 O*L+L*O+L*L=(T-L)*L+L*(T*L)+L*L=T*L+L*T-L*L&lt;br /&gt;
&lt;br /&gt;
==== amoeba_vdw.f  ====&lt;br /&gt;
&lt;br /&gt;
*modify subroutine am_vdw_longrange_factor&lt;br /&gt;
&lt;br /&gt;
 subroutine am_vdw_longrange_factor(atm_cnt)&lt;br /&gt;
 &lt;br /&gt;
 use mdin_amoeba_dat_mod, only&amp;amp;nbsp;: do_vdw_taper, &#039;&#039;&#039;soft_lamda,AMOEBA_read_soft, &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
                              &#039;&#039;&#039; soft_atom_range1,soft_atom_range2,soft_line,&amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
                               &#039;&#039;&#039;vdw_longrange_lambda&#039;&#039;&#039;&lt;br /&gt;
 use gbl_constants_mod, only&amp;amp;nbsp;: PI&lt;br /&gt;
 &lt;br /&gt;
 implicit none&lt;br /&gt;
 &lt;br /&gt;
 ! Formal arguments:&lt;br /&gt;
 &lt;br /&gt;
 integer, intent(in)  &amp;amp;nbsp;:: atm_cnt&lt;br /&gt;
 &lt;br /&gt;
 ! Local variables:&lt;br /&gt;
 &lt;br /&gt;
 integer              &amp;amp;nbsp;:: ier, n, nt, kdel, ndel, i, j&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;integer &amp;amp;nbsp;:: i_range,i_soft,i_soft_type&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 double precision     &amp;amp;nbsp;:: r, r1, r2, r3, r4, r5&lt;br /&gt;
 double precision     &amp;amp;nbsp;:: req, eps, f, sume, sumv, t1, t2, rho, switch, delr&lt;br /&gt;
 double precision     &amp;amp;nbsp;:: dt1drho, dt2drho, drhodr, dfdr, dswitch_dr, g1, g2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;integer,save,allocatable&amp;amp;nbsp;:: lig_type_ct(:)&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;if (vdw_longrange_lambda .ne. 1.0 .or. soft_lamda .ne. 1.0) then&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
   &#039;&#039;&#039; call AMOEBA_read_soft()&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;endif&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;allocate(lig_type_ct(vdw_param_cnt),stat=ier)&#039;&#039;&#039;&lt;br /&gt;
 do n = 1, vdw_param_cnt&lt;br /&gt;
 vdw_type_count(n) = 0&lt;br /&gt;
 &#039;&#039;&#039;lig_type_ct(n) = 0&#039;&#039;&#039;&lt;br /&gt;
 end do&lt;br /&gt;
 do n = 1, atm_cnt&lt;br /&gt;
 nt = vdw_atom_type(n)&lt;br /&gt;
 vdw_type_count(nt) = vdw_type_count(nt) + 1&lt;br /&gt;
 &#039;&#039;&#039;do i_range = 1, soft_line&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039; if (n .ge. soft_atom_range1(i_range).and. n.le.soft_atom_range2(i_range)) then&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039; lig_type_ct(nt) = lig_type_ct(nt) + 1&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039; endif&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;enddo&#039;&#039;&#039;&lt;br /&gt;
 end do&lt;br /&gt;
 &lt;br /&gt;
 ...skipping...&lt;br /&gt;
 &lt;br /&gt;
  &amp;amp;nbsp;! Note the 2 * pi below not 4 * pi---since we do each i, j pair 2x.&lt;br /&gt;
   ene_vdw_longrange_factor = ene_vdw_longrange_factor + 2.d0 * PI * sume * (vdw_type_count(i)*vdw_type_count(j) &amp;amp;amp;&lt;br /&gt;
   &#039;&#039;&#039;-(1-vdw_longrange_lambda)*(lig_type_ct(i)*vdw_type_count(j)+(vdw_type_count(i)-lig_type_ct(i))*lig_type_ct(j))&#039;&#039;&#039;) &lt;br /&gt;
 &lt;br /&gt;
    vir_vdw_longrange_factor = vir_vdw_longrange_factor + 2.d0 * PI * sumv * (vdw_type_count(i)*vdw_type_count(j) &amp;amp;amp;&lt;br /&gt;
   &#039;&#039;&#039;-(1-vdw_longrange_lambda)*(lig_type_ct(i)*vdw_type_count(j)+(vdw_type_count(i)-lig_type_ct(i))*lig_type_ct(j))&#039;&#039;&#039;) &lt;br /&gt;
  end do&lt;br /&gt;
 end do&lt;br /&gt;
 &lt;br /&gt;
 return&lt;br /&gt;
 &lt;br /&gt;
 end subroutine am_vdw_longrange_factor&lt;br /&gt;
The modification to the long-range correction is to separate out the ligand contribution:&lt;br /&gt;
 total vdw type count =Other+Ligand&lt;br /&gt;
 (O+L)*(O+L)=O*O+O*L+L*O+L*L&lt;br /&gt;
 O=T-L, so&lt;br /&gt;
 O*L+L*O+L*L=(T-L)*L+L*(T*L)+L*L=T*L+L*T-L*L&lt;br /&gt;
&lt;br /&gt;
= AMBER modification to use special damping factor of metal ions (Ca2+, Mg2+ and Zn2+)  =&lt;br /&gt;
&lt;br /&gt;
== SANDER 10  ==&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;&#039;Sander 10&#039;&#039;&#039;: There are three files modified: amoeba_interface.f, amoeba_induced.f and&amp;amp;nbsp;sander.f. &lt;br /&gt;
&lt;br /&gt;
 In tinker, we did: polarity(i)**sixth*pgmion(i) where pgmion is 1.6 for Mg++;&lt;br /&gt;
 in amber, sq_polinv(i) is the sqrt(alpha_i); where alpha_i is the atomic polarizability&lt;br /&gt;
 exp{-0.39*[r/(alphai^1/6*alphaj^1/6)]^3}&lt;br /&gt;
&lt;br /&gt;
*In amoeba_induced.f, add mass variable in function AM_INDUCED_readparm.&lt;br /&gt;
&lt;br /&gt;
 function AM_INDUCED_readparm(nf,num_atoms,&#039;&#039;&#039;mass&#039;&#039;&#039;)&lt;br /&gt;
 integer&amp;amp;nbsp;:: AM_INDUCED_readparm&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,num_atoms&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Then insert the following lines in the same function&lt;br /&gt;
&lt;br /&gt;
   do n = 1,numpolar&lt;br /&gt;
  if ( polarizability(n) &amp;amp;gt; polmin )then&lt;br /&gt;
     is_polarizable(n) = .true.&lt;br /&gt;
     sq_polinv(n) = 1.d0 / sqrt(polarizability(n))&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;if ( abs(mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
    &#039;&#039;&#039;          write (6,*) &amp;quot;Ca damp&amp;quot;,n,mass(n),polarizability(n) &#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;   if ( abs(mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;        write (6,*) &amp;quot;Mg damp&amp;quot;,n,mass(n),polarizability(n) &#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;  if ( abs(mass(n) - 40.078) &amp;amp;lt; 0.0001d0  ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;          sq_polinv(n) = 1 /1.35d0**3*sq_polinv(n) &#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039; if ( abs(mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;       sq_polinv(n) = 1 /1.60d0**3*sq_polinv(n)&#039;&#039;&#039;  &lt;br /&gt;
      &#039;&#039;&#039;if ( abs(mass(n) - 65.409) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
              &#039;&#039;&#039;write (6,*) &amp;quot;Zn damp&amp;quot;,n,mass(n),polarizability(n)&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;  if ( abs(mass(n) - 65.409) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
           &#039;&#039;&#039;   sq_polinv(n) = 1 /1.23d0**3*sq_polinv(n)&#039;&#039;&#039;&lt;br /&gt;
  endif&lt;br /&gt;
 enddo&lt;br /&gt;
 AM_INDUCED_readparm = 1&lt;br /&gt;
 do_flag = ibset(do_flag,VALID_BIT)&lt;br /&gt;
 &lt;br /&gt;
 call cg_init(num_atoms)&lt;br /&gt;
 &lt;br /&gt;
 end function AM_INDUCED_readparm&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
*After that, add mass variables and its definition in any programs or subroutines that is related to this function.&lt;br /&gt;
&lt;br /&gt;
In amoeba_interface.f &lt;br /&gt;
&lt;br /&gt;
 subroutine AM_NONBOND_readparm(nf,natom,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 use amoeba_multipoles, only&amp;amp;nbsp;: AM_MPOLE_readparm&lt;br /&gt;
 use amoeba_adjust, only&amp;amp;nbsp;: AM_ADJUST_readparm&lt;br /&gt;
 use amoeba_vdw, only&amp;amp;nbsp;: AM_VDW_read_parm&lt;br /&gt;
 use amoeba_induced, only&amp;amp;nbsp;: AM_INDUCED_readparm&lt;br /&gt;
 use amoeba_recip, only&amp;amp;nbsp;: AM_RECIP_allocate&lt;br /&gt;
 use amoeba_runmd, only&amp;amp;nbsp;: AM_RUNMD_init&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,natom&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 integer:: mpole_valid,adjust_valid,vdw_valid,polar_valid&lt;br /&gt;
 mpole_valid = AM_MPOLE_readparm(nf,natom)&lt;br /&gt;
 adjust_valid = AM_ADJUST_readparm(nf)&lt;br /&gt;
 vdw_valid = AM_VDW_read_parm(nf)&lt;br /&gt;
 polar_valid = AM_INDUCED_readparm(nf,natom,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
 subroutine AMOEBA_readparm(nf,ntf,ntc,numatoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 use amoeba_mdin, only&amp;amp;nbsp;: iamoeba&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,numatoms&lt;br /&gt;
 integer,intent(inout)&amp;amp;nbsp;:: ntf,ntc&amp;amp;nbsp;!set these to 8,1 if amoeba-friendly prmtop&lt;br /&gt;
 !so regular amber valence &amp;amp;amp; shake not run&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 call AMOEBA_check_parm_legal(nf)&lt;br /&gt;
 if ( iamoeba /= 1 )return&lt;br /&gt;
 call AM_VAL_readparm(nf,ntf,ntc)&lt;br /&gt;
 call AM_NONBOND_readparm(nf,numatoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 end subroutine AMOEBA_readparm&lt;br /&gt;
&lt;br /&gt;
In sander.f &lt;br /&gt;
&lt;br /&gt;
 call rdparm2(x,ix,ih,ipairs,8) &lt;br /&gt;
 call AMOEBA_readparm(8,ntf,ntc,natom,&#039;&#039;&#039;&#039;&#039;x(lmass)&#039;&#039;&#039;&#039;&#039;)! ntf,ntc get reset if amoeba prmtop&lt;br /&gt;
&lt;br /&gt;
== PMEMD 10  ==&lt;br /&gt;
&lt;br /&gt;
*In amoeba_induced.fpp, add&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;nbsp;! The data previously in the sq_polinv array is now stored in atm_qterm()&lt;br /&gt;
 &amp;amp;nbsp;! over in prmtop_dat_mod.  This is the easiest way to switch between using&lt;br /&gt;
 &amp;amp;nbsp;! a field in the img type for something useful in both amber pme and amoeba.&lt;br /&gt;
 &lt;br /&gt;
 do n = 1, polar_atm_cnt&lt;br /&gt;
  if (polarizability(n) .gt. polmin) then&lt;br /&gt;
    is_polarizable(n) = .true.&lt;br /&gt;
    atm_qterm(n) = 1.d0 / sqrt(polarizability(n))&lt;br /&gt;
    &#039;&#039;&#039;if ( abs(atm_mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;  write (6,*) &amp;quot;Ca damp&amp;quot;,n,atm_mass(n),polarizability(n)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039; if ( abs(atm_mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;  atm_qterm(n) = 1 /1.35d0**3*atm_qterm(n)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039; if ( abs(atm_mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;  write (6,*) &amp;quot;Mg damp&amp;quot;,n,atm_mass(n),polarizability(n)&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;if ( abs(atm_mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
      &#039;&#039;&#039;atm_qterm(n) = 1 /1.60d0**3*atm_qterm(n)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039; if ( abs(atm_mass(n) - 65.409) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
      &#039;&#039;&#039;write (6,*) &amp;quot;Zn damp&amp;quot;,n,atm_mass(n),polarizability(n)&#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039; if ( abs(atm_mass(n) - 65.409) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
     &#039;&#039;&#039; atm_qterm(n) = 1 /1.23d0**3*atm_qterm(n)&#039;&#039;&#039;&lt;br /&gt;
  else&lt;br /&gt;
    is_polarizable(n) = .false.&lt;br /&gt;
    atm_qterm(n) = 1.d0 / sqrt(polmin)&lt;br /&gt;
  end if&lt;br /&gt;
  ind_dip_d(:, n) = 0.d0&lt;br /&gt;
  ind_dip_p(:, n) = 0.d0&lt;br /&gt;
 end do&lt;br /&gt;
&lt;br /&gt;
= HFE Automation  =&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;How to use tinker and amber together (translated)&#039;&#039;&#039;  ==&lt;br /&gt;
&lt;br /&gt;
-added by xiaojia &lt;br /&gt;
&lt;br /&gt;
most importantly, make sure you can get consistent energy from both software, &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Correction &amp;quot;do_vdw_longrange=1&amp;quot; works if you add &amp;quot;VDW-CORRECTION&amp;quot; to the *.key for tinker&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
1) cut offs in Vdw and ewald for both should be the same. &lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;pme-grid&amp;quot; in Tinker.key (I don&#039;t have this in my mono.key...)= &amp;quot;nfft1=36,nfft2=36,nfft3=36,&amp;quot; in amber.mdin &lt;br /&gt;
&lt;br /&gt;
3) &amp;quot;polar-eps(default =10^-6)&amp;quot;in Tinker.key = &amp;quot;dipole_scf_tol&amp;quot; in amber.mdin &lt;br /&gt;
&lt;br /&gt;
4) &amp;quot;polar-sor&amp;quot; in Tinker.key = &amp;quot;sor_coefficient&amp;quot; in amber.mdin &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;5) change &amp;quot;do_vdw_longrange=1&amp;quot; to &amp;quot;=0&amp;quot;, because in thinker it is off&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
6) &amp;quot;ewald-alpha&amp;quot; in Tinker.key = &amp;quot;ew_coeff&amp;quot; in amber.mdin &lt;br /&gt;
&lt;br /&gt;
7) &amp;quot;pme-order&amp;quot; in Tinker.key = the &amp;quot;order&amp;quot; in amber.mdin &lt;br /&gt;
&lt;br /&gt;
== Introduction  ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;hfe_setup.pl&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
*This script is used to set up all free energy perturbation steps automatically to calculate hydration free energy. &lt;br /&gt;
**1. Scale the electrostatic and VDW parameters first and then in TINKER4 and then convert all the related files in each step to amber format. &lt;br /&gt;
**2. Setup all BAR analysis files for each step &lt;br /&gt;
**3. Setup gas phase intramolecular recharging steps for the ligand &lt;br /&gt;
**4. Equilibration of the lig-wat system for 100ps before starting FEP&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Files needed:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
a. xyz file of the small molecule (lig.xyz) &lt;br /&gt;
&lt;br /&gt;
b. parameter file in TINKER4 format (amoeba.prm) &lt;br /&gt;
&lt;br /&gt;
c. xyz file of the water box (watbox.xyz) &lt;br /&gt;
&lt;br /&gt;
d. amber mdin template (tmp_amber.mdin) &#039;&#039;&#039;Note this format only works for sander 8 or 9. 10 uses iamoeba instead of do_amoeba. verbose is replaced by amoeba_verbose=0&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 short md, nve ensemble&lt;br /&gt;
 &amp;amp;amp;cntrl&lt;br /&gt;
 irest=0,&lt;br /&gt;
 nstlim=500000,&lt;br /&gt;
 ntpr=500, ntwr=500,ntave=500,&lt;br /&gt;
 nscm=500,ntwx=500,&lt;br /&gt;
 dt=0.001, vlimit=10.0,&lt;br /&gt;
 cut=12.,maxcyc=50,ntmin=2,imin=0,&lt;br /&gt;
 ntt=1, temp0=298.0,tempi=298.0,tautp=0.5,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;ewald&lt;br /&gt;
 nfft1=36,nfft2=36,nfft3=36,&lt;br /&gt;
 skinnb=0.8,nbtell=0,order=5,ew_coeff=0.45,&lt;br /&gt;
 /&lt;br /&gt;
 &amp;amp;amp;amoeba&lt;br /&gt;
 do_induced=1,do_recip=1,do_direct=1,do_adjust=1,&lt;br /&gt;
 do_amoeba=1,do_amoeba_nonbond=1,do_amoeba_valence=1,beeman_integrator=1,&lt;br /&gt;
 do_bond=1,do_ureyb=1,do_reg_angle=1,do_trig_angle=1,&lt;br /&gt;
 do_opbend=1,do_torsion=1,do_str_torsion=1,do_pi_torsion=1,do_strbend=1,&lt;br /&gt;
 do_torsion_torsion=1,&lt;br /&gt;
 do_vdw=1,verbose=.false.,do_vdw_longrange=1,do_vdw_taper=1,&lt;br /&gt;
 do_self=1,dipole_scf_tol = 0.01,dipole_scf_iter_max=30,&lt;br /&gt;
 sor_coefficient=0.7,ee_damped_cut=4.5,ee_dsum_cut=6.8,&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
e. optional: input file &lt;br /&gt;
&lt;br /&gt;
 lig.xyz      #ligand xyz file&lt;br /&gt;
 amoeba.prm   #tinker4 parameter file&lt;br /&gt;
 watbox.xyz   #water box file&lt;br /&gt;
 28.77        #size of the water box (a-axis)&lt;br /&gt;
 12.0         #cutoff for simulation&lt;br /&gt;
 n            #using default electrostatic scaling protocol?  &lt;br /&gt;
 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 # manuallt assign protocol&lt;br /&gt;
 n            #using default vdw scaling protocol?  &lt;br /&gt;
 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0     # manuallt assign protocol&lt;br /&gt;
 tmp_amber.mdin #amber mdin template&lt;br /&gt;
&lt;br /&gt;
*Usage&lt;br /&gt;
&lt;br /&gt;
 $ hfe_setup.pl &lt;br /&gt;
 Enter Cartesian Coordinate File Name of the ligand:&lt;br /&gt;
 mes.xyz&lt;br /&gt;
 Input the parameter files(.prm):&lt;br /&gt;
 amoeba_2009_ver4.prm.isoprop&lt;br /&gt;
 Enter the file name of waterbox(.xyz):&lt;br /&gt;
 box30.xyz&lt;br /&gt;
 Input the size of the box:&lt;br /&gt;
 28.77&lt;br /&gt;
 Enter the cutoff you want:&lt;br /&gt;
 12.0&lt;br /&gt;
 Would you like to use the default electrostatic scaling scheme&lt;br /&gt;
 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0  [Y/N]?&lt;br /&gt;
 y&lt;br /&gt;
 Would you like to use the default Van der Waals scaling scheme&lt;br /&gt;
 0.9 0.8 0.75 0.7 0.65 0.6 0.5 0.4 0.2 0  [Y/N]?&lt;br /&gt;
 n&lt;br /&gt;
 How do you want to scale the van der Waals(0.9 0.8 ... 0.0:&lt;br /&gt;
 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0&lt;br /&gt;
 Input the mdin file template:&lt;br /&gt;
 tmp_amber.mdin&lt;br /&gt;
&lt;br /&gt;
For comvenience, you can make an input file (see above) and type &lt;br /&gt;
&lt;br /&gt;
 $hfe_setup.pl &amp;amp;lt; input &amp;amp;amp;&lt;br /&gt;
&lt;br /&gt;
When you see &lt;br /&gt;
&lt;br /&gt;
 The equilibration takes approximately 2 days.&lt;br /&gt;
 Please start jobs until then.&lt;br /&gt;
 27580&lt;br /&gt;
&lt;br /&gt;
It means equilibration has already started. You can start simulation jobs for each step when equilibration is complete. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;BAR-amber&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
*This program is for analyzing the free energy change of perturbation of a MD simulation using Bennet Acceptance Ratio. The program requires two energy output files for two frame sets from AMBER, totally four. &lt;br /&gt;
*Usage&lt;br /&gt;
&lt;br /&gt;
 BAR-amber ii.e ij.e ji.e jj.e start_frame end_frame guessed_init&lt;br /&gt;
&lt;br /&gt;
ii.e: energy file with first trajectory and first prm file &lt;br /&gt;
&lt;br /&gt;
ij.e: energy file with first trajectory and second prm file &lt;br /&gt;
&lt;br /&gt;
ji.e: energy file with second trajectory and first prm file &lt;br /&gt;
&lt;br /&gt;
jj.e: energy file with second trajectory and second prm file &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;BAR-tinker&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
*This program is for analyzing the free energy change of perturbation of gas phase intramolecular recharging process using Bennet Acceptance Ratio. The program requires two energy output files for two frame sets from TINKER, totally four. &lt;br /&gt;
*Usage&lt;br /&gt;
&lt;br /&gt;
 BAR-tinker ii.e ij.e ji.e jj.e start_frame end_frame guessed_init&lt;br /&gt;
&lt;br /&gt;
ii.e: energy file with first trajectory and first prm file &lt;br /&gt;
&lt;br /&gt;
ij.e: energy file with first trajectory and second prm file &lt;br /&gt;
&lt;br /&gt;
ji.e: energy file with second trajectory and first prm file &lt;br /&gt;
&lt;br /&gt;
jj.e: energy file with second trajectory and second prm file &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;amoeba_conv.pl&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
*This program is to covert parameter files between tinker4 and tinker5. &lt;br /&gt;
*Currently, AMBER only recognizes TINKER4 parameter format. So if you have a TINKER5 format parameter file, you need to convert it to TINKER4. &lt;br /&gt;
*Usage&lt;br /&gt;
&lt;br /&gt;
 amoeba_conv.pl input_param out_param 0/1(0 for tinker4-tinker5,1 for tinker5-tinker4)&lt;br /&gt;
&lt;br /&gt;
== Note  ==&lt;br /&gt;
&lt;br /&gt;
When we scale the electrostatic parameters and polarizability of solute to 0, we actually can not put exact 0 for all charge, dipoles and quadrupoles for that type in the prm file. Tinker would think sites of this type can be deleted (instead of having zero parameters) which cause problem when we do perturbation later. So we get around this by give a charge of 0.00001 (all other dipole and quadrupole are zeros). This way TINKER will keep it as a multipole site. But when you run &amp;quot;analyze * PC&amp;quot;, it only prints out the first few zeros (this file is then converted into amber prmtop) so effectively this site has 0 electrostatics. &lt;br /&gt;
&lt;br /&gt;
== Examples and Test  ==&lt;br /&gt;
&lt;br /&gt;
Example files are in: http://biomol.bme.utexas.edu/~yues/download/example &lt;br /&gt;
&lt;br /&gt;
== Download  ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;hfe_setup.pl&#039;&#039;&#039;:http://biomol.bme.utexas.edu/~yues/download/hfe_setup.pl &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;amoeba_conv.pl&#039;&#039;&#039;:http://biomol.bme.utexas.edu/~yues/download/amoeba_conv.pl &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BAR-amber&#039;&#039;&#039;:http://biomol.bme.utexas.edu/~yues/download/BAR-amber &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BAR-tinker&#039;&#039;&#039;:http://biomol.bme.utexas.edu/~yues/download/BAR-tinker &lt;br /&gt;
&lt;br /&gt;
= AMBER modification to use special damping factor of metal ions (Ca2+, Mg2+ and Zn2+)  =&lt;br /&gt;
&lt;br /&gt;
== SANDER  ==&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;&#039;Sander 9&#039;&#039;&#039;: There are three files modified: amoeba_interface.f, amoeba_induced.f and&amp;amp;nbsp;sander.f. &lt;br /&gt;
&lt;br /&gt;
 In tinker, we did: polarity(i)**sixth*pgmion(i) where pgmion is 1.6 for Mg++;&lt;br /&gt;
 in amber, sq_polinv(i) is the sqrt(alpha_i); where alpha_i is the atomic polarizability&lt;br /&gt;
 exp{-0.39*[r/(alphai^1/6*alphaj^1/6)]^3}&lt;br /&gt;
&lt;br /&gt;
*In amoeba_induced.f, add mass variable in function AM_INDUCED_readparm.&lt;br /&gt;
&lt;br /&gt;
 function AM_INDUCED_readparm(nf,num_atoms,&#039;&#039;&#039;mass&#039;&#039;&#039;)&lt;br /&gt;
 integer&amp;amp;nbsp;:: AM_INDUCED_readparm&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,num_atoms&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Then insert the following lines in the same function&lt;br /&gt;
&lt;br /&gt;
   do n = 1,numpolar&lt;br /&gt;
  if ( polarizability(n) &amp;amp;gt; polmin )then&lt;br /&gt;
     is_polarizable(n) = .true.&lt;br /&gt;
     sq_polinv(n) = 1.d0 / sqrt(polarizability(n))&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;if ( abs(mass(n) - 40.078) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
    &#039;&#039;&#039;          write (6,*) &amp;quot;Ca damp&amp;quot;,n,mass(n),polarizability(n) &#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;   if ( abs(mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;        write (6,*) &amp;quot;Mg damp&amp;quot;,n,mass(n),polarizability(n) &#039;&#039;&#039;&lt;br /&gt;
   &#039;&#039;&#039;  if ( abs(mass(n) - 40.078) &amp;amp;lt; 0.0001d0  ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039;          sq_polinv(n) = 1 /1.35d0**3*sq_polinv(n) &#039;&#039;&#039;&lt;br /&gt;
    &#039;&#039;&#039; if ( abs(mass(n) - 24.305) &amp;amp;lt; 0.0001d0 ) &amp;amp;amp;&#039;&#039;&#039;&lt;br /&gt;
       &#039;&#039;&#039;       sq_polinv(n) = 1 /1.60d0**3*sq_polinv(n)&#039;&#039;&#039;  &lt;br /&gt;
  endif&lt;br /&gt;
 enddo&lt;br /&gt;
 AM_INDUCED_readparm = 1&lt;br /&gt;
 do_flag = ibset(do_flag,VALID_BIT)&lt;br /&gt;
 end function AM_INDUCED_readparm&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
*After that, add mass variables and its definition in any programs or subroutines that is related to this function.&lt;br /&gt;
&lt;br /&gt;
In amoeba_interface.f &lt;br /&gt;
&lt;br /&gt;
 subroutine AM_NONBOND_readparm(nf,natom,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 use amoeba_multipoles, only&amp;amp;nbsp;: AM_MPOLE_readparm&lt;br /&gt;
 use amoeba_adjust, only&amp;amp;nbsp;: AM_ADJUST_readparm&lt;br /&gt;
 use amoeba_vdw, only&amp;amp;nbsp;: AM_VDW_read_parm&lt;br /&gt;
 use amoeba_induced, only&amp;amp;nbsp;: AM_INDUCED_readparm&lt;br /&gt;
 use amoeba_recip, only&amp;amp;nbsp;: AM_RECIP_allocate&lt;br /&gt;
 use amoeba_runmd, only&amp;amp;nbsp;: AM_RUNMD_init&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,natom&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 integer:: mpole_valid,adjust_valid,vdw_valid,polar_valid&lt;br /&gt;
 mpole_valid = AM_MPOLE_readparm(nf,natom)&lt;br /&gt;
 adjust_valid = AM_ADJUST_readparm(nf)&lt;br /&gt;
 vdw_valid = AM_VDW_read_parm(nf)&lt;br /&gt;
 polar_valid = AM_INDUCED_readparm(nf,natom,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 subroutine AMOEBA_readparm(nf,ntf,ntc,numatoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
 use amoeba_mdin, only&amp;amp;nbsp;: iamoeba&lt;br /&gt;
 integer,intent(in)&amp;amp;nbsp;:: nf,numatoms&lt;br /&gt;
 integer,intent(inout)&amp;amp;nbsp;:: ntf,ntc&amp;amp;nbsp;!set these to 8,1 if amoeba-friendly prmtop&lt;br /&gt;
 !so regular amber valence &amp;amp;amp; shake not run&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;_REAL_ mass(*)&#039;&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 call AMOEBA_check_parm_legal(nf)&lt;br /&gt;
 if ( iamoeba /= 1 )return&lt;br /&gt;
 call AM_VAL_readparm(nf,ntf,ntc)&lt;br /&gt;
 call AM_NONBOND_readparm(nf,numatoms,&#039;&#039;&#039;&#039;&#039;mass&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 end subroutine AMOEBA_readparm&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;iamoeba above is for sander 9; do_amoeba for sander 8&#039;&#039;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
In sander.f &lt;br /&gt;
&lt;br /&gt;
 call rdparm2(x,ix,ih,ipairs,8) &lt;br /&gt;
 call AMOEBA_readparm(8,ntf,ntc,natom,&#039;&#039;&#039;&#039;&#039;x(lmass)&#039;&#039;&#039;&#039;&#039;)! ntf,ntc get reset if amoeba prmtop&lt;br /&gt;
 if (qmmm_nml%ifqnt) then&lt;br /&gt;
&lt;br /&gt;
call read_qmmm_namelist_and_allocate(igb, ih, ix, x, cut, use_pme, ntb) end if call mdread2(x,ix,ih,ipairs)&amp;amp;nbsp;! --- alloc memory for decomp module that needs info from mdread2 &lt;br /&gt;
&lt;br /&gt;
== PMEMD  ==&lt;br /&gt;
&lt;br /&gt;
? &lt;br /&gt;
&lt;br /&gt;
= [[Softcore modifications to fixed-charge models in AMBER11|Softcore modifications to fixed-charge models in AMBER11]]  =&lt;br /&gt;
&lt;br /&gt;
= [[REMD modifications to AMOEBA in AMBER10|REMD modifications to AMOEBA in AMBER10]]  =&lt;br /&gt;
&lt;br /&gt;
= Tips running AMOBEA in AMBER  =&lt;br /&gt;
&lt;br /&gt;
*When go from tinker and amber, tinker.xyz must match tinker.pdb (order etc.)&lt;br /&gt;
&lt;br /&gt;
Use xyzpdb to generate a PDB that is consistent with xyz. But you have to do it twice, one with tinker.seq (which is produced early when pdbxyz); and the other is without the presence of tinker.seq. the former has correct residue id and name, but the atom order may be different than that xyz file. the later has correct order but incorrect residue name or ID. &lt;br /&gt;
&lt;br /&gt;
Then combine the two using ~yues/bin/pdb_crct.pl &lt;br /&gt;
&lt;br /&gt;
*Octahedron (when you use amoeba_parm generate inpcrd and prmtop from tinker, and you want to use octahedron:)&lt;br /&gt;
&lt;br /&gt;
Change the last two lines in the generated inpcrd file. &lt;br /&gt;
&lt;br /&gt;
 Angle: from 90 to 109.4712; 0.109471219000E+03  0.109471219000E+03  0.109471219000E+03&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
In the gnerated prmtop file, two places need to be changed. In the last second row of FLAG POINTERS, &lt;br /&gt;
&lt;br /&gt;
change the value 1 (the last third) to 2 meaning octahedron.&amp;amp;nbsp;%FLAG POINTERS&amp;amp;nbsp;%FORMAT(10I8) &lt;br /&gt;
&lt;br /&gt;
   1170       1       1       1       1       1       1       1       0       0&lt;br /&gt;
 1170     390       1       1       1       1       1       1       1       1&lt;br /&gt;
    0       0       0       0       0       0       0       2       0       0&lt;br /&gt;
    0       0&lt;br /&gt;
&lt;br /&gt;
%FLAG ATOM_NAME &lt;br /&gt;
&lt;br /&gt;
ALso change the angle (search BOX) from 90 to 109 0.90E2 to 0.10947122E+03 &lt;br /&gt;
&lt;br /&gt;
*typical set up in tinker/pmemd/sander MD simulations&lt;br /&gt;
&lt;br /&gt;
Example mdin files for ppmemd and sander: http://biomol.bme.utexas.edu/wiki/index.php/Research:Amber_tips_pr#direcories_in_.2Fhome.2Fpren.2FAMOEBA.2Fsolvation.2Fcompare.2F &lt;br /&gt;
&lt;br /&gt;
 vdw 12 (or 9) + LRC&lt;br /&gt;
 nfft = 1.2 * box size (kewald.f has the list, has ot be the product of powers of 2,3,5) &lt;br /&gt;
 polar-eps 0.01 &lt;br /&gt;
 polar-sor &amp;amp;gt;= 0.6 (0.7 is good)&lt;br /&gt;
 do_longrange=1&lt;br /&gt;
 tautp=0.5&lt;br /&gt;
&lt;br /&gt;
= PMEMD benchmark  =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ranger and lonestar (infini band network) becnhamrk:&#039;&#039;&#039; 32-48 CPUs for large systems (50k atoms) &lt;br /&gt;
&lt;br /&gt;
[[Image:Pmemd-scaling1.png]] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Gigabit cluster benchmark: Using 2x4-core compute nodes (used to be stampede on tacc) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;pmemd v10 mpich2-fc7 23000 atoms, 1000 steps 1ps (Jenny) &lt;br /&gt;
&lt;br /&gt;
 corexnode  cpu_time   wall_time&lt;br /&gt;
 8x1        0.35 hr    0.37 hr&lt;br /&gt;
 8x2        0.21 hr    0.5 hr&lt;br /&gt;
 8x4        0.17 hr    1.24 hr&lt;br /&gt;
 Lonestar16  0.15hr    0.15 hr&lt;br /&gt;
 Lonestar32  0.11 hr   0.14 hr&lt;br /&gt;
 Ranger16    0.20 hr   0.20 hr&lt;br /&gt;
 Ranger32    0.15 hr   0.15 hr&lt;br /&gt;
&lt;br /&gt;
pmemd v10 mpich2-fc7 14000 atoms, 1000 steps 1ps (Jenny using yue&#039;s system) &lt;br /&gt;
&lt;br /&gt;
 oldnode4x1    0.205hr   0.207 hr&lt;br /&gt;
 newnode4x1    0.24 hr    0.24 hr&lt;br /&gt;
 newnode8x1    0.18 hr    0.18 hr &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;pmemd v10, mpich2-1.2.1p1-2.fc13, 10000 atoms, 1000 steps (1 ps) &lt;br /&gt;
&lt;br /&gt;
 cores  CPU time  wall time&lt;br /&gt;
 4x1    0.17 hr   0.18 hr&lt;br /&gt;
 8x1    0.14 hr   0.16 hr&lt;br /&gt;
 4x2    0.12 hr   0.23 hr&lt;br /&gt;
 8x2    0.11 hr   0.25 hr&lt;br /&gt;
&lt;br /&gt;
= Install pmemd.amoeba with Amber12  =&lt;br /&gt;
&lt;br /&gt;
on bme-nova or water? &lt;br /&gt;
&lt;br /&gt;
1. get the latest version of amber12 from /home/pren/amber12/yues/src/pmemd.amoeba/src or /home/yues/program/amber12/src/pmemd.amoeba/src &lt;br /&gt;
&lt;br /&gt;
  OLD: ~pren/amber-git/&lt;br /&gt;
&lt;br /&gt;
2. set new AMBERHOME environment variable: &lt;br /&gt;
&lt;br /&gt;
    export AMBERHOME=/users/jzhen/amber12 # (bash)&lt;br /&gt;
  setenv AMBERHOME /users/jzhen/amber12 # (csh, tcsh)&lt;br /&gt;
  &lt;br /&gt;
 also  add $AMBERHOME/bin to your PATH.&lt;br /&gt;
&lt;br /&gt;
3. add Intel compiler and mpi path: &lt;br /&gt;
&lt;br /&gt;
    source /opt/intel/cce/10.0.023/bin/iccvars.csh&lt;br /&gt;
  source /opt/intel/fce/10.0.023/bin/ifortvars.csh&lt;br /&gt;
  setenv MPI_HOME /opt/mpich2-fc13-p26&lt;br /&gt;
  setenv PATH $PATH&#039;:/opt/mpich2-fc13-p26/bin&#039;&lt;br /&gt;
  setenv LD_LIBRARY_PATH /opt/intel/fce/10.0.023/lib:$LD_LIBRARY_PATH &lt;br /&gt;
  setenv LD_LIBRARY_PATH /opt/intel/cce/10.0.023/lib:$LD_LIBRARY_PATH&lt;br /&gt;
  source /opt/intel/fce/10.0.023/lib&lt;br /&gt;
  source /opt/intel/cce/10.0.023/lib  &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
4. set C and Fortran compiler to intel: &lt;br /&gt;
&lt;br /&gt;
    setenv I_MPI_CC icc   &lt;br /&gt;
  setenv I_MPI_CXX icpc &lt;br /&gt;
  setenv I_MPI_F77 ifort&lt;br /&gt;
  setenv I_MPI_F90 ifort&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
5. compile serial version first &lt;br /&gt;
&lt;br /&gt;
     cd $AMBERHOME   &lt;br /&gt;
   ./configure intel  &lt;br /&gt;
    cd src/pmemd.amoeba/src/&lt;br /&gt;
    make -j 8 install   &lt;br /&gt;
&lt;br /&gt;
6. then compile mpi version &lt;br /&gt;
&lt;br /&gt;
      cd $AMBERHOME  &lt;br /&gt;
                       &lt;br /&gt;
    ./configure -mpi intel&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
      ./configure -mpi -nofftw3 intel (if you have trouble with fftw3 during configure).&lt;br /&gt;
    change config.h as below   &lt;br /&gt;
&lt;br /&gt;
      important: the config.h use mpicc and mpif90, which is point to gcc and gfortran by default&lt;br /&gt;
     please modify config.h in src/config.h (example /home/yues/program/amber12/src/config.h.mpi)                        &lt;br /&gt;
     in #PMEMD Specific build flags,                                      &lt;br /&gt;
     add -f90=ifort to line PMEMD_F90=mpif90 -DMPI   src/pmemd.amoeba/src/make install &lt;br /&gt;
     change PMEMD_CC=mpicc to PMEMD_CC=icc                   &lt;br /&gt;
     change CC=mpicc to CC=icc  &lt;br /&gt;
    &lt;br /&gt;
    Then &lt;br /&gt;
     src/pmemd.amoeba/src/make install &lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
7. add setenv LD_LIBRARY_PATH /opt/mpich2-fc13-p26/lib:$LD_LIBRARY_PATH &lt;br /&gt;
&lt;br /&gt;
= Install Amber10 pmemd.amba on Stampede  =&lt;br /&gt;
&lt;br /&gt;
*The source code was taken from /home/yues/program/amber10/src/pmemd.amba/src-remd-respa&lt;br /&gt;
&lt;br /&gt;
*Used the default module loaded, i.e. intel/13 and mvapich2/1.9&lt;br /&gt;
&lt;br /&gt;
*The source on Stampede is located at&lt;br /&gt;
&lt;br /&gt;
 /work/01995/qw939/software/amber10/src/pmemd.amba/src-remd-respa&lt;br /&gt;
&lt;br /&gt;
*The executable is located at&lt;br /&gt;
&lt;br /&gt;
 /work/01995/qw939/software/amber10/exe/pmemd.amba&lt;br /&gt;
&lt;br /&gt;
1. Add following lines in &#039;&#039;configure&#039;&#039; file &lt;br /&gt;
&lt;br /&gt;
 32d31&lt;br /&gt;
 &amp;amp;lt;     linux_stampede      (Linux, Intel, x86_64)&lt;br /&gt;
 394,397d392&lt;br /&gt;
 &amp;amp;lt;     elif [ $platform = linux_stampede ]; then&lt;br /&gt;
 &amp;amp;lt;       cat &amp;amp;lt;&amp;amp;lt; EOD &amp;amp;gt;&amp;amp;gt; config.h&lt;br /&gt;
 &amp;amp;lt; MATH_LIBS = -L$MKL_HOME/lib/intel64 -lpthread&lt;br /&gt;
 &amp;amp;lt; EOD&lt;br /&gt;
&lt;br /&gt;
2. Then go to &lt;br /&gt;
&lt;br /&gt;
 /work/01995/qw939/software/amber10/src/pmemd.amba/config_data&lt;br /&gt;
&lt;br /&gt;
and create a template called &amp;quot;&#039;&#039;linux_stampede.ifort.mvapich&#039;&#039;&amp;quot; by copy contents from &amp;quot;&#039;&#039;linux_em64t.ifort&#039;&#039;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Then run &lt;br /&gt;
&lt;br /&gt;
 ./configure linux_stampede ifort mvapich&lt;br /&gt;
&lt;br /&gt;
This should give you a config.h file &lt;br /&gt;
&lt;br /&gt;
3. Manually add the following lines to the config.h file if they are missing: &lt;br /&gt;
&lt;br /&gt;
 MATH_DEFINES = -DMKL&lt;br /&gt;
 MATH_LIBS = -L/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64 -mkl=parallel -lpthread&lt;br /&gt;
 MPI_HOME = /opt/apps/intel13/mvapich2/1.9&lt;br /&gt;
 MPI_DEFINES = -DMPI -DSLOW_NONBLOCKING_MPI&lt;br /&gt;
 MPI_INCLUDE = -I$(MPI_HOME)/include&lt;br /&gt;
 MPI_LIBDIR2 = /opt/apps/intel13/mvapich2/1.9/lib&lt;br /&gt;
 MPI_LIBS = -L$(MPI_LIBDIR2) -lmpich -lrt -lpthread&lt;br /&gt;
&lt;br /&gt;
4. Comment &amp;quot;&#039;&#039;integer&amp;amp;nbsp;:: iargc_wrap&#039;&#039;&amp;quot; in subroutine &#039;&#039;get_cmdline()&#039;&#039; in &#039;&#039;get_cmdline.fpp&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
5. This should be able to get you the &#039;&#039;pmemd.amba&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
6. Tested with examples in: &lt;br /&gt;
&lt;br /&gt;
 /home/yues/testamber/ele1.0/respa/pmemd12-verlet-respa/&lt;br /&gt;
&lt;br /&gt;
and the REMD example: &lt;br /&gt;
&lt;br /&gt;
 /home/yues/program/amber12/test/rem_respa_amoeba/&lt;br /&gt;
&lt;br /&gt;
=AUTOMATION=&lt;br /&gt;
Shi Yue wrote an AMOEBA automation script for the Comp Chem group in Genentech recently, which includes the automation of parameter generation for the ligand using Poltype, preparing the protein for simulation, and setting up the simulation. &lt;br /&gt;
&lt;br /&gt;
She put a copy on our cluster in case someone is interested in using it. Please check the following directory for the script, readme file and the example.&lt;br /&gt;
&lt;br /&gt;
/home/yues/automation/new&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research_ex:Tinker_OLD&amp;diff=2087</id>
		<title>Research ex:Tinker OLD</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research_ex:Tinker_OLD&amp;diff=2087"/>
		<updated>2025-04-21T23:02:04Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Old version of Tinker tut page with some defunct stuff. Wanted to have it somewhere so it wasn&amp;#039;t lost&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Old version of Tinker tut page with some defunct stuff.&lt;br /&gt;
= How to specify different ensembles, choose thermostat etc in TINKER for MD simulations&amp;amp;nbsp; =&lt;br /&gt;
&lt;br /&gt;
You need a structure (e.g. protein.xyz) and matching key file (protein.key or tinker.key) to run MD. A typical key file for MD simulations looks like this (borrowed from tinker/bench/bench6.key in any distribution)&lt;br /&gt;
&lt;br /&gt;
 parameters            ../params/amoebapro13.prm&lt;br /&gt;
 &#039;&#039;# the amoebapro13.prm is the built in protein force field in tinker/params. If you can a ligand you can add the parameters below in the key file instead of built-in prm file.&#039;&#039;&lt;br /&gt;
 verbose                                &#039;&#039;# printing info for every step, for debugging mostly&#039;&#039;&lt;br /&gt;
 randomseed            123456789&lt;br /&gt;
 neighbor-list                       &#039;&#039;# this requires your box is twice the cutoff plus 2-3 Ang. If your box is too small for vdw cutoff but OK for Ewald, you can use &amp;quot;mpole-list&amp;quot; here.&#039;&#039;&lt;br /&gt;
 openmp-threads    16         &#039;&#039;# how many core you want to use on the node.&#039;&#039;&lt;br /&gt;
 #&lt;br /&gt;
 #  Define the Periodic Box and Cutoffs&lt;br /&gt;
 #&lt;br /&gt;
 a-axis                62.23&lt;br /&gt;
 vdw-cutoff            12.0&lt;br /&gt;
 vdw-correction&lt;br /&gt;
 #&lt;br /&gt;
 #  Set Parameters for Ewald Summation&lt;br /&gt;
 #&lt;br /&gt;
 ewald&lt;br /&gt;
 ewald-cutoff          7.0           &#039;&#039;# we can use such small cutoff because quadrupoles die off faster.&#039;&#039;&lt;br /&gt;
 pme-grid              64 64 64   &#039;&#039;#this should be slight bigger than box size  62.23 (1.2x is the best). Must be even with factors of only 2, 3 and 5. see source/kewald.f for a list.&#039;&#039;&lt;br /&gt;
 fft-package           FFTW&lt;br /&gt;
 #&lt;br /&gt;
 #  Set Parameters for Induced Dipole Convergence&lt;br /&gt;
 #&lt;br /&gt;
 polar-eps             0.00001   &#039;&#039;# the induced dipole convergence threshold&#039;&#039;&lt;br /&gt;
 polar-predict&lt;br /&gt;
&lt;br /&gt;
== Available thermostat and barostat (2/4/2016 Ponder)==&lt;br /&gt;
&lt;br /&gt;
Thermostats:&lt;br /&gt;
&lt;br /&gt;
 METHOD                     KEYWORD&lt;br /&gt;
 Bussi-Parrinello           thermostat bussi&lt;br /&gt;
 Berendsen                  thermostat berendsen&lt;br /&gt;
 Andersen Stochastic        thermostat andersen&lt;br /&gt;
 Nose-Hoover                thermostat nose-hoover&lt;br /&gt;
&lt;br /&gt;
There are only two barostats available via the “barostat” keyword:&lt;br /&gt;
&lt;br /&gt;
 METHOD                     KEYWORD&lt;br /&gt;
 Berendsen                  barostat berendsen&lt;br /&gt;
 Monte-Carlo                barostat montecarlo&lt;br /&gt;
&lt;br /&gt;
The above thermostat and barostats are available for the Verlet, Beeman and RESPA integrators, and can be used in any combination with those integrators. These integrators are available via:&lt;br /&gt;
&lt;br /&gt;
 METHOD                     KEYWORD&lt;br /&gt;
 Verlet                     integrator verlet&lt;br /&gt;
 Beeman                     integrator beeman&lt;br /&gt;
 RESPA                      integrator respa&lt;br /&gt;
&lt;br /&gt;
Note that the &#039;&#039;&#039;defaults&#039;&#039;&#039; are Bussi for thermostat, Berendsen for barostat, and Beeman for integrator.&lt;br /&gt;
&lt;br /&gt;
Then there are two special integrators, a stochastic one, and a Nose-Hoover that does NPT. The stochastic integrator uses a kind of Langevin temperature bath for thermostating, and does listen to the barostat keyword. The Nose-Hoover integrator uses a separate code branch and does only NPT with Nose-Hoover methods following Martyna-Tuckerman-Klein. You can get these via:&lt;br /&gt;
&lt;br /&gt;
 METHOD                      KEYWORD&lt;br /&gt;
 Stochastic                   integrator stochastic (no need for other T control)&lt;br /&gt;
 Nose-Hoover NPT             integrator nose-hoover (no need other keywords for T or P; starting structures need to reasonable)&lt;br /&gt;
&lt;br /&gt;
== Recommended keywords (add somewhere in the .key file) for NVT ==&lt;br /&gt;
&lt;br /&gt;
 integrator respa&lt;br /&gt;
 thermostat bussi&lt;br /&gt;
&lt;br /&gt;
Command:&lt;br /&gt;
&lt;br /&gt;
 dynamic xxx.xyz 100000 2.0 1.0 2 298  (100000 steps, 2.0 fs time step, dump structure every 1.0 ps, option 2 is NVT, 298 is the target T)&lt;br /&gt;
&lt;br /&gt;
It is also possible to combine &amp;quot;&#039;&#039;&#039;integrator Beeman&#039;&#039;&#039;&amp;quot; or &#039;&#039;&#039;&amp;quot;thermostat Berendsen”&#039;&#039;&#039; or &#039;&#039;&#039;&amp;quot;thermostat Andersen&amp;quot;&#039;&#039;&#039;. But RESPA allows large time steps (2.0 or 2.5 fs) than Beeman. Berendsen thermostat does not provide canonical ensemble fluctuation.&lt;br /&gt;
&lt;br /&gt;
== Recommended keywords for NPT ==&lt;br /&gt;
&lt;br /&gt;
 Integrator nose-hoover # this will trigger also nose-hoover P and T control&lt;br /&gt;
&lt;br /&gt;
Note with Nose-Hoover you can not use a time step bigger than 1. 0.5fs is the most stable&lt;br /&gt;
&lt;br /&gt;
Good alternative:&lt;br /&gt;
&lt;br /&gt;
 integrator respa&lt;br /&gt;
 thermostat bussi&lt;br /&gt;
 Barostat MONTECARLO&lt;br /&gt;
&lt;br /&gt;
or *this is questionable; berendsen doesn&#039;t give correct ensemble fluctuation&lt;br /&gt;
&lt;br /&gt;
 integrator stochastic&lt;br /&gt;
 thermostat bussi&lt;br /&gt;
 barostat berendsen?&lt;br /&gt;
&lt;br /&gt;
Command:&lt;br /&gt;
&lt;br /&gt;
 dynamic xxx.xyz 100000 2.0 1.0 4 298 1.0 (option 4 is NPT, 298 is T and the last 1.0 is the target pressure 1atm)&lt;br /&gt;
&lt;br /&gt;
Barostat Berendsen is available and useful for equilibrate system but again not recommended for production since the ensemble fluctuation is incorrect. &amp;quot;Integrator Bussi” is available and behaves similar to “integrator nose-hoover” in the sense that it will trigger Bussi T and P control, but it is not as well tested.&lt;br /&gt;
&lt;br /&gt;
== NVE ==&lt;br /&gt;
&lt;br /&gt;
 integrator respa&lt;br /&gt;
&lt;br /&gt;
command:&lt;br /&gt;
&lt;br /&gt;
 dynamic xxx.xyz 100000 2.0 1.0 1&lt;br /&gt;
&lt;br /&gt;
No need for thermostat or barostat of course. It is best to use smaller time step such as 1.0fs to conserve energy better. May even use smaller polar-eps (10^-6) than default (10^-5) in the key file.&lt;br /&gt;
&lt;br /&gt;
== Non periodic system, e.g. gas molecules not in a box ==&lt;br /&gt;
&lt;br /&gt;
 integrate stochastic&lt;br /&gt;
&lt;br /&gt;
If there is no box (a-axis) in the key file, or no box dimensions in the den file, the system is non-periodic. This will set the stochastic temperature control along with the stochastic MD integration. &#039;&#039;&#039;For gas phase molecular cluster (very few atoms), the recommended time step is 0.1 fs&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= OSRW in TINKER =&lt;br /&gt;
&lt;br /&gt;
[[Research ex:Tinker/osrw|OSRW in tinker]]&lt;br /&gt;
&lt;br /&gt;
= TINKER binding free energy calculations =&lt;br /&gt;
&lt;br /&gt;
 [[Research:Papers bind| Background reading]]&lt;br /&gt;
&lt;br /&gt;
== Alchemical (Sara) ==&lt;br /&gt;
&lt;br /&gt;
 Example Files for CCP Free Energy Calculations located on&lt;br /&gt;
&lt;br /&gt;
[http://biomol.bme.utexas.edu/~syc384/example_CCP_BAR_abs_solvation_free_energy/ http://biomol.bme.utexas.edu/~syc384/example_CCP_BAR_abs_solvation_free_energy/]&lt;br /&gt;
&lt;br /&gt;
Tutorial on how to calculate absolute solvation free energy for c9 ligand&lt;br /&gt;
&lt;br /&gt;
[[File:Binding Free Energy Talk Jan31 2014 final.ppt.pdf]]&lt;br /&gt;
&lt;br /&gt;
== OSRW (Jayvee) ==&lt;br /&gt;
&lt;br /&gt;
= SET UP TINKER/AMOEBA simulations =&lt;br /&gt;
&lt;br /&gt;
== PDB to xyz ==&lt;br /&gt;
&lt;br /&gt;
*Make sure the PDB files are standard, the columns are in the right place etc.&lt;br /&gt;
*Check the residue names. For example, LYP is not recognized. Change it to LYS. CYN is not, change to CYS. CYD is cya in disulfide bonds.&lt;br /&gt;
*Use HOH for water residue name.&lt;br /&gt;
*Missing H can be automatically added (not thoroughly tested).&lt;br /&gt;
&lt;br /&gt;
= TINKER 4 to 6 format changes =&lt;br /&gt;
&lt;br /&gt;
== README First ==&lt;br /&gt;
&lt;br /&gt;
Certain functional forms have changed from TINKER v4.2 to v5.x, so does the parameter formats in AMOEBA. A script is available to inter-convert between the two: [http://biomol.bme.utexas.edu/~yues/download/amoeba_conv_pl donwload here]&lt;br /&gt;
&lt;br /&gt;
== header in amoeba.prm and amoebapro.prm ==&lt;br /&gt;
&lt;br /&gt;
The only changes seem related to opbend&lt;br /&gt;
&lt;br /&gt;
v4.2&lt;br /&gt;
&lt;br /&gt;
 opbendunit              0.02191418 (1./radian**2 is the default; radian=57.29577951308232088d0)&lt;br /&gt;
&lt;br /&gt;
v5&lt;br /&gt;
&lt;br /&gt;
 opbendtype              ALLINGER  &lt;br /&gt;
 &amp;amp;nbsp;!! tinker6 defaults to W-D-C; so you must have this keyword when using amoebapro.prm or poltype parameters&lt;br /&gt;
 #opbendunit                 &lt;br /&gt;
 !! &#039;&#039;Use default. POLTYPE ootput uses header file that include  &amp;quot;opbendunit    0.02191418&amp;quot;.  As a result the force constant is about 71.94 time larger in tinker v6 prm files (which uses default for opbendunit) than that of POLTYPE. To combine POLTYPE with amoebapro etc, please multiply your opbend constant by 71.94 (and no &amp;quot;opbendunit              0.02191418&amp;quot; in the header)&#039;&#039;&lt;br /&gt;
 opbend-cubic          -0.014   &amp;amp;nbsp;!! these coefficients were not in v4.2 where angle-cubic etc  but not opebend-cubic etc were used&lt;br /&gt;
 opbend-quartic       0.000056 &lt;br /&gt;
 opbend-pentic         -0.0000007&lt;br /&gt;
 opbend-sextic          0.000000022&lt;br /&gt;
&lt;br /&gt;
== stretch-bend ==&lt;br /&gt;
&lt;br /&gt;
Parameter file that works with tinker 4.3: &#039;&#039;&#039;&#039;&#039;strbnd 33 18.70 11.50 0.00&#039;&#039;&#039;&#039;&#039;. For a middle atom of type &amp;quot;33&amp;quot;, there is one force constant for both stetch-bend coupling terms. One of the three numbers is used depending on the no of H atoms attached to 33.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;Parameter file that works with tinker v5: &#039;&#039;&#039;&#039;&#039;strbnd 34 33 35 -4.50 38.00&#039;&#039;&#039;&#039;&#039;. The 33 is the middle atom here and 34 and 35 are bonded to 33; the two force constants are for the two stretch-bend coupling (34-33 and 35-33) respectively.&lt;br /&gt;
&lt;br /&gt;
In tinker v4.2 estrbnd.f, estrbnd1.f (force &amp;amp; virial)&lt;br /&gt;
&lt;br /&gt;
 e = stbnunit * force * dt * dr&lt;br /&gt;
 force...&lt;br /&gt;
 virial&lt;br /&gt;
&lt;br /&gt;
In tinker v5.0&lt;br /&gt;
&lt;br /&gt;
 e = stbnunit * (force1*dr1+force2*dr2) * dt&lt;br /&gt;
 force ...&lt;br /&gt;
 virial...&lt;br /&gt;
&lt;br /&gt;
In the current sander amoeba_valence.f&lt;br /&gt;
&lt;br /&gt;
 Frc_K = degrees_to_radians*force_constant(it)&lt;br /&gt;
 energy = energy + Frc_K*arg1(ind)*arg2(ind) &lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
In pmemd (amber v9?)&lt;br /&gt;
&lt;br /&gt;
 energy = energy + Frc_K * arg1(n) * arg2(n)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
== opbend ==&lt;br /&gt;
&lt;br /&gt;
The main change is to make sure all 4 atom types involved in one opbend match the definition in the parameter file (see below). Also note the change in force constant units as per opbendunit in the header above; to convert force constants in the old units to the new units, multiply by 71.94.&lt;br /&gt;
&lt;br /&gt;
tinker v4: &#039;&#039;&#039;opbend 78 30 0.200&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
tinker v5: &#039;&#039;&#039;opbend 30 78 0 0 0.200&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In the new format, the second of the four atoms classes is the central atom. The first atom class is the one that is out-of-plane. The third and fourth classes are the other two classes of atoms attached to the central atom ( &amp;quot;0&amp;quot; is a wildcard value that matches any atom class). So the old opbend parameter that was &amp;quot;B A&amp;quot; is now given as &amp;quot;A B 0 0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Tinker source: v4:&lt;br /&gt;
&lt;br /&gt;
 e = opbunit * force * dt2&lt;br /&gt;
   &amp;amp;                * (1.0d0+cang*dt+qang*dt2+pang*dt3+sang*dt4)&lt;br /&gt;
&lt;br /&gt;
v5:&lt;br /&gt;
&lt;br /&gt;
  e = opbunit * force * dt2&lt;br /&gt;
   &amp;amp;                * (1.0d0+copb*dt+qopb*dt2+popb*dt3+sopb*dt4)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;cange, qang&#039;&#039;, or &#039;&#039;copb, qopb.&#039;&#039;.. are the coefficients in the header.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;Also in amoebapro4.prm we have the header “opbendunit 0.02191418”, so the actual force constant is “smaller” than those in amobeabiov4.prm which doesn’t have the opbendunit in the header file. It then uses the default: 1/radian^2, where radian =57.29.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note that to use amber/PMEMD, the “opbendunit 0.02191418” is required in the tinker prm file since amber is hardwired to this.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 opbend_force_in_prm= actual_opbend_force_used* (radian**2/opbunit)&lt;br /&gt;
&lt;br /&gt;
When your opbendunit is 0.02191418 instead of 1/57.3^2 (by not defining the opbendunit in the header), your force constant in prm file should be reduced by a factor of 71.9.&lt;br /&gt;
&lt;br /&gt;
In amoebapro13.prm, however, there is no &amp;quot;opbendunit 0.02191418&amp;quot; keyword, so the force constant is increased by a factor of 71.9.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;When mixing prm files with and without this &amp;quot;opbendunit 0.02191418&amp;quot; keyword, please watch out the force constants.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Also it is imperative to use &amp;quot;opbendtype ALLINGER&amp;quot; keyword in prm file when using the latest tinker v6 since the default type is set to something else &amp;quot;opbtyp = &#039;W-D-C&#039;&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== torsion-torsion ==&lt;br /&gt;
&lt;br /&gt;
protein backbone continues to use the original periodic 2-d spline to match AMOEBA with QM on the alanine dipeptide conformational energy. for sugar in nucleic acids, there is now a non-periodic 2-d spline used.&lt;br /&gt;
&lt;br /&gt;
 parameter definition/functional form/subroutine?&lt;br /&gt;
&lt;br /&gt;
== polarize ==&lt;br /&gt;
&lt;br /&gt;
damping factor (0.39 except for few divalent ions) now explicitly included in the polarizability definition&lt;br /&gt;
&lt;br /&gt;
 polarize   337 0.696 &amp;lt;span style=&amp;quot;color: rgb(255, 102, 0);&amp;quot;&amp;gt;&#039;&#039;&#039;0.390&#039;&#039;&#039;&amp;lt;/span&amp;gt;&#039;&#039;&#039; &#039;&#039;&#039; 333&lt;br /&gt;
&lt;br /&gt;
== new local frame ==&lt;br /&gt;
&lt;br /&gt;
We added a new &amp;quot;z-bisector&amp;quot; frame definition in TINKER (since v6). It is not yet on PMEMD. This is mainly used for molecules such as N in H2-N-CH3 to avoid the use of dummy lone-pair solely for frame definition. The the N-C bond defines Z, and the bisector between the two NH bond defines the X.&lt;br /&gt;
&lt;br /&gt;
What needs to be done:&lt;br /&gt;
&lt;br /&gt;
*read the parameter correctly&lt;br /&gt;
*rotate the local multipoles to the global frame (energy/force are all computed using global multipoles so no change there)&lt;br /&gt;
*the hard part (at least for me) is to compute the force due to torque. In tinker, the torque is onverted back to force (I will post the block of code but is not useful here) but Tom uses the infinitesimal rotation to compute these forces directly. If I understand correctly we need derivatives of the rotation matrix (which we have of course) here. It would be much easier if Tom can help here.&lt;br /&gt;
&lt;br /&gt;
 The 4th  atom in the z-then-x definition is  used to indicate its chiral and flip the signs of some multipoles &lt;br /&gt;
 (see chkpole.f in TINKER) if necessary. It should not matter unless you actually have a right handed residue. &lt;br /&gt;
 You can just change the sign of atomic multipoles if you do have a right handed residue and &lt;br /&gt;
 you don’t even need the 4th frame defining atom type.&lt;br /&gt;
&lt;br /&gt;
 Also we add some new frame definitions in TINKER since tinker v6 such as the Z-Bisect &lt;br /&gt;
 which is not yet implemented in pmemd. You need to be careful about these even though they are not common. &lt;br /&gt;
 Here is how you tell which frame is used based on the sign and number of atom types (in kmpole.f of tinker):&lt;br /&gt;
&lt;br /&gt;
 Multipole_type   kz_type    kx_type   ky_type_if_needed&lt;br /&gt;
             if (kz.ne.0 .and. kx.eq.0)  axt = &#039;Z-Only&#039;&lt;br /&gt;
             if (kz.lt.0 .or. kx.lt.0)  axt = &#039;Bisector&#039;&lt;br /&gt;
             if (kx.lt.0 .and. ky.lt.0)  axt = &#039;Z-Bisect&#039;&lt;br /&gt;
             if (max(kz,kx,ky) .lt. 0)  axt = &#039;3-Fold&#039;&lt;br /&gt;
&lt;br /&gt;
 Note you can always convert atomic multipoles between frame definition using TINKER poledit. &lt;br /&gt;
&lt;br /&gt;
 Last, the best way to make sure is to compare TINKER and pemmd energy and make sure they match.&lt;br /&gt;
&lt;br /&gt;
== amoeba_par ==&lt;br /&gt;
&lt;br /&gt;
This is the program that reads tinker analyze output and create the amber prmtop etc. Once I know what are the new variables and format that will go into sander/pmemd, I can change this accordingly.&lt;br /&gt;
&lt;br /&gt;
== additional mod that might be useful ==&lt;br /&gt;
&lt;br /&gt;
*soft-core for buffered-14-7&lt;br /&gt;
*a script that automates the hydration free energy calculation of a small molecule using amobea and FEP; analyze the results using Bennett Acceptance ratio.&lt;br /&gt;
*a script for protein-ligand binding energy calculation is under way. The FEP calculation is similar to existing one in amber only the electrostatic part is not pairwise so we have to scale the parameters directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== converting tinker to amber (get prmtop and inpcrd) trouble shooting ==&lt;br /&gt;
&lt;br /&gt;
*The default max number of atoms in each polarization group is 20. If you have a big ligand with more than 20 or 22 atoms in a single polarization group, you should change the prmgrp.i file and analyze.f file and then recompile it.&lt;br /&gt;
&lt;br /&gt;
In polgrp.i file, increase the parameters, i.e.&lt;br /&gt;
&lt;br /&gt;
      integer maxp11,maxp12&lt;br /&gt;
    integer maxp13,maxp14&lt;br /&gt;
    parameter (maxp11=50)&lt;br /&gt;
    parameter (maxp12=100)&lt;br /&gt;
    parameter (maxp13=100)&lt;br /&gt;
    parameter (maxp14=100)&lt;br /&gt;
&lt;br /&gt;
In the analyze.f file&lt;br /&gt;
&lt;br /&gt;
  690             format (/,&#039; Dipole Polarizability Parameters&amp;amp;nbsp;:&#039;,&lt;br /&gt;
   &amp;amp;                    //,10x,&#039;Atom Number&#039;,9x,&#039;Alpha&#039;,8x,&lt;br /&gt;
   &amp;amp;                       &#039;Polarization Group&#039;,/)&lt;br /&gt;
             end if&lt;br /&gt;
             write (iout,700)  i,ia,polarity(i),&lt;br /&gt;
   &amp;amp;                           (ip11(j,ia),j=1,np11(ia))&lt;br /&gt;
 700          format (i6,3x,i6,10x,f10.4,5x,22i6)&lt;br /&gt;
          end if&lt;br /&gt;
       end do&lt;br /&gt;
    end if&lt;br /&gt;
&lt;br /&gt;
Change the line&amp;quot; format (i6,3x,i6,10x,f10.4,5x,20i6)&amp;quot; to &amp;quot;format (i6,3x,i6,10x,f10.4,5x,30i6)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= AMOEBA with Implicit solvent =&lt;br /&gt;
&lt;br /&gt;
== PMPB ==&lt;br /&gt;
&lt;br /&gt;
*PMPB&amp;lt;br/&amp;gt;*GK&amp;lt;br/&amp;gt;*Apolar (cavity+dispersion)&amp;lt;br/&amp;gt;*Simple SA approach&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;* Previous work using GK:&amp;lt;br/&amp;gt;** Ramachandran map from all-atom+GK [http://biomol.bme.utexas.edu/wiki/index.php/Research:All_atom_dipeptide_sol_implicit http://biomol.bme.utexas.edu/wiki/index.php/Research:All_atom_dipeptide_sol_implicit]&amp;lt;br/&amp;gt;** Anything else from biomol wiki?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In tinker5 from Mike 2007 (~schnied/Software), Bondi offset is used to scale or the atomic radii rsolv(i); in ksolv.f: rsolv(i) = rsolv(i) * offset&lt;br /&gt;
&lt;br /&gt;
In tinker5.1,rscale replaces BONDI (default radtype) offset; in ksolv.f:&lt;br /&gt;
&amp;lt;pre&amp;gt;rscale = 1.0d0&lt;br /&gt;
if (radtyp .eq. &#039;VDW&#039;) rscale = 1.0d0&lt;br /&gt;
if (radtyp .eq. &#039;MACROMODEL&#039;) rscale = 1.0d0&lt;br /&gt;
if (radtyp .eq. &#039;AMOEBA&#039;) rscale = 1.0d0&lt;br /&gt;
if (radtyp .eq. &#039;BONDI&#039;) rscale = 1.03d0 #this is default &lt;br /&gt;
if (radtyp .eq. &#039;TOMASI&#039;) rscale = 1.24d0&lt;br /&gt;
do i = 1, n&lt;br /&gt;
rsolv(i) = rsolv(i) * rscale&lt;br /&gt;
end do&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;Mike&#039;s comment 2010:&amp;lt;br/&amp;gt;Yes - the apolar term is in TINKER5 and is done. It is computed as a&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; sum of cavitation and dispersion terms. The cavitation term is&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; proportional to volume for small molecules (very rigorous) and is&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; switched to surface area for protein sized solutes. The dispersion&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; term is based on integrating the Weeks-Chandler-Andersen integral&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; over a water continuum. There are 2 versions of the dispersion term&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; in TINKER5, one based on a GB like pairwise descreening integral&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; (subroutine ewca) and one based on numerical integration via Onion&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; shell (subroutine ewcax). For small molecules the two dispersion&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; methods will be nearly identical, but for proteins they may be&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; different due to interstitial spaces in the protein. For binding calculations, this sort of error will largely cancel.&amp;lt;br/&amp;gt;&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;&amp;gt; - Mike&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;gt;The apolar terms can use the vdW radii (ie. rsolv(i) = rad(class(i))).&amp;lt;br/&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;For Cavitation:&amp;lt;br/&amp;gt;&amp;gt;There is the volume based cavitation coefficient, which is like a&amp;lt;br/&amp;gt;&amp;gt;&amp;quot;solvent pressure&amp;quot; and has units of kcal/mole/A^3 (solvprs = 0.0327d0).&amp;lt;br/&amp;gt;&amp;gt;There is the limiting surface tension for large molecules in units of&amp;lt;br/&amp;gt;&amp;gt;kcal/mole/A^2 (surften = 0.080d0). Note that this is intentionally&amp;lt;br/&amp;gt;&amp;gt;lower than the macroscopic, experimental value of 0.103d0.&amp;lt;br/&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;For Dispersion:&amp;lt;br/&amp;gt;&amp;gt;There is a parameter called &amp;quot;dispersion offset&amp;quot; and units of Angstroms&amp;lt;br/&amp;gt;&amp;gt;( dispoff = 0.26d0). The continuum water dispersion integral starts at&amp;lt;br/&amp;gt;&amp;gt;&amp;quot;rsolv&amp;lt;br/&amp;gt;&amp;gt;+ dispoff&amp;quot;.&amp;lt;br/&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;For Electrostatics:&amp;lt;br/&amp;gt;&amp;gt;The radii for continuum electrostatics are usually a little&amp;lt;br/&amp;gt;&amp;gt;non-physical to implicitly capture hydrogen bonding or other non-continuum effects.&amp;lt;br/&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;Basically what I think needs to be done is we need a large table of&amp;lt;br/&amp;gt;&amp;gt;experimental solvation energies to compare with Cav + Disp + PMPB/GK&amp;lt;br/&amp;gt;&amp;gt;and with explicit water AMOEBA FEP. The question is how many&amp;lt;br/&amp;gt;&amp;gt;electrostatic radii parameters do we need to get a reasonable unsigned&amp;lt;br/&amp;gt;&amp;gt;error. Some people have gotten mean errors of only 0.35 for fixed&amp;lt;br/&amp;gt;&amp;gt;charge models (AGNP), but I have a hard time believing this is not&amp;lt;br/&amp;gt;&amp;gt;over-fit. I think going for 0.5 kcal/mole mean unsigned error would be&amp;lt;br/&amp;gt;&amp;gt;terrific; although this is would still may be a lower error than the FEP results.&amp;lt;br/&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;Any thoughts?&amp;lt;br/&amp;gt;&amp;gt;&amp;lt;br/&amp;gt;&amp;gt;Best,&amp;lt;br/&amp;gt;&amp;gt;Mike&lt;br /&gt;
&lt;br /&gt;
== to use simple surface area term in GK ==&lt;br /&gt;
&lt;br /&gt;
For binding affinity a simple non-polar model is a good idea; there are currently no hooks in TINKER to let one do this from the key file. It is pretty easy to modify the code to do it though – just add “solvtyp .eq. GK” to the first if statement that selects SA only instead of the cav + disp code (in the esolv*.f files).&lt;br /&gt;
&lt;br /&gt;
c c total solvation energy for surface area only models c&lt;br /&gt;
&lt;br /&gt;
      if (solvtyp .eq. &#039;GK&#039; .or. solvtyp.eq.&#039;ASP&#039;&lt;br /&gt;
   &amp;amp;   .or. solvtyp.eq.&#039;SASA&#039;) then&lt;br /&gt;
       call surface (es,aes,rsolv,asolv,probe)&lt;br /&gt;
       ecav = es&lt;br /&gt;
       edisp = 0.0d0&lt;br /&gt;
&lt;br /&gt;
For and SA only model, the surface tension needs to smaller than for a disp + cav model so I added the following to the key file:&lt;br /&gt;
&lt;br /&gt;
#Macroscopic is 0.103 kcal/mole/A^2; most SA only models use something less than 0.01&lt;br /&gt;
&lt;br /&gt;
surface-tension 0.007&lt;br /&gt;
&lt;br /&gt;
== ffx/GK ==&lt;br /&gt;
&lt;br /&gt;
= Bio force fields and revision history =&lt;br /&gt;
&lt;br /&gt;
[[Research ex:Amoeba bio|amoeba bio forcefields]]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Course:blogs&amp;diff=2086</id>
		<title>Course:blogs</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Course:blogs&amp;diff=2086"/>
		<updated>2025-04-21T22:56:16Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Created page with &amp;quot;== standard formation entropy== *For pure element molecules, the standard formation of free energy and enthalpy are set to 0 (since we only care about relative).  *For entropy, however, we use 0K as the reference, so that the absolute entropy of any substance can be measured from Cp vs. T: S(T)=S(0)+integral (Cp/T).  *For example, H2 (g)&amp;#039;s standard state absolute entropy (relative to 0K) is 130.6 J/mol K. The standard formation entropy (130.6-130.6) is still 0. The stand...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== standard formation entropy==&lt;br /&gt;
*For pure element molecules, the standard formation of free energy and enthalpy are set to 0 (since we only care about relative).&lt;br /&gt;
&lt;br /&gt;
*For entropy, however, we use 0K as the reference, so that the absolute entropy of any substance can be measured from Cp vs. T: S(T)=S(0)+integral (Cp/T).&lt;br /&gt;
&lt;br /&gt;
*For example, H2 (g)&#039;s standard state absolute entropy (relative to 0K) is 130.6 J/mol K. The standard formation entropy (130.6-130.6) is still 0. The standard formation enthalpy, free energy, and entropy of H2 are all 0.&lt;br /&gt;
&lt;br /&gt;
*List of values: http://www.wiredchemist.com/chemistry/data/entropies-inorganic&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Course:ABS&amp;diff=2085</id>
		<title>Course:ABS</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Course:ABS&amp;diff=2085"/>
		<updated>2025-04-21T22:55:40Z</updated>

		<summary type="html">&lt;p&gt;Eew947: created Course:ABS page. Need to check that files, links, etc are working&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Advanced Bio Molecular Modeling Techniques&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Molecular Mechanics and Force Fields (Ren, 3 lectures)&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Mm_gff|Molecular Mechanics and General force fields]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Mm_mpole|Electrostatic:polarizable multipole]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Mm_ewald|Ewald and vdw long range correction]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Mm_CP|Charge penetration effect]] ==&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;MD (Ren, 4 lectures)&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Md_ham|Lagrangian and Hamiltonian]] (Ren) ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Md_erg|Liouville Equation and Ergodicity]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Md_integrator|Integrator and constrain]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Md_tp|Temperature and Pressure control]] ==&lt;br /&gt;
&lt;br /&gt;
== Stochastic/Langevin/Brownian/DPD dyanmics ==&lt;br /&gt;
&lt;br /&gt;
GLE.pdf&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Deriving force field parameters for a new molecule/unit&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Ff_gau_grom_prdrug|Gaussian and gromacs and prodrug server (Fonner)]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Ff_amber_ligand_parameter|Amber and Antechamber (Chunli)]]==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Lig_ion_params|Metal ion and ligand parameterizations (Oscar) 9/30]] ==&lt;br /&gt;
&lt;br /&gt;
= [[ABS:QM/MM|QM/MM (Chistina)]] =&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Implicit Solvent approach&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Gb_gk|GB/GK (Jenny 10/12)]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:PB_(APBS)|PB (APBS)(Yue)]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Molecular_surfaces|Calculation of molecular surface (Maysam)]] &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;10/19&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Nonpolar_solvation|Nonpolar Solvation and hydrophobicity (Jenny 10/21)]] ==&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Sampling&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Free_energy_simulations|Free energy simulations]] (Johnny) &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;10/26&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Umbrella_sampling_and_WHAM|Umbrella sampling and WHAM]] (Yue) &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;10/28&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:REMD_jenny|REMD with gromacs (Fonner)]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:REMD_jenny|REMD with gromacs (Jenny)]] ==&lt;br /&gt;
&lt;br /&gt;
== Headline text ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Adaptive_umbrella_sampling|Multicanonical and adaptive umbrella sampling]] (Bruce) &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;11/4&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== [[Non_equilibrium_method_and_AFM_simulation_w_gromacs|Non equilibrium method and AFM simulation w gromacs]] (Tim) &amp;lt;span style=&amp;quot;color: rgb(255, 102, 0);&amp;quot;&amp;gt;11/11(out of town on 11/9)&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Protein-ligand binding&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Flexible_Docking_with_GOLD_and_GLIDE|Docking (Glide and gold) and flexibility (Maysam)]] &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;11/16&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:MM/PBSA_with_amber:_theory_and_application|MM/PBSA with amber: theory and application]](chunli) &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;11/18&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== FEP/BAR, TI (Oscar) cancelled ==&lt;br /&gt;
&lt;br /&gt;
Free Energy Perturbation&lt;br /&gt;
&lt;br /&gt;
Thermodynamic Integration&lt;br /&gt;
&lt;br /&gt;
Metadynamics&lt;br /&gt;
&lt;br /&gt;
Orthogonal Space Randowm Walk&lt;br /&gt;
&lt;br /&gt;
Read books:&lt;br /&gt;
&lt;br /&gt;
1. Molecular Modeling by Andrew Leach&lt;br /&gt;
&lt;br /&gt;
2. Free energy calculations (Chipot et al )&lt;br /&gt;
&lt;br /&gt;
And papers by Ren lab.&lt;br /&gt;
&lt;br /&gt;
= Electrostatics =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:VSE|&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;New procedure to study electrostatic fields in proteins (Chistina)&amp;lt;/span&amp;gt;]]&amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;&#039;&#039;&#039;11/23&#039;&#039;&#039;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Comparative_Analysis_of_RNA_And_Mfold|Comparative Analysis of RNA And Mfold]] (David) &amp;lt;span style=&amp;quot;background-color: rgb(255, 102, 0);&amp;quot;&amp;gt;11/25&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Coarse-grained modeling&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Coarse_grain_modeling|Gay-Berne and coarse-grain modeling (Johnny) 11/30]] ==&lt;br /&gt;
&lt;br /&gt;
== [[ABS:Rigid_body_MD_(Steven_12/2) | Rigidbody mechanics]]  ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Psudo atom RNA model (Bruce) canceled ==&lt;br /&gt;
&lt;br /&gt;
= &#039;&#039;Reaction Path and TST&#039;&#039; =&lt;br /&gt;
&lt;br /&gt;
== Reaction path search (David) canceled ==&lt;br /&gt;
&lt;br /&gt;
== Nudged Elastic Band (NEB) in AMBER (Oscar) canceled ==&lt;br /&gt;
&lt;br /&gt;
[http://ambermd.org/tutorials/advanced/tutorial5/index.htm http://ambermd.org/tutorials/advanced/tutorial5/index.htm]&lt;br /&gt;
&lt;br /&gt;
[http://www.quantumwise.com/documents/manuals/ATK-2008.10/chap.relax.html#chap.relax.neb.intro http://www.quantumwise.com/documents/manuals/ATK-2008.10/chap.relax.html#chap.relax.neb.intro]&lt;br /&gt;
&lt;br /&gt;
= Continuum method for biomolecules (Steven) canceled or merged with above =&lt;br /&gt;
&lt;br /&gt;
*Tetrameric mouse acetylcholinesterase: continuum diffusion rate calculations by solving the steady-state Smoluchowski equation using finite element methods &lt;br /&gt;
&lt;br /&gt;
Mar 21, 2005 Zhang D, Suen J, Zhang Y, Song Y, Radic Z, Taylor P, Holst MJ, Bajaj C, Baker NA, McCammon JA. Tetrameric mouse acetylcholinesterase: continuum diffusion rate calculations by solving the steady-state Smoluchowski equation using finite element methods. Biophys J, 88, 1659-1666, 2005.&lt;br /&gt;
&lt;br /&gt;
*Continuum diffusion reaction rate calculations of wild type and mutant mouse acetylcholinesterase: adaptive finite element analysis &lt;br /&gt;
&lt;br /&gt;
Sep 1, 2004 Song Y, Zhang Y, Bajaj C, Baker NA. Continuum diffusion reaction rate calculations of wild type and mutant mouse acetylcholinesterase: adaptive finite element analysis. Biophys J, 87, 1558-1566, 2004.&lt;br /&gt;
&lt;br /&gt;
*Finite element solution of the steady-state Smoluchowksi equation for rate constant calculations &lt;br /&gt;
&lt;br /&gt;
Apr 1, 2004 Song Y, Zhang Y, Shen T, Bajaj CL, McCammon JA, Baker NA. Finite element solution of the steady-state Smoluchowksi equation for rate constant calculations. Biophys J, 86, 2017-2029, 2004.&lt;br /&gt;
&lt;br /&gt;
*Finite element simulations of acetylcholine diffusion in neuromuscular junctions &lt;br /&gt;
&lt;br /&gt;
Dec 12, 2002 Tai K, Bond SD, MacMillan HR, Baker NA, Holst MJ, McCammon JA. Finite element simulations of acetylcholine diffusion in neuromuscular junctions. Biophys J, 84, 2234-2241, 2003.&lt;br /&gt;
&lt;br /&gt;
= Online Resource =&lt;br /&gt;
&lt;br /&gt;
== Gromacs tutorial ==&lt;br /&gt;
&lt;br /&gt;
[http://www.dddc.ac.cn/embo04/#Practicals http://www.dddc.ac.cn/embo04/#Practicals]&lt;br /&gt;
&lt;br /&gt;
== AMBER tutorial ==&lt;br /&gt;
&lt;br /&gt;
[http://ambermd.org/tutorial/ http://ambermd.org/tutorial/]&lt;br /&gt;
&lt;br /&gt;
[http://ambermd.org/tutorials/ http://ambermd.org/tutorials/]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Course:_CompMethod&amp;diff=2084</id>
		<title>Course: CompMethod</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Course:_CompMethod&amp;diff=2084"/>
		<updated>2025-04-21T22:54:05Z</updated>

		<summary type="html">&lt;p&gt;Eew947: Need to check that courses are somewhere so they can be accessed. All I did to edit here was add the page and change biomole.bme.utexas.edu to biomolmd.org. Don&amp;#039;t know if that actually exists&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This class is co-taught every &#039;&#039;&#039;Fall &#039;&#039;&#039;by Dr. Mia Markey and Dr. P Ren. It covers pattern recognition and Monte carlo method.&amp;amp;nbsp; [https://biomolmd.org/~pren/courses/bme350/BME350_BME383J_2020F_Syllabus.pdf Syllabus]&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research_ex:AMOEBA_param&amp;diff=2083</id>
		<title>Research ex:AMOEBA param</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research_ex:AMOEBA_param&amp;diff=2083"/>
		<updated>2025-04-21T22:51:40Z</updated>

		<summary type="html">&lt;p&gt;Eew947: added research ex: AMOEBA param&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;POLTYPE:&#039;&#039;&#039; Automated parameters estimation&lt;br /&gt;
*&amp;lt;span style=&amp;quot;font-size:large;&amp;quot;&amp;gt;&#039;&#039;&#039;New POLTYPE SITE: [http://biomol.bme.utexas.edu/tinker-openmm/index.php/POLTYPE:poltype POLTYPE]&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
OLD: [[Research ex:Poltype|POLTYPE]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other info&#039;&#039;&#039;&lt;br /&gt;
*General TINKER tutorials and howtos: http://biomol.bme.utexas.edu/tinker-openmm/index.php/TINKER-OPENMM:Tinker-tut&lt;br /&gt;
*More &#039;&#039;&#039;[[Research ex:Amoeba parm/notes|information on parameterization]]&#039;&#039;&#039;&lt;br /&gt;
*Development: [[Research:Poltype/todo|TASK LISTS]]&lt;br /&gt;
*Paul Nerenberg tutorial on AMOEBA based simulation: https://sites.google.com/site/biomolsimstw/workshop-materials/tutorials&lt;/div&gt;</summary>
		<author><name>Eew947</name></author>
	</entry>
</feed>