<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://biomolmd.org/mw/index.php?action=history&amp;feed=atom&amp;title=Research%3Aamber_prog_tips</id>
	<title>Research:amber prog tips - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://biomolmd.org/mw/index.php?action=history&amp;feed=atom&amp;title=Research%3Aamber_prog_tips"/>
	<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amber_prog_tips&amp;action=history"/>
	<updated>2026-11-16T09:14:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Research:amber_prog_tips&amp;diff=2122&amp;oldid=prev</id>
		<title>Eew947: Created page with &quot;== VALENCE&lt;br&gt;  ==  &amp;nbsp; opbend is included in angle energy&lt;br&gt;   &#039;&#039;&#039;&amp;nbsp;in amoeba_interface.f: &#039;&#039;&#039;   &lt;br&gt;&amp;nbsp; call AM_BONDS_eval(crd,frc,ene(1),vir_tensor)&lt;br&gt;&amp;nbsp; call AM_UREYB_eval(crd,frc,ene(2),vir_tensor)&lt;br&gt;&amp;nbsp; call AM_REG_ANGLES_eval(crd,frc,ene(3),vir_tensor)&lt;br&gt;&amp;nbsp; call AM_TRIG_ANGLES_eval(crd,frc,ene(4),vir_tensor)&lt;br&gt;&amp;nbsp; call AM_OPBEND_ANGLES_eval(crd,frc,ene(5),vir_tensor)&lt;br&gt;&amp;nbsp; call AM_TORSIONS_eval(crd,frc,ene(6),vir_tensor)&lt;br&gt;&amp;nbsp;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Research:amber_prog_tips&amp;diff=2122&amp;oldid=prev"/>
		<updated>2025-04-21T23:34:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== VALENCE&amp;lt;br&amp;gt;  ==    opbend is included in angle energy&amp;lt;br&amp;gt;   &amp;#039;&amp;#039;&amp;#039; in amoeba_interface.f: &amp;#039;&amp;#039;&amp;#039;   &amp;lt;br&amp;gt;  call AM_BONDS_eval(crd,frc,ene(1),vir_tensor)&amp;lt;br&amp;gt;  call AM_UREYB_eval(crd,frc,ene(2),vir_tensor)&amp;lt;br&amp;gt;  call AM_REG_ANGLES_eval(crd,frc,ene(3),vir_tensor)&amp;lt;br&amp;gt;  call AM_TRIG_ANGLES_eval(crd,frc,ene(4),vir_tensor)&amp;lt;br&amp;gt;  call AM_OPBEND_ANGLES_eval(crd,frc,ene(5),vir_tensor)&amp;lt;br&amp;gt;  call AM_TORSIONS_eval(crd,frc,ene(6),vir_tensor)&amp;lt;br&amp;gt; ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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;
&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;in amoeba_interface.f: &amp;#039;&amp;#039;&amp;#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 &amp;#039;&amp;#039;&amp;#039;polarization group and 1-2 (bonded), 1-3(angle)…1-5 interactions&amp;#039;&amp;#039;&amp;#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&amp;#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>
</feed>