<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nn320</id>
	<title>Docswiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nn320"/>
	<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Special:Contributions/Nn320"/>
	<updated>2026-04-13T08:08:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Decoding_heat_capacity_curves&amp;diff=1805</id>
		<title>Decoding heat capacity curves</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Decoding_heat_capacity_curves&amp;diff=1805"/>
		<updated>2022-11-15T13:24:23Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a short introduction on how to analyse and decode heat capacity curve features (D.J. Wales &#039;&#039;Phys. Rev. E&#039;&#039; &#039;&#039;&#039;95&#039;&#039;&#039;, 030105(R), 2017).&lt;br /&gt;
&lt;br /&gt;
After creating your data base of stationary points the analysis of the heat capacity curve is a common next step. To locate the minima contributing to the changes in occupational probability at specific temperatures (i.e. at features in the heat capacity) the following steps should be followed.&lt;br /&gt;
&lt;br /&gt;
First of all you will need to compile the analysis script. It is part of the svn at &#039;&#039;&#039;~/softwarewales/UTILS/GMIN/Cv.HSA.f90&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then two additional input files are needed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0.10 2.0 1901 3168 27125&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Cv.data&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The entries are the lowest and highest temperature for the heat capacity calculations, the number of data points calculated with these limits, the number of degrees of freedom, and the number of minima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1.3176&lt;br /&gt;
0.99&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tanal&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here the first entry is the temperature in the native units of your system (e.g. for AMBER it would be in kcal/mol). The second line quantifies how much of the changes in occupational probability should be accounted for (here it is that all changes sum to 99% of the total change).&lt;br /&gt;
&lt;br /&gt;
Running the script may take some time. At the end ths script should print the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 For disconnectionDPS use line TRMIN 2 27125 min.minus min.plus and&lt;br /&gt;
 CHOOSECOLOURS in the dinfo file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add these two lines to your dinfo file and the contributing minima will be highlighted. A common problem is that the coloured branches are covered by black branches. To get around this problem either change the ps file to move all coloured branches to the end, so they are drawn on top, or increase the line width for the coloured branches.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1804</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1804"/>
		<updated>2022-11-15T12:32:56Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 7: Creating topology file for modified force field ff99IDPs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then from the command line run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; &lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
The following is an example of leap.in for modelling a capped peptide using FF99SBildn AMBER force field.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This generates initial topology (prmtop), coordinates (inpcrd), and pdb files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper initial geometry.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct. They are correct for FF99SBildn force field used here.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and md_min.in file. &lt;br /&gt;
md_min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i md_min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them. If you get the same energy for all such structures it means that the topology file is symmetrised properly.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p old_symmetrised_coords.prmtop -c ff99IDPs.para -o coords.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, old_symmetrised_coords.prmtop represents the symmetrised prmtop and coords.prmtop&lt;br /&gt;
is the topology file for using with GMIN, OPTIM and PATHSAMPLE.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
Both were checked and they are working for FF99IDPs force field.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1803</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1803"/>
		<updated>2022-11-15T12:27:29Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 4: Symmetrise the topology file so obtained */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then from the command line run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; &lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
The following is an example of leap.in for modelling a capped peptide using FF99SBildn AMBER force field.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This generates initial topology (prmtop), coordinates (inpcrd), and pdb files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper initial geometry.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct. They are correct for FF99SBildn force field used here.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and md_min.in file. &lt;br /&gt;
md_min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i md_min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them. If you get the same energy for all such structures it means that the topology file is symmetrised properly.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1802</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1802"/>
		<updated>2022-11-15T12:25:36Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 3: Minimising the structure using sander */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then from the command line run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; &lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
The following is an example of leap.in for modelling a capped peptide using FF99SBildn AMBER force field.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This generates initial topology (prmtop), coordinates (inpcrd), and pdb files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper initial geometry.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct. They are correct for FF99SBildn force field used here.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and md_min.in file. &lt;br /&gt;
md_min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i md_min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1801</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1801"/>
		<updated>2022-11-15T12:23:39Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 1: Make topology and coordinates file using tleap in AMBER */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then from the command line run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; &lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
The following is an example of leap.in for modelling a capped peptide using FF99SBildn AMBER force field.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This generates initial topology (prmtop), coordinates (inpcrd), and pdb files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper initial geometry.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct. They are correct for FF99SBildn force field used here.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1800</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1800"/>
		<updated>2022-11-15T12:23:07Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 1: Make topology and coordinates file using tleap in AMBER */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then from the command line run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; &lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
The following is an example of leap.in for modelling a capped peptide using FF99SBildn AMBER force field.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This generates initial topology (prmtop), coordinates (inpcrd), and pdb files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper initial geometry.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1799</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1799"/>
		<updated>2022-11-15T12:19:12Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 0: Download and install AMBER */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then from the command line run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; &lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1798</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1798"/>
		<updated>2022-11-15T12:18:26Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 0: Have amber on your system */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Download and install AMBER===&lt;br /&gt;
 &lt;br /&gt;
Follow the installation steps given in AMBER manual after downloading AMBER 14. [For group members: amber14 directory is present on nest in /home/nn320/amber14].&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/crsid/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system.&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Adding_several_minima_obtained_using_GMIN_(maybe_using_BHPT)_to_min.data&amp;diff=1790</id>
		<title>Adding several minima obtained using GMIN (maybe using BHPT) to min.data</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Adding_several_minima_obtained_using_GMIN_(maybe_using_BHPT)_to_min.data&amp;diff=1790"/>
		<updated>2021-10-28T10:20:31Z</updated>

		<summary type="html">&lt;p&gt;Nn320: Created page with &amp;quot;For biomolecules, if you know the global minimum, then try to save (using SAVE keyword in GMIN) minima within 20 kcal/mol of global minimum. The minima are saved in xyz format...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For biomolecules, if you know the global minimum, then try to save (using SAVE keyword in GMIN) minima within 20 kcal/mol of global minimum. The minima are saved in xyz format in “lowest” file. The lowest file can then be renamed as lowest.xyz. In pathdata, use the keyword “ADDMINXYZ lowest.xyz” to create various min.data.info.n files. Concatenate all the min.data.info.n files into one file called allmin.data.info and run PATHSAMPLE again using the keyword “ADDMIN allmin.data.info”.&lt;br /&gt;
Please note that if you are not using the keyword “CPUS 1” in pathdata, then the number of CYCLES in pathdata should be such that number of minima to be added = CYCLES * number of cores specified in submission script. Usually, we give some extra CYCLES just to be on the safe side. &lt;br /&gt;
While running PATHSAMPLE with “ADDMINXYZ lowest.xyz” keyword, make sure that odata.addminxyz has the keywords ENDNUMHESS and DUMPDATA specified in it. You should not use NOFRQS as frequencies will not be calculated in this case. Note that frequencies are required if you want to calculate thermodynamic and kinetic properties. Also, make sure your odata.addminxyz just has the minimisation keywords specified and you are not trying to run a double ended search.&lt;br /&gt;
An example odata.addminxyz file when using AMBER potential is&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEBUG&lt;br /&gt;
REOPTIMISEENDPOINTS&lt;br /&gt;
BFGSMIN 1.0D-6&lt;br /&gt;
NOCISTRANS&lt;br /&gt;
LPERMDIST 11 0.5 5.0 0.06&lt;br /&gt;
NOHESS                                                                                                                          ENDNUMHESS                                                                    &lt;br /&gt;
GEOMDIFFTOL 0.3                                                                &lt;br /&gt;
EDIFFTOL 1.0D-4&lt;br /&gt;
DUMPDATA&lt;br /&gt;
AMBER12 start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1789</id>
		<title>Comprehensive Contents Page</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1789"/>
		<updated>2021-10-28T10:17:15Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* PATHSAMPLE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is designed to organise all of the pages on this wiki, as well as provide other useful links. Note that some pages may appear under more than one heading.&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
[[Wales Group]] provides good step-by-step instructions. Relevant pages are:&lt;br /&gt;
&lt;br /&gt;
=== Acquiring and compiling the group software ===&lt;br /&gt;
* [[SVN setup]]&lt;br /&gt;
* [[Git Workflow]]&lt;br /&gt;
* [[Wales Group Version control]] - to keep the code standardised.&lt;br /&gt;
* Theory Sector [http://wwmm.ch.cam.ac.uk/wikis/cuc3/index.php/SVN_Page SVN Page] - some useful general information on SVN commands.&lt;br /&gt;
* [[Compiling Wales Group codes using cmake]] - CMake (Cross-platform Make) allows us to compile and test the group codebase regardless of platform. This page provides crucial information how to compile using cmake.&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
&lt;br /&gt;
=== Maintaining code health ===&lt;br /&gt;
* [[Jenkins CI]] - explains Jenkins, which we use to download our code and compile each of our targets with each of the compilers every night.&lt;br /&gt;
* https://wales-jenkins.ch.cam.ac.uk/ - log for our Jenkins tests.&lt;br /&gt;
* [[Branching and Merging]]&lt;br /&gt;
* [[Cmake interface building]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[Revamping the modules system]]&lt;br /&gt;
&lt;br /&gt;
=== Collaborators without access to the SVN repository ===&lt;br /&gt;
For licensing reasons, some code cannot be included in the Wales Group public tarball.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/svn.tar.bz2 - Wales group public tarball. Includes [[GMIN]], [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
If a collaborator has a [[CHARMM]] or [[AMBER]] licence, we do maintain separate tarballs which include the [[CHARMM]], [[AMBER]] and [[CHARMM]]+[[AMBER]] source and interfaces. These are not linked anywhere on the website and require a username (&#039;&#039;&#039;wales&#039;&#039;&#039;) and password (&#039;&#039;&#039;group&#039;&#039;&#039;) to download:&lt;br /&gt;
&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/CHARMM/svn.CHARMM.tar.bz2 CHARMM]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/AMBER/svn.AMBER.tar.bz2 AMBER]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/both/svn.both.tar.bz2 AMBER+CHARMM]&lt;br /&gt;
&lt;br /&gt;
=== Running on Windows ===&lt;br /&gt;
Not particularly recommended.&lt;br /&gt;
* [[Running Wales Group software on Windows 7]]&lt;br /&gt;
&lt;br /&gt;
== Wales Group Programs ==&lt;br /&gt;
&lt;br /&gt;
=== Programs ===&lt;br /&gt;
* [[GMIN]]: A program for finding global minima and calculating thermodynamic properties from basin-sampling.&lt;br /&gt;
* [[OPTIM]]: A program for optimizing geometries and calculating reaction pathways.&lt;br /&gt;
* [[PATHSAMPLE]]: A driver for OPTIM to create stationary point databases using discrete path sampling and perform kinetic analysis.&lt;br /&gt;
* [[Pele]]: Python energy landscape explorer. A pythonic rewrite of some core functionality of GMIN, OPTIM, and PATHSAMPLE. Can be very useful for visualizing your system and for rapidly implementing and testing new ideas.&lt;br /&gt;
* [[DISCOTRESS]]: A program to perform detailed quantitative analysis of a kinetic network (stationary point database)&lt;br /&gt;
&lt;br /&gt;
=== Curated Examples ===&lt;br /&gt;
* https://github.com/wales-group/examples - set of tutorials detailing how to use GMIN, OPTIM and PATHSAMPLE. Essential for beginners.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/VM/Wales_Group_VM.ova - Pre-prepared teaching virtual machine. This contains the code and examples.&lt;br /&gt;
* https://www.virtualbox.org/wiki/Downloads - This is required if using the VM above.&lt;br /&gt;
* https://github.com/wales-group/examples.git - Alternatively, you can run the examples on your own machine. To get hold of the relevant files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/wales-group/examples.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful Notes on Wales Group Programs and Subroutines ==&lt;br /&gt;
=== [[GMIN]] ===&lt;br /&gt;
* [[Adding a model to GMIN]] - rough outline of the subroutines that need to be changed to add a new model to GMIN&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling GMIN using cmake ]]&lt;br /&gt;
* [[Selecting search parameters for GMIN]]&lt;br /&gt;
* [[Global optimization of biomolecules using CHARMM]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9 with Structural Restraints]]&lt;br /&gt;
* [[Calculating binding free energy using the FSA method]]&lt;br /&gt;
* [[Restarting a GMIN run from a dump file]]&lt;br /&gt;
* [[Using the implicit membrane model IMM1]]&lt;br /&gt;
* [[Running a Go model with the AMHGMIN]]&lt;br /&gt;
* [[Running a G\=o model with the AMHGMIN]]&lt;br /&gt;
* [[Ligand binding-mode searches with HBONDMATRIX]]&lt;br /&gt;
* [[Compiling and using GMIN with QUIP]]&lt;br /&gt;
* [[Using GMIN and OPTIM with GPUs]]&lt;br /&gt;
* [[Using GMIN to generate endpoints]]&lt;br /&gt;
* [[Using GMIN to generate endpoints (CHARMM)]]&lt;br /&gt;
* [[Generating a GMIN Eclipse project]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[Keywords]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
&lt;br /&gt;
==== Scripts ====&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
&lt;br /&gt;
==== Useful info for coding GMIN ====&lt;br /&gt;
* [[Program flow]] - contains information about what the various files in GMIN do and what order they&#039;re called. &lt;br /&gt;
* [[amberinterface]]&lt;br /&gt;
&lt;br /&gt;
==== Projects ====&lt;br /&gt;
* [[GMIN MOVES module]]&lt;br /&gt;
* [[GMIN SANITY module]]&lt;br /&gt;
* [[GMIN TESTS module]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
&lt;br /&gt;
=== [[OPTIM]] ===&lt;br /&gt;
* [[Adding a model to OPTIM]] - rough outline of the subrounties that need to be changed to add a new model to OPTIM&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling OPTIM using cmake ]]&lt;br /&gt;
* [[OPTIM/Q-Chem Tutorial]]&lt;br /&gt;
* [[OPTIM and PY ellipsoids tutorial]]&lt;br /&gt;
* [[OPTIM output files]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and AMBER9]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Creating movies (.mpg) of paths using OPTIM]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Debugging odd transition states in OPTIM]]&lt;br /&gt;
* [[Connecting two minima with a pathway]] - step by step&lt;br /&gt;
* [[Compiling and using OPTIM with QUIP]]&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
* [[The effect of calculating less than the maximum number of eigenvalues using ENDHESS n]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
* [[Instanton tunneling and classical rate calculations with OPTIM]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[common setup problem : No Frequency Warning]]&lt;br /&gt;
&lt;br /&gt;
=== [[PATHSAMPLE]] ===&lt;br /&gt;
* [[Adding a model to PATHSAMPLE]] - rough outline of the subrounties that need to be changed to add a new model to PATHSAMPLE&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling PATHSAMPLE using cmake ]]&lt;br /&gt;
* [[IMPORTANT: Using PATHSAMPLE safely on sinister]]&lt;br /&gt;
* [[Adding a model for PATHSAMPLE]]&lt;br /&gt;
* [[List of output files for PATHSAMPLE]]&lt;br /&gt;
* [[Using BHINTERP to find minima between two end points]]&lt;br /&gt;
* [[Finding an initial path between two end points (minima)]]&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[Optimising a path]]&lt;br /&gt;
* [[Fine tuning UNTRAP]] - ensuring that it picks sensible minima&lt;br /&gt;
* [[Calculating rate constants (GT and fastest path)]]&lt;br /&gt;
* [[Calculating rate constants (SGT, DGT, and SDGT)]]&lt;br /&gt;
* [[Identifying the k fastest paths between endpoints using KSHORTESTPATHS]]&lt;br /&gt;
* [[Removing minima and transition states from the database]]&lt;br /&gt;
* [[Relaxing existing minima with new potential and creating new database]]&lt;br /&gt;
* [[Relaxing existing transition states with new potential and creating new database]]&lt;br /&gt;
* [[If things go wrong...]]&lt;br /&gt;
* [[If you lost file min.data, but still you have points.min]]&lt;br /&gt;
* [[path.info file is not read, causes PATHSAMPLE to die]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[When PATHSAMPLE finds a connected path, but using DIJKSTRA 0 fails to find the connected path]]&lt;br /&gt;
* [[Biomolecules in PATHSAMPLE]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[Adding several minima obtained using GMIN (maybe using BHPT) to min.data]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[Connecting Sub-databases]]&lt;br /&gt;
* [[CHECKSPMUTATE]]: An extension of CHECKSPODATA which allows for a protein to be mutated or transformed into a homologue.&lt;br /&gt;
* [[Pathway Gap Filling Post-CHECKSPMUTATE]]: Post-processing following CHECKSPMUTATE&lt;br /&gt;
* [[STARTING INITIAL PATH JOBS WITH PATHSAMPLE]]: How to start initial path jobs with PATHSAMPLE if no min.data or path.info files are present.&lt;br /&gt;
&lt;br /&gt;
=== [[Notes on MINPERMDIST | MINPERMDIST]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[Quasi-continuous interpolation for biomolecules | QCI]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[DISCOTRESS | Detailed kinetic network analysis with DISCOTRESS]] ===&lt;br /&gt;
&lt;br /&gt;
== Non-Group Software ==&lt;br /&gt;
&lt;br /&gt;
=== [[AMBER]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [http://ambermd.org/ AMBER]&lt;br /&gt;
* [http://ambermd.org/tutorials/ AMBER tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Notes on AMBER 12 interface]]&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Preparing input files for a peptide using AMBER]] - detailed guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Using Molfacture to edit molecules and add hydrogens]]&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[CHECKSPMUTATE]]: An extension of CHECKSPODATA which allows for a protein to be mutated or transformed into a homologue.&lt;br /&gt;
* [[Pathway Gap Filling Post-CHECKSPMUTATE]]: Post-processing following CHECKSPMUTATE&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[perm-prmtop.py]] - A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Creating mismatched DNA duplex using NAB]]&lt;br /&gt;
&lt;br /&gt;
=== [[aux2bib]] === &lt;br /&gt;
To generate a bib file containing only the entries cited in a given .tex file from a larger bib or multiple bib files.&lt;br /&gt;
* [https://ctan.org/pkg/bibtools Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[CamCasp]] ===&lt;br /&gt;
Cambridge package for Calculation of Anisotropic Site Properties&lt;br /&gt;
From Anthony Stone&#039;s website: &#039;CamCASP is a collection of scripts and programs written by Dr Alston Misquitta and myself for the calculation ab initio of distributed multipoles, polarizabilities, dispersion coefficients and repulsion parameters for individual molecules, and interaction energies between pairs of molecules using SAPT(DFT).&#039;&lt;br /&gt;
* [http://www-stone.ch.cam.ac.uk/programs.html CamCASP home]&lt;br /&gt;
* [[CamCASP/Programming]]&lt;br /&gt;
* [[CamCASP/Programming/5/example1]]&lt;br /&gt;
* [[CamCASP/Notes]]&lt;br /&gt;
* [[CamCASP/Bugs]]&lt;br /&gt;
* [[CamCASP/ToDo/diskIO]]&lt;br /&gt;
* [[CamCASP/ToDo/Memory]]&lt;br /&gt;
* [[CamCASP/CodeExamples/DirectAccess]]&lt;br /&gt;
&lt;br /&gt;
=== [[CPMD]] ===&lt;br /&gt;
Implementation of DFT for &#039;&#039;ab-initio&#039;&#039; molecular dynamics.&lt;br /&gt;
* [http://www.cpmd.org/ Home Page]&lt;br /&gt;
* [[CPMDInput]]&lt;br /&gt;
&lt;br /&gt;
=== [[CHARMM]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [https://www.charmm.org/charmm/?CFID=65f7b3aa-8037-452a-bcd1-7583dd83a087&amp;amp;CFTOKEN=0 CHARMM]&lt;br /&gt;
* [[Generating pdb, crd and psf for a peptide sequence]]&lt;br /&gt;
* [[Converting between &#039;.crd&#039; and &#039;.pdb&#039;]]&lt;br /&gt;
* [[Calculating energy of a conformation]]&lt;br /&gt;
* [[Calculating molecular properties]]&lt;br /&gt;
* [[Calculating order parameters]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
* [[Setting up (CHARMM)]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
&lt;br /&gt;
=== [[disconnectionDPS]] ===&lt;br /&gt;
Produces disconnectivity graphs from min.data and ts.data files. This is included in the Wales group public tarball.&lt;br /&gt;
* [[Constructing Free Energy Disconnectivity Graphs]]&lt;br /&gt;
&lt;br /&gt;
=== [[DMACRYS]] ===&lt;br /&gt;
Package which models crystals of rigid molecules.&lt;br /&gt;
* [http://www.chem.ucl.ac.uk/cposs/dmacrys/index.html Home Page]&lt;br /&gt;
* [[DMACRYS interface]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
&lt;br /&gt;
=== [[GAMESS]] ===&lt;br /&gt;
General &#039;&#039;ab initio&#039;&#039; quantum chemistry package.&lt;br /&gt;
* [https://www.msg.chem.iastate.edu/gamess/ GAMESS]&lt;br /&gt;
&lt;br /&gt;
=== [[Gaussian]] ===&lt;br /&gt;
General purpose package for computational chemistry calculations.&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
&lt;br /&gt;
=== [[gnuplot]] ===&lt;br /&gt;
Open source graphing program.&lt;br /&gt;
* [http://www.gnuplot.info/ gnuplot]&lt;br /&gt;
* [[Plotting a quick histogram in gnuplot using the raw data]]&lt;br /&gt;
* [[Plotting data in real time]]&lt;br /&gt;
* [[Linear and non-linear regression in gnuplot]]&lt;br /&gt;
&lt;br /&gt;
=== [[GROMACS]] ===&lt;br /&gt;
Molecular dynamics package.&lt;br /&gt;
* [[Installing GROMACS on Clust]]&lt;br /&gt;
* [http://www.mdtutorials.com/gmx/ External tutorials]&lt;br /&gt;
* [http://www.gromacs.org/Documentation/Tutorials More external tutorials]&lt;br /&gt;
&lt;br /&gt;
=== [[HiRE-RNA]] ===&lt;br /&gt;
High-res course-grained energy model for RNA.&lt;br /&gt;
* [https://pubs.acs.org/doi/10.1021/jp102497y Explanatory Paper]&lt;br /&gt;
&lt;br /&gt;
=== [[latex2html]] ===&lt;br /&gt;
Script which converts latex documents into HTML pages.&lt;br /&gt;
* [https://www.latex2html.org/ Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[MMTSB-toolset]] ===&lt;br /&gt;
Group of perl scripts which can be used to setup and run energy minimization, structural analysis and MD with CHARMM or AMBER.&lt;br /&gt;
* [http://feig.bch.msu.edu/mmtsb/Main_Page Documentation]&lt;br /&gt;
* [http://www.mmtsb.org/workshops/mmtsb-ctbp_2006/Tutorials/WorkshopTutorials_2006.html External tutorials]&lt;br /&gt;
* [[Installing and setting up the MMTSB toolset]]&lt;br /&gt;
* [[REX (Replica EXchange MD) with the MMTSB-toolset]]&lt;br /&gt;
&lt;br /&gt;
=== [[Simulations using OPEP | OPEP]] ===&lt;br /&gt;
OPEP is a coarse-grained force field providing a potential for proteins and RNA.&lt;br /&gt;
* [http://opep.galaxy.ibpc.fr/ OPEP file generator here]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
&lt;br /&gt;
=== [[pgprof]] === &lt;br /&gt;
Profiler for portland-compiled codes&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
=== [[Pymol]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [https://pymol.org/2/ PyMOL]&lt;br /&gt;
* [https://pymolwiki.org/index.php/Main_Page PyMOL Community Wiki]&lt;br /&gt;
* [[loading AMBER prmtop and inpcrd files into Pymol]]&lt;br /&gt;
* [[producing sexy ray-traced images]]&lt;br /&gt;
* [[advanced colouring]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[path2pdb.py]] - A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
=== [[VASP]] ===&lt;br /&gt;
OPTIM has an interface to VASP, which is installed on CSD3. In collaboration with Bora Karasulu the interface has been updated to use VASP format POSCAR input files for both single- and double-ended optimisations and path searches. The OPTIM odata file requires a line like&lt;br /&gt;
&lt;br /&gt;
VASP &#039;mpirun -ppn 16 -np 16 /home/bk393/APPS/vasp.5.4.4/with-VTST/bin/vasp_std &amp;gt; vasp.out&#039;&lt;br /&gt;
&lt;br /&gt;
POSCAR files can be visualised using ase, the Atomic Simulation Environment, which can be accessed on volkhan via&lt;br /&gt;
&lt;br /&gt;
module load anaconda/python3/5.3.0 &lt;br /&gt;
&lt;br /&gt;
pip install ase --user&lt;br /&gt;
&lt;br /&gt;
ase-gui POSCAR1.vasp &amp;amp;&lt;br /&gt;
&lt;br /&gt;
which assumes that ~/.input/bin is in your $PATH environment variable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[VMD]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [http://www.ks.uiuc.edu/Research/vmd/current/ug/ug.html Documentation]&lt;br /&gt;
* [http://www.ks.uiuc.edu/Training/Tutorials/vmd/tutorial-html/index.html External tutorials]&lt;br /&gt;
* [[using VMD to display and manipulate &#039;.pdb&#039; files]]&lt;br /&gt;
* [[loading coordinate files into VMD with the help of an AMBER topology file]] e.g. to visualise the results of a GMIN run using AMBER9&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
=== [[xfig]] ===&lt;br /&gt;
Open source vector graphics editor&lt;br /&gt;
* [https://ctan.org/tex-archive/support/epstopdf/ Convert eps to pdf]&lt;br /&gt;
&lt;br /&gt;
=== [[Xmakemol]] ===&lt;br /&gt;
Program for visualising atomic and molecular systems.&lt;br /&gt;
* [https://www.nongnu.org/xmakemol/ XMakemol]&lt;br /&gt;
&lt;br /&gt;
=== [[xmgrace]] ===&lt;br /&gt;
2D plotting tool.&lt;br /&gt;
* [http://exciting-code.org/xmgrace-quickstart Xmgrace]&lt;br /&gt;
&lt;br /&gt;
== Theoretical/Mathematical Notes ==&lt;br /&gt;
&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[Ellipsoid.model]]&lt;br /&gt;
* [[Ellipsoid.model.xyz]]&lt;br /&gt;
* [[Ellipsoid.xyz]]&lt;br /&gt;
* [[Gencoords]]&lt;br /&gt;
* [[GenCoords]]&lt;br /&gt;
* [[GenCoords Models]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
=== Angle-axis notes ===&lt;br /&gt;
&lt;br /&gt;
* [[Angle-axis framework]]&lt;br /&gt;
* [[Computing normal modes in angle-axis]]&lt;br /&gt;
&lt;br /&gt;
=== Rigid Bodies ===&lt;br /&gt;
&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[Rigid body input files for proteins using genrigid-input.py]]&lt;br /&gt;
* [[Local Rigid Body Framework]]&lt;br /&gt;
* [[Local rigid body in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
== Useful Scripts ==&lt;br /&gt;
* [[perm-prmtop.py]]: A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[colourdiscon.py]]: A python program for sorting input for disconnectivity graphs&lt;br /&gt;
* [[pdb_to_movie.py]]: A python program to create an AMH movieseg file from a PDB file&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
* [[recommended bash aliases]]&lt;br /&gt;
* [[David&#039;s .inputrc file]]&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[GenCoords]]: A fortran program to generate coarse grain building blocks and initial coords using a set of geometric models.&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
See also the SCRIPTS/ directory in the SVN repository!&lt;br /&gt;
* [[Computing CHARMM FF energy using GMIN, MMTSB and CHARMM]] - Computes the Charmm FF energy of the same structure. Useful for cross-validating force field settings in GMIN data file, CHARMM input file and MMTSB options.&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
* [[Parameter-scanning script]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
* [http://www.ch.cam.ac.uk/computing/theory-compute-clusters The Theory Compute Clusters support page]. Contains useful cluster specific information, including example job submission scripts.&lt;br /&gt;
&lt;br /&gt;
* A useful website which contains AMBER (GAFF) and OPLS parameters for small molecules. http://virtualchemistry.org/gmld.php . This could save us lot of time while trying to derive parameters on our own. If you are lucky, the molecule of your interest may already be there in the existing database. The topology files are in GROMACS format but possibly can be converted into AMBER parameter files. (script anyone ?)&lt;br /&gt;
&lt;br /&gt;
* The moving-domain QM/MM method developed by Victor Batista&#039;s group http://gascon.chem.uconn.edu/software. This approach can be used in the derivation of charges for large proteins and nucleic acids, where a full-fledged ONIOM based calculation is comptutationally prohibitive. It has been applied to systems like the Gramicidin ion channel and Photosystem II.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
* [[Animated GIF on the group website]]&lt;br /&gt;
* [[Backup strategy]]&lt;br /&gt;
* [[Chain crossing]]&lt;br /&gt;
* [[Computer Office services]]&lt;br /&gt;
* [[Computing values only once]]&lt;br /&gt;
* [[Decoding heat capacity curves]]&lt;br /&gt;
* [[Differences from Clust]]&lt;br /&gt;
* [[Fixing thunderbird links]]&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Intel Trace Analyzer and Collector]]&lt;br /&gt;
* [[LDAP plans]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Mek-quake Queueing system]]&lt;br /&gt;
* [[Mek-quake initial setup notes]]&lt;br /&gt;
* [[New mek-quake]]&lt;br /&gt;
* [[Maui compilation]]&lt;br /&gt;
* [[Torque and Maui]]&lt;br /&gt;
* [[Mercurial]]&lt;br /&gt;
* [[Migrating to the new SVN server]]&lt;br /&gt;
* [[NECI Parallelization]]&lt;br /&gt;
* [[Optimization tricks]]&lt;br /&gt;
* [[Other IT stuff]]&lt;br /&gt;
* [[Porfuncs Documentation]]&lt;br /&gt;
* [[Progress]]&lt;br /&gt;
* [[Proposed changes to backup and archiving]]&lt;br /&gt;
* [[Rama upgrade]]&lt;br /&gt;
* [[Remastering Knoppix]]&lt;br /&gt;
* [[See unpacked nodes]]&lt;br /&gt;
* [[Tardis scheduling policy]]&lt;br /&gt;
* [[Zippo Sicortex machine]]&lt;br /&gt;
* [[Beginner&#039;s guide to working in Wales group]]&lt;br /&gt;
&lt;br /&gt;
== Useful linux stuff ==&lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
* [[basic linux commands everyone should know!]]&lt;br /&gt;
* [[piping and redirecting output from one command or file to another]] - how to save yourself hours!&lt;br /&gt;
* [[bash loop tricks]]&lt;br /&gt;
* [[bash history searching]]&lt;br /&gt;
&lt;br /&gt;
===Remote access===&lt;br /&gt;
* [[setting up aliases to quickly log you in to a different machine]]&lt;br /&gt;
* [[transfering files to and from your workstation]] -using &#039;&#039;scp&#039;&#039; or &#039;&#039;rsync&#039;&#039;&lt;br /&gt;
* [[using &#039;ssh-keygen&#039; to automatically log you into clusters from your workstation]] (no more typing in your password!)&lt;br /&gt;
* [[mounting sharedscratch locally]]&lt;br /&gt;
&lt;br /&gt;
===Find and replace===&lt;br /&gt;
* [[short &#039;sed&#039; examples]]&lt;br /&gt;
* [[quick guide to awk]]&lt;br /&gt;
* [[short &#039;awk&#039; examples]]&lt;br /&gt;
&lt;br /&gt;
===File manipulation===&lt;br /&gt;
* [[sorting a file by multiple columns]]&lt;br /&gt;
* [[using tar and gzip to compress/uncompress files | using tar and bzip2 to compress/uncompress files]]&lt;br /&gt;
* [[conversion between different data file formats]] -&#039;almost one-line&#039; scripts&lt;br /&gt;
* [[conversion between different image file formats]] - the &#039;&#039;convert&#039;&#039; command&lt;br /&gt;
* [[removing an excessive number of files from a directory - when &#039;rm&#039; just isn&#039;t enough]]&lt;br /&gt;
&lt;br /&gt;
===Cluster queues===&lt;br /&gt;
* [[submitting jobs, interactively or to a cluster queue system]]&lt;br /&gt;
* [[identifying job on a node]] - if you need to kill only one of few running jobs&lt;br /&gt;
* [[getting started with SLURM]]&lt;br /&gt;
* [[a guide to using SLURM to run PATHSAMPLE]]&lt;br /&gt;
* [[a guide to using SLURM to run GPU jobs on pat]]&lt;br /&gt;
* [[managing interactive jobs on cluster]]&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous/uncategorised===&lt;br /&gt;
* [[installing packages on your managed CUC3 workstation]]&lt;br /&gt;
* [[running programs in the background]] - so you can use your shell for other things at the same time&lt;br /&gt;
* [[finding bugs in latex documents that will not compile]]&lt;br /&gt;
* [[printing files from the command line using &#039;lpr&#039;]]&lt;br /&gt;
* [[uploading non image files to the wiki]]&lt;br /&gt;
&lt;br /&gt;
== Compiler Flags ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiler Flags]]&lt;br /&gt;
* [[Blacklisting Compilers]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
== SuSE ==&lt;br /&gt;
&lt;br /&gt;
* [[Upgrading destiny]]&lt;br /&gt;
* [[Upgrading sword]]&lt;br /&gt;
* [[SuSE 10.1 workstation image]]&lt;br /&gt;
* [[SuSE 10.2 workstation image]]&lt;br /&gt;
* [[SuSE 10.3 workstation image]]&lt;br /&gt;
* [[SuSE 11.1]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:adk44|adk44]] 17.00, 9 May 2019 (BST)&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1786</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1786"/>
		<updated>2021-10-12T09:11:07Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 3: Minimising the structure using sander */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/nn320/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that for running sander you need to ensure you have the appropriate library files in your $LD_LIBRARY_PATH. You should already have sander working if you followed Step 0. In case, sander does not run automatically, alternatively, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1785</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1785"/>
		<updated>2021-10-12T09:08:24Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 0: Have amber on your system */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/nn320/amber14/lib&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation. In case, sander does not run automatically, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1784</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1784"/>
		<updated>2021-10-11T14:42:30Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 3: Minimising the structure using sander */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation. In case, sander does not run automatically, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1783</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1783"/>
		<updated>2021-10-11T14:39:08Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 3: Minimising the structure using sander */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation. In case, sander does not run automatically, you need to first build amber.&lt;br /&gt;
First update your $LD_LIBRARY_PATH to include $AMBERHOME/lib by including the following in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;${AMBERHOME}/lib:${LD_LIBRARY_PATH}&amp;quot;&lt;br /&gt;
export PYTHONPATH=&amp;quot;${AMBERHOME}/lib/python2.7/site-packages:${PYTHONPATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then on the command line run&lt;br /&gt;
&amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the configure script with GNU as the compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;./configure gnu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After configuring, run &lt;br /&gt;
&amp;lt;pre&amp;gt;make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
 to finish building amber.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1782</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1782"/>
		<updated>2021-10-11T14:17:18Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 8: Creating atomgroups file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
The atomgroups file is required when the GROUPROTATION keyword is included in the data file.&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself. The hint is that for an amino acid residue NH2-CH-(CH2-R)-CO- the rotation axis is defined using the central C (C alpha) and the C of side chain, the group is defined using the atoms  H2 and R in the group CH2-R.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1781</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1781"/>
		<updated>2021-10-11T14:13:23Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 7: Creating topology file for modified force field ff99IDPs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (old_symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1780</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1780"/>
		<updated>2021-10-11T10:46:35Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 4: Symmetrise the topology file so obtained */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/. Please note that, you should have a look at https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php/Setting_up if you do not have your peptide capped with ACE and NME groups. For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1779</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1779"/>
		<updated>2021-10-11T10:16:02Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 8: Creating atomgroups file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself.&lt;br /&gt;
You may want to visualise the molecule in pymol with atom numbers to write the atomgroups file. A pymol script label_atom_numbers.pml could have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
load minncrst.pdb, mol                                                          &lt;br /&gt;
show sticks                                                                     &lt;br /&gt;
show sphere                                                                     &lt;br /&gt;
set sphere_scale, 0.3                                                           &lt;br /&gt;
set label_size, 10                                                              &lt;br /&gt;
set label_font_id, 9                                                            &lt;br /&gt;
set ray_trace_fog, 0                                                            &lt;br /&gt;
set ray_shadows, 0                                                              &lt;br /&gt;
unset depth_cue                                                                 &lt;br /&gt;
bg_color white                                                                  &lt;br /&gt;
set antialias, 2                                                                &lt;br /&gt;
set hash_max, 300                                                               &lt;br /&gt;
set ray_trace_mode, 3                                                           &lt;br /&gt;
set ray_trace_color, black                                                      &lt;br /&gt;
set ray_opaque_background, off &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you run the following from command line on your local workstation,&lt;br /&gt;
&amp;lt;pre&amp;gt;pymol label_atom_numbers.pml&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pymol window appears with the molecule loaded in. On the rightmost there is object control panel with several buttons A,S,H,L,C. From the L (label button) select atom identifiers and then select ID. If you want to save the molecule as png, on the pymol command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;ray 2000, 1500&lt;br /&gt;
png raytraced_minncrst.png, dpi=300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1778</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1778"/>
		<updated>2021-10-11T09:30:15Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Step 6: Check symmetrisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6a&amp;lt;/b&amp;gt;: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Step 6b&amp;lt;/b&amp;gt;: Run GMIN or A12GMIN in this case to check if their energies are the same&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1777</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1777"/>
		<updated>2021-10-11T09:27:28Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 0: Have amber on your system===&lt;br /&gt;
 &lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc on nest.ch.private.cam.ac.uk.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Make topology and coordinates file using tleap in AMBER===&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2: Check the amber library files===&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3: Minimising the structure using sander=== &lt;br /&gt;
Please note that sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation.&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Symmetrise the topology file so obtained===&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 5: Creating a perm.allow file===&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 6: Check symmetrisation===&lt;br /&gt;
&lt;br /&gt;
=====Step 6a:=====&lt;br /&gt;
Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
=====Step 6b:=====&lt;br /&gt;
Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0    &lt;br /&gt;
RADIUS 1000.0                                                                &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
===Step 7: Creating topology file for modified force field ff99IDPs===&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 8: Creating atomgroups file===&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous===&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1776</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1776"/>
		<updated>2021-10-09T15:15:54Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Have amber on your system (nest.ch.private.cam.ac.uk)&lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander (sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation)&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, sbatch_GMIN_serial_nest for it. You will need to copy all these files to the group directories created when you ran symm_check.sh script. To automate this copying, you can create a directory gmin_input_files and put coords.prmtop, min.in, data, sbatch_GMIN_serial_nest files in it and create a bash script copy_gmin_input_files.sh that has&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
total_groups=`head -n 1 perm.allow`                                             &lt;br /&gt;
cp gmin_input_files/* all_group_one_pair/                                       &lt;br /&gt;
cd all_group_one_pair                                                           &lt;br /&gt;
sbatch sbatch_GMIN_serial_nest                                                  &lt;br /&gt;
cd ../                                                                          &lt;br /&gt;
for ((i=1;i&amp;lt;=$total_groups;i++));                                               &lt;br /&gt;
do                                                                              &lt;br /&gt;
    cp gmin_input_files/* group$i/                                              &lt;br /&gt;
    cd group$i                                                                  &lt;br /&gt;
    sbatch sbatch_GMIN_serial_nest                                              &lt;br /&gt;
    cd ../                                                                      &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG   &lt;br /&gt;
MAXIT 1 1&lt;br /&gt;
MAXBFGS 0.0D0&lt;br /&gt;
STEP 0.0 0.0                                                                    &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general sbatch_GMIN_serial_nest can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1775</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1775"/>
		<updated>2021-10-09T14:59:54Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Have amber on your system (nest.ch.private.cam.ac.uk)&lt;br /&gt;
You can obtain amber14 directory from someone&#039;s home directory on sinister or from /home/nn320/amber14 on nest.&lt;br /&gt;
You can have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander (sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation)&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, submission_script for it. You will need to copy all these files to the group directories created by when you ran symm_check.sh script.&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG                                                                    &lt;br /&gt;
STEP 0.0 0.0                                                                    &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general submission_script can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1774</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1774"/>
		<updated>2021-10-09T14:57:46Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Have amber on your system (nest.ch.private.cam.ac.uk)&lt;br /&gt;
&lt;br /&gt;
Assuming you have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander (sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation)&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, submission_script for it. You will need to copy all these files to the group directories created by when you ran symm_check.sh script.&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG                                                                    &lt;br /&gt;
STEP 0.0 0.0                                                                    &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general submission_script can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1773</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1773"/>
		<updated>2021-10-09T14:57:18Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Having amber on your system (nest.ch.private.cam.ac.uk)&lt;br /&gt;
&lt;br /&gt;
Assuming you have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol old_mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives pdb, prmtop and incprd files as output.&lt;br /&gt;
Note that the pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander (sander does not work on nest, it will probably work on your local workstation, you need to repeat Step 0 on your local workstation)&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. &lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p old_coords.prmtop -c old_coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise old_coords.inpcrd, just look at old_mol.pdb or use &lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p old_coords.prmtop -c old_coords.inpcrd &amp;gt; old_coords_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your old_coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.ff03.py script. It is written in python2, so first run.&lt;br /&gt;
&amp;lt;pre&amp;gt;module load anaconda/python2/5.3.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.ff03.py old_coords.prmtop old_symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check for correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py old_mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh. If you have python2 module loaded already, you will have to remove it and load python3 before running symm_check.sh since it is a hybrid bash and python script.&lt;br /&gt;
You would need A12GMIN executable, min.in, data, old_symmetrised_coords.prmtop (rename it as coords.prmtop for use with A12GMIN), perm.allow, submission_script for it. You will need to copy all these files to the group directories created by when you ran symm_check.sh script.&lt;br /&gt;
The min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
 &amp;amp;cntrl                                                                          &lt;br /&gt;
   imin = 1,                                                                     &lt;br /&gt;
   ncyc = 1,                                                                     &lt;br /&gt;
   maxcyc = 1,                                                                   &lt;br /&gt;
   igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
   ntb    = 0,                                                                   &lt;br /&gt;
   cut    = 999.0,                                                               &lt;br /&gt;
   rgbmax = 25.0                                                                 &lt;br /&gt;
 /   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Data file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
STEPS 1 1.0 &lt;br /&gt;
DEBUG                                                                    &lt;br /&gt;
STEP 0.0 0.0                                                                    &lt;br /&gt;
SLOPPYCONV 1.0D-6                                                               &lt;br /&gt;
TIGHTCONV 1.0D-6                                                                &lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
AMBER12  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A general submission_script can look like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash                                                                     &lt;br /&gt;
                                                                                 &lt;br /&gt;
#SBATCH --job-name=symm_check                                                   &lt;br /&gt;
#SBATCH --ntasks=1 # Specify the number of nodes you want to run on             &lt;br /&gt;
##SBATCH --requeue # Requeue job in the case of node failure                    &lt;br /&gt;
#SBATCH --mail-type=FAIL # Receive an email if your job fails                   &lt;br /&gt;
#SBATCH --time=5-00:00:00                                                       &lt;br /&gt;
                                                                                &lt;br /&gt;
echo &amp;quot;Time: `date`&amp;quot; &amp;gt; jobnumber                                                 &lt;br /&gt;
                                                                                &lt;br /&gt;
echo $SLURM_NTASKS &amp;gt; nodes.info                                                 &lt;br /&gt;
srun hostname &amp;gt;&amp;gt; nodes.info                                                     &lt;br /&gt;
echo $USER &amp;gt;&amp;gt; nodes.info                                                        &lt;br /&gt;
pwd &amp;gt;&amp;gt; nodes.info                                                               &lt;br /&gt;
                                                                                 &lt;br /&gt;
                                                                                 &lt;br /&gt;
/sharedscratch/crsid/softwarewales/GMIN/builds/gfortran_serial_nest/A12GMIN &amp;gt;&amp;gt; output&lt;br /&gt;
                                                                                 &lt;br /&gt;
echo Finished at `date` &amp;gt;&amp;gt; jobnumber &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can then use&lt;br /&gt;
&amp;lt;pre&amp;gt;grep -i &amp;quot;Lowest minimum&amp;quot; group*/output&amp;lt;/pre&amp;gt;&lt;br /&gt;
If all the energies are same, you can stop here, you have successfully created coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1772</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1772"/>
		<updated>2021-10-08T08:17:47Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields to create topology file (coords.prmtop) and coordinates file (coords.inpcrd) for use with GMIN, OPTIM and PATHSAMPLE. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Having amber on your system&lt;br /&gt;
&lt;br /&gt;
Assuming you have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/crsid/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
leap.in file specifies force field, sequence and solvent model.&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop old_coords.inpcrd &lt;br /&gt;
savepdb mol mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives a pdb, prmtop and incprd files as output&lt;br /&gt;
Note that pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94.lib, all_amino94ildn.lib, all_aminoct94ildn.lib, all_aminont94ildn.lib, ions94.lib and solvents.lib get loaded.&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are probably correct.&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0&lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
amber14/dat/leap/lib&amp;gt; 1 0 0 0 0 0 &lt;br /&gt;
softwarewales/AMBERTOOLS/dat/leap/lib/all_aminoct94.lib&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of lib files in amber14/dat/leap/lib/ somewhere and replace the lib files in the original directory with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new old_coords.prmtop and old_coords.inpcrd file before proceeding to Step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinates file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, old_coords.prmtop, old_coords.inpcrd and min.in file. Note that you will have to run this in a separate directory with old_coords.prmtop and old_coords.inpcrd files renamed as coords.prmtop and coords.inpcrd respectively. Softwares like AMBER and GMIN are very particular about file names and they accept coords.prmtop and coords.inpcrd as input files.&lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p coords.prmtop -c coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise min.ncrst and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise older coords.inpcrd, just use the above command replacing coordinate file and the output file, i.e.&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p coords.prmtop -c coords.inpcrd &amp;gt; old_inpcrd.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
Use the min.ncrst so obtained as your new coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the ff99SBildn force field use perm-prmtop.py script. It is written in python2. &lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.py old_coords.prmtop symmetrised_coords.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy of the molecule does not change.&lt;br /&gt;
The best way to check correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy for each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py mol.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST in GMIN&lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh&lt;br /&gt;
&lt;br /&gt;
You can probably stop here, you have coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to change the permission of the python file before running them using&lt;br /&gt;
``chmod 755 ADD_CMAP.py``&lt;br /&gt;
Obtain another prmtop file which should already be symmetrised by following these steps.&lt;br /&gt;
You will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop (symmetrised_coords.prmtop) and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files or on the github wesbite for ff99IDPs.&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and AMBER energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions under SCEE and SCNB flags. The A12GMIN program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1771</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1771"/>
		<updated>2021-10-08T07:53:30Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to create input files for a peptide for use with GMIN?&lt;br /&gt;
&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Having amber on your system&lt;br /&gt;
&lt;br /&gt;
Assuming you have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/nn320/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
leap.in file specifies force field, sequence, solvent model&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop coords.inpcrd &lt;br /&gt;
savepdb mol mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives a pdb, prmtop and incprd files as output&lt;br /&gt;
Note that pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94, all_amino94ildn, all_aminoct94ildn, all_aminont94ildn, ions94, solvents.lib&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are correct&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
1 0 0 0 0 0&lt;br /&gt;
softwareWales ambertools&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
1 0 0 0 0 0 &lt;br /&gt;
softwareWales ambertools&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of amber lib files somewhere and replace them with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new coords.prmtop and coords.inpcrd file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinate file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, coords.prmtop, coords.inpcrd, min.in file&lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p coords.prmtop -c coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise it and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise older coords.inpcrd, just use the above command replacing coordinate file and the output file.&lt;br /&gt;
&lt;br /&gt;
Use the min.ncrst so obtained as your new coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the above force field use perm-prmtop.py script. It is written in python2. &lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.py old.prmtop symmetrised.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy should not change&lt;br /&gt;
The best way to check correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy of each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py name.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST &lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh&lt;br /&gt;
&lt;br /&gt;
You can probably stop here, you have coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to make the python files executable&lt;br /&gt;
chmod 755 ADD_CMAP.py &lt;br /&gt;
Obtain another prmtop file&lt;br /&gt;
This should already be symmetrised&lt;br /&gt;
The command to use is, you will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and GMIN energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions. The program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1770</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1770"/>
		<updated>2021-10-07T16:05:59Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to create input files for a peptide for use with GMIN?&lt;br /&gt;
&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Having amber on your system&lt;br /&gt;
&lt;br /&gt;
Assuming you have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export AMBERHOME=/home/nn320/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Then run, &amp;lt;pre&amp;gt;source ~/.bashrc&amp;lt;/pre&amp;gt; in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run, &amp;lt;pre&amp;gt;tleap -f leap.in&amp;lt;/pre&amp;gt;&lt;br /&gt;
leap.in file specifies force field, sequence, solvent model&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop coords.inpcrd &lt;br /&gt;
savepdb mol mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives a pdb, prmtop and incprd files as output&lt;br /&gt;
Note that pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94, all_amino94ildn, all_aminoct94ildn, all_aminont94ildn, ions94, solvents.lib&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are correct&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
1 0 0 0 0 0&lt;br /&gt;
softwareWales ambertools&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
1 0 0 0 0 0 &lt;br /&gt;
softwareWales ambertools&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of amber lib files somewhere and replace them with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new coords.prmtop and coords.inpcrd file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinate file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, coords.prmtop, coords.inpcrd, min.in file&lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p coords.prmtop -c coords.inpcrd -r min.ncrst&amp;lt;/pre&amp;gt;&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise it and compare it with initial geometry run the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;$AMBERHOME/bin/ambpdb -p coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb &amp;lt;/pre&amp;gt;&lt;br /&gt;
To visualise older coords.inpcrd, just use the above command replacing coordinate file and the output file.&lt;br /&gt;
&lt;br /&gt;
Use the min.ncrst so obtained as your new coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the above force field use perm-prmtop.py script. It is written in python2. &lt;br /&gt;
Its usage is&lt;br /&gt;
&amp;lt;pre&amp;gt;perm-prmtop.py old.prmtop symmetrised.prmtop&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy should not change&lt;br /&gt;
The best way to check correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy of each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
&lt;br /&gt;
Run &lt;br /&gt;
&amp;lt;pre&amp;gt;perm-pdb.py name.pdb AMBER&amp;lt;/pre&amp;gt;&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST &lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh&lt;br /&gt;
&lt;br /&gt;
You can probably stop here, you have coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to make the python files executable&lt;br /&gt;
chmod 755 ADD_CMAP.py &lt;br /&gt;
Obtain another prmtop file&lt;br /&gt;
This should already be symmetrised&lt;br /&gt;
The command to use is, you will have to unload python2 and load python3 module.&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and GMIN energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example data file can be&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions. The program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1769</id>
		<title>Comprehensive Contents Page</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1769"/>
		<updated>2021-10-07T16:01:36Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* AMBER */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is designed to organise all of the pages on this wiki, as well as provide other useful links. Note that some pages may appear under more than one heading.&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
[[Wales Group]] provides good step-by-step instructions. Relevant pages are:&lt;br /&gt;
&lt;br /&gt;
=== Acquiring and compiling the group software ===&lt;br /&gt;
* [[SVN setup]]&lt;br /&gt;
* [[Git Workflow]]&lt;br /&gt;
* [[Wales Group Version control]] - to keep the code standardised.&lt;br /&gt;
* Theory Sector [http://wwmm.ch.cam.ac.uk/wikis/cuc3/index.php/SVN_Page SVN Page] - some useful general information on SVN commands.&lt;br /&gt;
* [[Compiling Wales Group codes using cmake]] - CMake (Cross-platform Make) allows us to compile and test the group codebase regardless of platform. This page provides crucial information how to compile using cmake.&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
&lt;br /&gt;
=== Maintaining code health ===&lt;br /&gt;
* [[Jenkins CI]] - explains Jenkins, which we use to download our code and compile each of our targets with each of the compilers every night.&lt;br /&gt;
* https://wales-jenkins.ch.cam.ac.uk/ - log for our Jenkins tests.&lt;br /&gt;
* [[Branching and Merging]]&lt;br /&gt;
* [[Cmake interface building]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[Revamping the modules system]]&lt;br /&gt;
&lt;br /&gt;
=== Collaborators without access to the SVN repository ===&lt;br /&gt;
For licensing reasons, some code cannot be included in the Wales Group public tarball.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/svn.tar.bz2 - Wales group public tarball. Includes [[GMIN]], [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
If a collaborator has a [[CHARMM]] or [[AMBER]] licence, we do maintain separate tarballs which include the [[CHARMM]], [[AMBER]] and [[CHARMM]]+[[AMBER]] source and interfaces. These are not linked anywhere on the website and require a username (&#039;&#039;&#039;wales&#039;&#039;&#039;) and password (&#039;&#039;&#039;group&#039;&#039;&#039;) to download:&lt;br /&gt;
&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/CHARMM/svn.CHARMM.tar.bz2 CHARMM]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/AMBER/svn.AMBER.tar.bz2 AMBER]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/both/svn.both.tar.bz2 AMBER+CHARMM]&lt;br /&gt;
&lt;br /&gt;
=== Running on Windows ===&lt;br /&gt;
Not particularly recommended.&lt;br /&gt;
* [[Running Wales Group software on Windows 7]]&lt;br /&gt;
&lt;br /&gt;
== Wales Group Programs ==&lt;br /&gt;
&lt;br /&gt;
=== Programs ===&lt;br /&gt;
* [[GMIN]]: A program for finding global minima and calculating thermodynamic properties from basin-sampling.&lt;br /&gt;
* [[OPTIM]]: A program for optimizing geometries and calculating reaction pathways.&lt;br /&gt;
* [[PATHSAMPLE]]: A driver for OPTIM to create stationary point databases using discrete path sampling and perform kinetic analysis.&lt;br /&gt;
* [[Pele]]: Python energy landscape explorer. A pythonic rewrite of some core functionality of GMIN, OPTIM, and PATHSAMPLE. Can be very useful for visualizing your system and for rapidly implementing and testing new ideas.&lt;br /&gt;
* [[DISCOTRESS]]: A program to perform detailed quantitative analysis of a kinetic network (stationary point database)&lt;br /&gt;
&lt;br /&gt;
=== Curated Examples ===&lt;br /&gt;
* https://github.com/wales-group/examples - set of tutorials detailing how to use GMIN, OPTIM and PATHSAMPLE. Essential for beginners.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/VM/Wales_Group_VM.ova - Pre-prepared teaching virtual machine. This contains the code and examples.&lt;br /&gt;
* https://www.virtualbox.org/wiki/Downloads - This is required if using the VM above.&lt;br /&gt;
* https://github.com/wales-group/examples.git - Alternatively, you can run the examples on your own machine. To get hold of the relevant files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/wales-group/examples.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful Notes on Wales Group Programs and Subroutines ==&lt;br /&gt;
=== [[GMIN]] ===&lt;br /&gt;
* [[Adding a model to GMIN]] - rough outline of the subroutines that need to be changed to add a new model to GMIN&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling GMIN using cmake ]]&lt;br /&gt;
* [[Selecting search parameters for GMIN]]&lt;br /&gt;
* [[Global optimization of biomolecules using CHARMM]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9 with Structural Restraints]]&lt;br /&gt;
* [[Calculating binding free energy using the FSA method]]&lt;br /&gt;
* [[Restarting a GMIN run from a dump file]]&lt;br /&gt;
* [[Using the implicit membrane model IMM1]]&lt;br /&gt;
* [[Running a Go model with the AMHGMIN]]&lt;br /&gt;
* [[Running a G\=o model with the AMHGMIN]]&lt;br /&gt;
* [[Ligand binding-mode searches with HBONDMATRIX]]&lt;br /&gt;
* [[Compiling and using GMIN with QUIP]]&lt;br /&gt;
* [[Using GMIN and OPTIM with GPUs]]&lt;br /&gt;
* [[Using GMIN to generate endpoints]]&lt;br /&gt;
* [[Using GMIN to generate endpoints (CHARMM)]]&lt;br /&gt;
* [[Generating a GMIN Eclipse project]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[Keywords]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
&lt;br /&gt;
==== Scripts ====&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
&lt;br /&gt;
==== Useful info for coding GMIN ====&lt;br /&gt;
* [[Program flow]] - contains information about what the various files in GMIN do and what order they&#039;re called. &lt;br /&gt;
* [[amberinterface]]&lt;br /&gt;
&lt;br /&gt;
==== Projects ====&lt;br /&gt;
* [[GMIN MOVES module]]&lt;br /&gt;
* [[GMIN SANITY module]]&lt;br /&gt;
* [[GMIN TESTS module]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
&lt;br /&gt;
=== [[OPTIM]] ===&lt;br /&gt;
* [[Adding a model to OPTIM]] - rough outline of the subrounties that need to be changed to add a new model to OPTIM&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling OPTIM using cmake ]]&lt;br /&gt;
* [[OPTIM/Q-Chem Tutorial]]&lt;br /&gt;
* [[OPTIM and PY ellipsoids tutorial]]&lt;br /&gt;
* [[OPTIM output files]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and AMBER9]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Creating movies (.mpg) of paths using OPTIM]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Debugging odd transition states in OPTIM]]&lt;br /&gt;
* [[Connecting two minima with a pathway]] - step by step&lt;br /&gt;
* [[Compiling and using OPTIM with QUIP]]&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
* [[The effect of calculating less than the maximum number of eigenvalues using ENDHESS n]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
* [[Instanton tunneling and classical rate calculations with OPTIM]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[common setup problem : No Frequency Warning]]&lt;br /&gt;
&lt;br /&gt;
=== [[PATHSAMPLE]] ===&lt;br /&gt;
* [[Adding a model to PATHSAMPLE]] - rough outline of the subrounties that need to be changed to add a new model to PATHSAMPLE&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling PATHSAMPLE using cmake ]]&lt;br /&gt;
* [[IMPORTANT: Using PATHSAMPLE safely on sinister]]&lt;br /&gt;
* [[Adding a model for PATHSAMPLE]]&lt;br /&gt;
* [[List of output files for PATHSAMPLE]]&lt;br /&gt;
* [[Using BHINTERP to find minima between two end points]]&lt;br /&gt;
* [[Finding an initial path between two end points (minima)]]&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[Optimising a path]]&lt;br /&gt;
* [[Fine tuning UNTRAP]] - ensuring that it picks sensible minima&lt;br /&gt;
* [[Calculating rate constants (GT and fastest path)]]&lt;br /&gt;
* [[Calculating rate constants (SGT, DGT, and SDGT)]]&lt;br /&gt;
* [[Identifying the k fastest paths between endpoints using KSHORTESTPATHS]]&lt;br /&gt;
* [[Removing minima and transition states from the database]]&lt;br /&gt;
* [[Relaxing existing minima with new potential and creating new database]]&lt;br /&gt;
* [[Relaxing existing transition states with new potential and creating new database]]&lt;br /&gt;
* [[If things go wrong...]]&lt;br /&gt;
* [[If you lost file min.data, but still you have points.min]]&lt;br /&gt;
* [[path.info file is not read, causes PATHSAMPLE to die]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[When PATHSAMPLE finds a connected path, but using DIJKSTRA 0 fails to find the connected path]]&lt;br /&gt;
* [[Biomolecules in PATHSAMPLE]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[Connecting Sub-databases]]&lt;br /&gt;
* [[CHECKSPMUTATE]]: An extension of CHECKSPODATA which allows for a protein to be mutated or transformed into a homologue.&lt;br /&gt;
* [[Pathway Gap Filling Post-CHECKSPMUTATE]]: Post-processing following CHECKSPMUTATE&lt;br /&gt;
* [[STARTING INITIAL PATH JOBS WITH PATHSAMPLE]]: How to start initial path jobs with PATHSAMPLE if no min.data or path.info files are present.&lt;br /&gt;
&lt;br /&gt;
=== [[Notes on MINPERMDIST | MINPERMDIST]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[Quasi-continuous interpolation for biomolecules | QCI]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[DISCOTRESS | Detailed kinetic network analysis with DISCOTRESS]] ===&lt;br /&gt;
&lt;br /&gt;
== Non-Group Software ==&lt;br /&gt;
&lt;br /&gt;
=== [[AMBER]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [http://ambermd.org/ AMBER]&lt;br /&gt;
* [http://ambermd.org/tutorials/ AMBER tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Notes on AMBER 12 interface]]&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Preparing input files for a peptide using AMBER]] - detailed guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Using Molfacture to edit molecules and add hydrogens]]&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[CHECKSPMUTATE]]: An extension of CHECKSPODATA which allows for a protein to be mutated or transformed into a homologue.&lt;br /&gt;
* [[Pathway Gap Filling Post-CHECKSPMUTATE]]: Post-processing following CHECKSPMUTATE&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[perm-prmtop.py]] - A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Creating mismatched DNA duplex using NAB]]&lt;br /&gt;
&lt;br /&gt;
=== [[aux2bib]] === &lt;br /&gt;
To generate a bib file containing only the entries cited in a given .tex file from a larger bib or multiple bib files.&lt;br /&gt;
* [https://ctan.org/pkg/bibtools Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[CamCasp]] ===&lt;br /&gt;
Cambridge package for Calculation of Anisotropic Site Properties&lt;br /&gt;
From Anthony Stone&#039;s website: &#039;CamCASP is a collection of scripts and programs written by Dr Alston Misquitta and myself for the calculation ab initio of distributed multipoles, polarizabilities, dispersion coefficients and repulsion parameters for individual molecules, and interaction energies between pairs of molecules using SAPT(DFT).&#039;&lt;br /&gt;
* [http://www-stone.ch.cam.ac.uk/programs.html CamCASP home]&lt;br /&gt;
* [[CamCASP/Programming]]&lt;br /&gt;
* [[CamCASP/Programming/5/example1]]&lt;br /&gt;
* [[CamCASP/Notes]]&lt;br /&gt;
* [[CamCASP/Bugs]]&lt;br /&gt;
* [[CamCASP/ToDo/diskIO]]&lt;br /&gt;
* [[CamCASP/ToDo/Memory]]&lt;br /&gt;
* [[CamCASP/CodeExamples/DirectAccess]]&lt;br /&gt;
&lt;br /&gt;
=== [[CPMD]] ===&lt;br /&gt;
Implementation of DFT for &#039;&#039;ab-initio&#039;&#039; molecular dynamics.&lt;br /&gt;
* [http://www.cpmd.org/ Home Page]&lt;br /&gt;
* [[CPMDInput]]&lt;br /&gt;
&lt;br /&gt;
=== [[CHARMM]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [https://www.charmm.org/charmm/?CFID=65f7b3aa-8037-452a-bcd1-7583dd83a087&amp;amp;CFTOKEN=0 CHARMM]&lt;br /&gt;
* [[Generating pdb, crd and psf for a peptide sequence]]&lt;br /&gt;
* [[Converting between &#039;.crd&#039; and &#039;.pdb&#039;]]&lt;br /&gt;
* [[Calculating energy of a conformation]]&lt;br /&gt;
* [[Calculating molecular properties]]&lt;br /&gt;
* [[Calculating order parameters]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
* [[Setting up (CHARMM)]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
&lt;br /&gt;
=== [[disconnectionDPS]] ===&lt;br /&gt;
Produces disconnectivity graphs from min.data and ts.data files. This is included in the Wales group public tarball.&lt;br /&gt;
* [[Constructing Free Energy Disconnectivity Graphs]]&lt;br /&gt;
&lt;br /&gt;
=== [[DMACRYS]] ===&lt;br /&gt;
Package which models crystals of rigid molecules.&lt;br /&gt;
* [http://www.chem.ucl.ac.uk/cposs/dmacrys/index.html Home Page]&lt;br /&gt;
* [[DMACRYS interface]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
&lt;br /&gt;
=== [[GAMESS]] ===&lt;br /&gt;
General &#039;&#039;ab initio&#039;&#039; quantum chemistry package.&lt;br /&gt;
* [https://www.msg.chem.iastate.edu/gamess/ GAMESS]&lt;br /&gt;
&lt;br /&gt;
=== [[Gaussian]] ===&lt;br /&gt;
General purpose package for computational chemistry calculations.&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
&lt;br /&gt;
=== [[gnuplot]] ===&lt;br /&gt;
Open source graphing program.&lt;br /&gt;
* [http://www.gnuplot.info/ gnuplot]&lt;br /&gt;
* [[Plotting a quick histogram in gnuplot using the raw data]]&lt;br /&gt;
* [[Plotting data in real time]]&lt;br /&gt;
* [[Linear and non-linear regression in gnuplot]]&lt;br /&gt;
&lt;br /&gt;
=== [[GROMACS]] ===&lt;br /&gt;
Molecular dynamics package.&lt;br /&gt;
* [[Installing GROMACS on Clust]]&lt;br /&gt;
* [http://www.mdtutorials.com/gmx/ External tutorials]&lt;br /&gt;
* [http://www.gromacs.org/Documentation/Tutorials More external tutorials]&lt;br /&gt;
&lt;br /&gt;
=== [[HiRE-RNA]] ===&lt;br /&gt;
High-res course-grained energy model for RNA.&lt;br /&gt;
* [https://pubs.acs.org/doi/10.1021/jp102497y Explanatory Paper]&lt;br /&gt;
&lt;br /&gt;
=== [[latex2html]] ===&lt;br /&gt;
Script which converts latex documents into HTML pages.&lt;br /&gt;
* [https://www.latex2html.org/ Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[MMTSB-toolset]] ===&lt;br /&gt;
Group of perl scripts which can be used to setup and run energy minimization, structural analysis and MD with CHARMM or AMBER.&lt;br /&gt;
* [http://feig.bch.msu.edu/mmtsb/Main_Page Documentation]&lt;br /&gt;
* [http://www.mmtsb.org/workshops/mmtsb-ctbp_2006/Tutorials/WorkshopTutorials_2006.html External tutorials]&lt;br /&gt;
* [[Installing and setting up the MMTSB toolset]]&lt;br /&gt;
* [[REX (Replica EXchange MD) with the MMTSB-toolset]]&lt;br /&gt;
&lt;br /&gt;
=== [[Simulations using OPEP | OPEP]] ===&lt;br /&gt;
OPEP is a coarse-grained force field providing a potential for proteins and RNA.&lt;br /&gt;
* [http://opep.galaxy.ibpc.fr/ OPEP file generator here]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
&lt;br /&gt;
=== [[pgprof]] === &lt;br /&gt;
Profiler for portland-compiled codes&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
=== [[Pymol]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [https://pymol.org/2/ PyMOL]&lt;br /&gt;
* [https://pymolwiki.org/index.php/Main_Page PyMOL Community Wiki]&lt;br /&gt;
* [[loading AMBER prmtop and inpcrd files into Pymol]]&lt;br /&gt;
* [[producing sexy ray-traced images]]&lt;br /&gt;
* [[advanced colouring]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[path2pdb.py]] - A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
=== [[VASP]] ===&lt;br /&gt;
OPTIM has an interface to VASP, which is installed on CSD3. In collaboration with Bora Karasulu the interface has been updated to use VASP format POSCAR input files for both single- and double-ended optimisations and path searches. The OPTIM odata file requires a line like&lt;br /&gt;
&lt;br /&gt;
VASP &#039;mpirun -ppn 16 -np 16 /home/bk393/APPS/vasp.5.4.4/with-VTST/bin/vasp_std &amp;gt; vasp.out&#039;&lt;br /&gt;
&lt;br /&gt;
POSCAR files can be visualised using ase, the Atomic Simulation Environment, which can be accessed on volkhan via&lt;br /&gt;
&lt;br /&gt;
module load anaconda/python3/5.3.0 &lt;br /&gt;
&lt;br /&gt;
pip install ase --user&lt;br /&gt;
&lt;br /&gt;
ase-gui POSCAR1.vasp &amp;amp;&lt;br /&gt;
&lt;br /&gt;
which assumes that ~/.input/bin is in your $PATH environment variable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[VMD]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [http://www.ks.uiuc.edu/Research/vmd/current/ug/ug.html Documentation]&lt;br /&gt;
* [http://www.ks.uiuc.edu/Training/Tutorials/vmd/tutorial-html/index.html External tutorials]&lt;br /&gt;
* [[using VMD to display and manipulate &#039;.pdb&#039; files]]&lt;br /&gt;
* [[loading coordinate files into VMD with the help of an AMBER topology file]] e.g. to visualise the results of a GMIN run using AMBER9&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
=== [[xfig]] ===&lt;br /&gt;
Open source vector graphics editor&lt;br /&gt;
* [https://ctan.org/tex-archive/support/epstopdf/ Convert eps to pdf]&lt;br /&gt;
&lt;br /&gt;
=== [[Xmakemol]] ===&lt;br /&gt;
Program for visualising atomic and molecular systems.&lt;br /&gt;
* [https://www.nongnu.org/xmakemol/ XMakemol]&lt;br /&gt;
&lt;br /&gt;
=== [[xmgrace]] ===&lt;br /&gt;
2D plotting tool.&lt;br /&gt;
* [http://exciting-code.org/xmgrace-quickstart Xmgrace]&lt;br /&gt;
&lt;br /&gt;
== Theoretical/Mathematical Notes ==&lt;br /&gt;
&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[Ellipsoid.model]]&lt;br /&gt;
* [[Ellipsoid.model.xyz]]&lt;br /&gt;
* [[Ellipsoid.xyz]]&lt;br /&gt;
* [[Gencoords]]&lt;br /&gt;
* [[GenCoords]]&lt;br /&gt;
* [[GenCoords Models]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
=== Angle-axis notes ===&lt;br /&gt;
&lt;br /&gt;
* [[Angle-axis framework]]&lt;br /&gt;
* [[Computing normal modes in angle-axis]]&lt;br /&gt;
&lt;br /&gt;
=== Rigid Bodies ===&lt;br /&gt;
&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[Rigid body input files for proteins using genrigid-input.py]]&lt;br /&gt;
* [[Local Rigid Body Framework]]&lt;br /&gt;
* [[Local rigid body in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
== Useful Scripts ==&lt;br /&gt;
* [[perm-prmtop.py]]: A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[colourdiscon.py]]: A python program for sorting input for disconnectivity graphs&lt;br /&gt;
* [[pdb_to_movie.py]]: A python program to create an AMH movieseg file from a PDB file&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
* [[recommended bash aliases]]&lt;br /&gt;
* [[David&#039;s .inputrc file]]&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[GenCoords]]: A fortran program to generate coarse grain building blocks and initial coords using a set of geometric models.&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
See also the SCRIPTS/ directory in the SVN repository!&lt;br /&gt;
* [[Computing CHARMM FF energy using GMIN, MMTSB and CHARMM]] - Computes the Charmm FF energy of the same structure. Useful for cross-validating force field settings in GMIN data file, CHARMM input file and MMTSB options.&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
* [[Parameter-scanning script]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
* [http://www.ch.cam.ac.uk/computing/theory-compute-clusters The Theory Compute Clusters support page]. Contains useful cluster specific information, including example job submission scripts.&lt;br /&gt;
&lt;br /&gt;
* A useful website which contains AMBER (GAFF) and OPLS parameters for small molecules. http://virtualchemistry.org/gmld.php . This could save us lot of time while trying to derive parameters on our own. If you are lucky, the molecule of your interest may already be there in the existing database. The topology files are in GROMACS format but possibly can be converted into AMBER parameter files. (script anyone ?)&lt;br /&gt;
&lt;br /&gt;
* The moving-domain QM/MM method developed by Victor Batista&#039;s group http://gascon.chem.uconn.edu/software. This approach can be used in the derivation of charges for large proteins and nucleic acids, where a full-fledged ONIOM based calculation is comptutationally prohibitive. It has been applied to systems like the Gramicidin ion channel and Photosystem II.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
* [[Animated GIF on the group website]]&lt;br /&gt;
* [[Backup strategy]]&lt;br /&gt;
* [[Chain crossing]]&lt;br /&gt;
* [[Computer Office services]]&lt;br /&gt;
* [[Computing values only once]]&lt;br /&gt;
* [[Decoding heat capacity curves]]&lt;br /&gt;
* [[Differences from Clust]]&lt;br /&gt;
* [[Fixing thunderbird links]]&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Intel Trace Analyzer and Collector]]&lt;br /&gt;
* [[LDAP plans]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Mek-quake Queueing system]]&lt;br /&gt;
* [[Mek-quake initial setup notes]]&lt;br /&gt;
* [[New mek-quake]]&lt;br /&gt;
* [[Maui compilation]]&lt;br /&gt;
* [[Torque and Maui]]&lt;br /&gt;
* [[Mercurial]]&lt;br /&gt;
* [[Migrating to the new SVN server]]&lt;br /&gt;
* [[NECI Parallelization]]&lt;br /&gt;
* [[Optimization tricks]]&lt;br /&gt;
* [[Other IT stuff]]&lt;br /&gt;
* [[Porfuncs Documentation]]&lt;br /&gt;
* [[Progress]]&lt;br /&gt;
* [[Proposed changes to backup and archiving]]&lt;br /&gt;
* [[Rama upgrade]]&lt;br /&gt;
* [[Remastering Knoppix]]&lt;br /&gt;
* [[See unpacked nodes]]&lt;br /&gt;
* [[Tardis scheduling policy]]&lt;br /&gt;
* [[Zippo Sicortex machine]]&lt;br /&gt;
* [[Beginner&#039;s guide to working in Wales group]]&lt;br /&gt;
&lt;br /&gt;
== Useful linux stuff ==&lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
* [[basic linux commands everyone should know!]]&lt;br /&gt;
* [[piping and redirecting output from one command or file to another]] - how to save yourself hours!&lt;br /&gt;
* [[bash loop tricks]]&lt;br /&gt;
* [[bash history searching]]&lt;br /&gt;
&lt;br /&gt;
===Remote access===&lt;br /&gt;
* [[setting up aliases to quickly log you in to a different machine]]&lt;br /&gt;
* [[transfering files to and from your workstation]] -using &#039;&#039;scp&#039;&#039; or &#039;&#039;rsync&#039;&#039;&lt;br /&gt;
* [[using &#039;ssh-keygen&#039; to automatically log you into clusters from your workstation]] (no more typing in your password!)&lt;br /&gt;
* [[mounting sharedscratch locally]]&lt;br /&gt;
&lt;br /&gt;
===Find and replace===&lt;br /&gt;
* [[short &#039;sed&#039; examples]]&lt;br /&gt;
* [[quick guide to awk]]&lt;br /&gt;
* [[short &#039;awk&#039; examples]]&lt;br /&gt;
&lt;br /&gt;
===File manipulation===&lt;br /&gt;
* [[sorting a file by multiple columns]]&lt;br /&gt;
* [[using tar and gzip to compress/uncompress files | using tar and bzip2 to compress/uncompress files]]&lt;br /&gt;
* [[conversion between different data file formats]] -&#039;almost one-line&#039; scripts&lt;br /&gt;
* [[conversion between different image file formats]] - the &#039;&#039;convert&#039;&#039; command&lt;br /&gt;
* [[removing an excessive number of files from a directory - when &#039;rm&#039; just isn&#039;t enough]]&lt;br /&gt;
&lt;br /&gt;
===Cluster queues===&lt;br /&gt;
* [[submitting jobs, interactively or to a cluster queue system]]&lt;br /&gt;
* [[identifying job on a node]] - if you need to kill only one of few running jobs&lt;br /&gt;
* [[getting started with SLURM]]&lt;br /&gt;
* [[a guide to using SLURM to run PATHSAMPLE]]&lt;br /&gt;
* [[a guide to using SLURM to run GPU jobs on pat]]&lt;br /&gt;
* [[managing interactive jobs on cluster]]&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous/uncategorised===&lt;br /&gt;
* [[installing packages on your managed CUC3 workstation]]&lt;br /&gt;
* [[running programs in the background]] - so you can use your shell for other things at the same time&lt;br /&gt;
* [[finding bugs in latex documents that will not compile]]&lt;br /&gt;
* [[printing files from the command line using &#039;lpr&#039;]]&lt;br /&gt;
* [[uploading non image files to the wiki]]&lt;br /&gt;
&lt;br /&gt;
== Compiler Flags ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiler Flags]]&lt;br /&gt;
* [[Blacklisting Compilers]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
== SuSE ==&lt;br /&gt;
&lt;br /&gt;
* [[Upgrading destiny]]&lt;br /&gt;
* [[Upgrading sword]]&lt;br /&gt;
* [[SuSE 10.1 workstation image]]&lt;br /&gt;
* [[SuSE 10.2 workstation image]]&lt;br /&gt;
* [[SuSE 10.3 workstation image]]&lt;br /&gt;
* [[SuSE 11.1]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:adk44|adk44]] 17.00, 9 May 2019 (BST)&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=AMBER&amp;diff=1768</id>
		<title>AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=AMBER&amp;diff=1768"/>
		<updated>2021-10-07T16:00:06Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Tutorials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;[[Notes on AMBER 12 interface]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Amberpic.jpg|thumb|&amp;quot;The bugs have magically disappeared!&amp;quot;|200px|right]]&lt;br /&gt;
[http://amber.scripps.edu/ &amp;quot;AMBER&amp;quot;] (Assisted Model Building with Energy Refinement) refers to two things: a set of molecular mechanical force fields for the simulation of biomolecules (which are in the public domain, and are used in a variety of simulation programs); and a package of molecular simulation programs which includes source code and demos. We mainly use the MM forcefields interfaced with other group software i.e. [[GMIN]] or [[OPTIM]]. The included programmes such as &#039;&#039;sander&#039;&#039; and &#039;&#039;antechamber&#039;&#039; are however, extremely useful in some circumstances! The full user manual for AMBER9 can be found in pdf format [http://amber.scripps.edu/doc9/amber9.pdf here].&lt;br /&gt;
&lt;br /&gt;
As of July 2009, the SVN repository also contains AMBER Tools, the stand alone suite of programs that generate AMBER input files and allow you to analyse output. You can find a manual within the repository. Look in AMBERTOOLS/doc.&lt;br /&gt;
&lt;br /&gt;
== Tutorials ==&lt;br /&gt;
&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [http://amber.scripps.edu/tutorials/ Ross Walker&#039;s AMBER9 tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Running MD with AMBER]]&lt;br /&gt;
* [[Running MD on GPUS with pmemd_cuda]]&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1767</id>
		<title>Preparing input files for a peptide using AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_input_files_for_a_peptide_using_AMBER&amp;diff=1767"/>
		<updated>2021-10-07T15:56:31Z</updated>

		<summary type="html">&lt;p&gt;Nn320: Created page with &amp;quot;How to create input files for a peptide for use with GMIN? The steps given below are when you are trying to use one of the AMBER force fields.   Step 0: Having amber on your s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to create input files for a peptide for use with GMIN?&lt;br /&gt;
The steps given below are when you are trying to use one of the AMBER force fields.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 0: Having amber on your system&lt;br /&gt;
&lt;br /&gt;
Assuming you have AMBER in your path by having something similar to this in ~/.bashrc&lt;br /&gt;
export AMBERHOME=/home/nn320/amber14&lt;br /&gt;
export PATH=$PATH:$AMBERHOME/bin&lt;br /&gt;
export PATH&lt;br /&gt;
&lt;br /&gt;
Then run, `source ~/.bashrc` in the command line&lt;br /&gt;
Now you can run tleap from anywhere on your system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Make topology and coordinates file using tleap in AMBER.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run, `tleap -f leap.in`&lt;br /&gt;
leap.in file specifies force field, sequence, solvent model&lt;br /&gt;
My leap.in file has the following lines.&lt;br /&gt;
&lt;br /&gt;
source leaprc.ff99SBildn&lt;br /&gt;
mol = sequence {ACE TYR TYR GLY GLY TYR TYR NME}&lt;br /&gt;
set default PBradii mbondi3&lt;br /&gt;
saveamberparm mol old_coords.prmtop coords.inpcrd &lt;br /&gt;
savepdb mol mol.pdb                                                            &lt;br /&gt;
quit           &lt;br /&gt;
&lt;br /&gt;
This gives a pdb, prmtop and incprd files as output&lt;br /&gt;
Note that pdb when visualised in vmd may have strange bonds.&lt;br /&gt;
This just means you need to minimise the structure to get proper geometry later.&lt;br /&gt;
Minimise the structure using sander in AMBER after&lt;br /&gt;
 you have checked that library files used for creating coords.prmtop file are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2: Check the amber library files&lt;br /&gt;
&lt;br /&gt;
After running tleap, make a note of all the library files that get loaded.&lt;br /&gt;
For example, in the above case, &lt;br /&gt;
all_nucleic94, all_amino94ildn, all_aminoct94ildn, all_aminont94ildn, ions94, solvents.lib&lt;br /&gt;
Check these library files with the ones given in softwarewales/AMBERTOOLS/dat/leap/lib&lt;br /&gt;
The amber14/dat/leap/lib library files for ff99SBildn are correct&lt;br /&gt;
This checking is necessary, &lt;br /&gt;
since the lib files for ff99SB i.e., all_aminoct94.lib have different charges for symmetrical atoms.&lt;br /&gt;
Basically, they differ in the following lines,&lt;br /&gt;
!entry.NHE.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
1 0 0 0 0 0&lt;br /&gt;
softwareWales ambertools&amp;gt; 1 1 0 0 0 0 &lt;br /&gt;
!entry.NME.unit.residueconnect table  int c1x  int c2x  int c3x  int c4x  int c5x  int c6x&lt;br /&gt;
1 0 0 0 0 0 &lt;br /&gt;
softwareWales ambertools&amp;gt; 1 3 0 0 0 0 &lt;br /&gt;
&lt;br /&gt;
In case the library files in amber are already correct, proceed to Step 3. If not, &lt;br /&gt;
make a copy of amber lib files somewhere and replace them with the ones in softwarewales/AMBERTOOLS&lt;br /&gt;
Repeat Step 1 i.e., use tleap again and create new coords.prmtop and coords.inpcrd file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3: Minimising the structure using sander&lt;br /&gt;
&lt;br /&gt;
This is to ensure that coordinate file has a physical structure without atom overlaps.&lt;br /&gt;
For running sander, you just require, coords.prmtop, coords.inpcrd, min.in file&lt;br /&gt;
min.in file can have something like,&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1000,                                                                  &lt;br /&gt;
  maxcyc = 2000,                                                                &lt;br /&gt;
  igb=8, saltcon=0.1,                                                           &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  ntpr=100,                                                                     &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
  /  &lt;br /&gt;
&lt;br /&gt;
Then on the command line run,&lt;br /&gt;
$AMBERHOME/bin/sander -O -i min.in -o min.out -p coords.prmtop -c coords.inpcrd -r min.ncrst&lt;br /&gt;
The min.ncrst has minimised geometry. &lt;br /&gt;
To visualise it and compare it with initial geometry run the following,&lt;br /&gt;
$AMBERHOME/bin/ambpdb -p coords.prmtop -c min.ncrst &amp;gt; minncrst.pdb&lt;br /&gt;
To visualise older coords.inpcrd, just use the above command replacing coordinate file and the output file.&lt;br /&gt;
&lt;br /&gt;
Use the min.ncrst so obtained as your new coords.inpcrd file.&lt;br /&gt;
So, now you have obtained your coords.prmtop and coords.inpcrd file using AMBER.&lt;br /&gt;
&lt;br /&gt;
Step 4: Symmetrise the topology file so obtained&lt;br /&gt;
&lt;br /&gt;
Symmetrisation scripts are given in ~/softwarewales/SCRIPTS/AMBER/symmetrise_prmtop/&lt;br /&gt;
For the above force field use perm-prmtop.py script. It is written in python2. &lt;br /&gt;
Its usage is&lt;br /&gt;
perm-prmtop.py old.prmtop symmetrised.prmtop&lt;br /&gt;
&lt;br /&gt;
You do want to check whether your topology file is symmetrised properly.&lt;br /&gt;
Basically, symmetrisation means that when you permute the permutable atoms in your system&lt;br /&gt;
the energy should not change&lt;br /&gt;
The best way to check correct symmetrisation is by first creating perm.allow file &lt;br /&gt;
and then generating several coords.inpcrd files&lt;br /&gt;
and calculating single point energy of each of them to get the same energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5: Creating a perm.allow file&lt;br /&gt;
&lt;br /&gt;
Run `perm-pdb.py name.pdb AMBER`&lt;br /&gt;
The perm-pdb.py is a python2 script found in ~/softwarewales/SCRIPTS/make_perm.allow/&lt;br /&gt;
&lt;br /&gt;
To check the perm.allow file simply read the documentation of PERMDIST &lt;br /&gt;
and check the atom numbers in perm.allow with the atom numbers using vmd or pymol&lt;br /&gt;
and check yourself if those atom numbers correspond to permutable atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6: Check symmetrisation&lt;br /&gt;
&lt;br /&gt;
Step 6a: Creation of several coords.inpcrd files with permuted atoms&lt;br /&gt;
Step 6b: Run GMIN or A12GMIN in this case to check if their energies are the same.&lt;br /&gt;
&lt;br /&gt;
Of course, you would want this process to be automated. The script I used can be found &lt;br /&gt;
on sinister in /home/nn320/bin/symm_check.sh&lt;br /&gt;
&lt;br /&gt;
You can probably stop here, you have coords.prmtop and coords.inpcrd file for your peptide using ff99SBildn force field.&lt;br /&gt;
&lt;br /&gt;
Step 7: Creating topology file for modified force field ff99IDPs&lt;br /&gt;
&lt;br /&gt;
Since we want to use a modified force field ff99IDPs (https://github.com/chaohao2010/ADD-CMAP)&lt;br /&gt;
Follow the steps given on the website&lt;br /&gt;
You may have to make the python files executable&lt;br /&gt;
chmod 755 ADD_CMAP.py &lt;br /&gt;
Obtain another prmtop file&lt;br /&gt;
This should already be symmetrised&lt;br /&gt;
The command to use is, you will have to unload python2 and load python3 module.&lt;br /&gt;
python3 ADD-CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&lt;br /&gt;
or&lt;br /&gt;
python3 ADD_CMAP.py -p amber.prmtop -c ff99IDPs.para -o amber_CMAP.prmtop -s&lt;br /&gt;
Here, amber.prmtop represents the symmetrised prmtop and amber_CMAP.prmtop&lt;br /&gt;
is the new coords.prmtop for ff99IDPs force field.&lt;br /&gt;
These files ADD_CMAP.py and ff99IDPs.para can be found on sinister in&lt;br /&gt;
/home/nn320/ff99idps_files&lt;br /&gt;
You might like to check two things&lt;br /&gt;
a) Symmetrisation of this new topology file by repeating the step 6&lt;br /&gt;
b) Whether the A12GMIN and GMIN energy for a structure agree with each other.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 8: Creating atomgroups file&lt;br /&gt;
&lt;br /&gt;
To create atomgroups file, have a look at http://www-wales.ch.cam.ac.uk/examples/GMIN/1LE0/&lt;br /&gt;
and write it yourself&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Input files you should have for your peptide system to use with GMIN, OPTIM, PATHSAMPLE&lt;br /&gt;
&lt;br /&gt;
coords.prmtop, coords.inpcrd, atomgroups, perm.allow, min.in, data &lt;br /&gt;
min.in file can have&lt;br /&gt;
Minimization                                                                    &lt;br /&gt;
&amp;amp;cntrl                                                                          &lt;br /&gt;
  imin = 1,                                                                     &lt;br /&gt;
  ncyc = 1,                                                                     &lt;br /&gt;
  maxcyc = 1,                                                                   &lt;br /&gt;
  igb = 8, saltcon=0.1,                                                         &lt;br /&gt;
  ntb    = 0,                                                                   &lt;br /&gt;
  cut    = 999.0,                                                               &lt;br /&gt;
  rgbmax = 25.0                                                                 &lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
Example data file can be&lt;br /&gt;
TEMPERATURE 0.5962                                                              &lt;br /&gt;
SLOPPYCONV 1.0D-4                                                               &lt;br /&gt;
TIGHTCONV 1.0D-7                                                                &lt;br /&gt;
MAXERISE 1.0D-4                                                                 &lt;br /&gt;
TRACKDATA                                                                       &lt;br /&gt;
ACCEPTRATIO 0.2                                                                 &lt;br /&gt;
DUMPINT 100                                                                     &lt;br /&gt;
UPDATES 1500                                                                    &lt;br /&gt;
MAXIT 3000 5000                                                                 &lt;br /&gt;
MAXBFGS 0.2D0                                                                   &lt;br /&gt;
STEPS 1 1.0                                                                     &lt;br /&gt;
STEP 0.0 0.0                                                                 &lt;br /&gt;
DEBUG                                                                           &lt;br /&gt;
RADIUS 1000.0                                                                   &lt;br /&gt;
ENERGY_DECOMP                                                                   &lt;br /&gt;
AMBER12&lt;br /&gt;
&lt;br /&gt;
Miscellaneous&lt;br /&gt;
&lt;br /&gt;
PLEASE PLEASE NOTE THAT SCEE values are 1.2 and SCNB values are 2.0 for AMBER. Check AMBER manual for more information.&lt;br /&gt;
The topology files created using above method have 0.0 for improper torsions. The program should not try to invert these zeros.&lt;br /&gt;
There was a bug in AMBER12 which has been corrected in AMBER20. So do not worry about SCEE and SCNB now.&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=AMBER&amp;diff=1766</id>
		<title>AMBER</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=AMBER&amp;diff=1766"/>
		<updated>2021-10-07T15:51:46Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Tutorials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;[[Notes on AMBER 12 interface]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Amberpic.jpg|thumb|&amp;quot;The bugs have magically disappeared!&amp;quot;|200px|right]]&lt;br /&gt;
[http://amber.scripps.edu/ &amp;quot;AMBER&amp;quot;] (Assisted Model Building with Energy Refinement) refers to two things: a set of molecular mechanical force fields for the simulation of biomolecules (which are in the public domain, and are used in a variety of simulation programs); and a package of molecular simulation programs which includes source code and demos. We mainly use the MM forcefields interfaced with other group software i.e. [[GMIN]] or [[OPTIM]]. The included programmes such as &#039;&#039;sander&#039;&#039; and &#039;&#039;antechamber&#039;&#039; are however, extremely useful in some circumstances! The full user manual for AMBER9 can be found in pdf format [http://amber.scripps.edu/doc9/amber9.pdf here].&lt;br /&gt;
&lt;br /&gt;
As of July 2009, the SVN repository also contains AMBER Tools, the stand alone suite of programs that generate AMBER input files and allow you to analyse output. You can find a manual within the repository. Look in AMBERTOOLS/doc.&lt;br /&gt;
&lt;br /&gt;
== Tutorials ==&lt;br /&gt;
&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [http://amber.scripps.edu/tutorials/ Ross Walker&#039;s AMBER9 tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Preparing input files for a peptide using AMBER]] - detailed guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Running MD with AMBER]]&lt;br /&gt;
* [[Running MD on GPUS with pmemd_cuda]]&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Symmetrising_AMBER_topology_files&amp;diff=1764</id>
		<title>Symmetrising AMBER topology files</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Symmetrising_AMBER_topology_files&amp;diff=1764"/>
		<updated>2021-09-17T13:23:34Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Symmetrising a Simple Protein System ==&lt;br /&gt;
&lt;br /&gt;
=== The Basics ===&lt;br /&gt;
&lt;br /&gt;
When LEap is used to generate AMBER topology files (&#039;&#039;&#039;coords.prmtop&#039;&#039;&#039;) it doesn&#039;t do a very good job of ensuring that improper dihedral angle energies are invariant with respect to permutations.&lt;br /&gt;
&lt;br /&gt;
These energies can be made invariant by rearranging the permutable atoms within the relevant dihedral term in the &#039;&#039;&#039;coords.prmtop&#039;&#039;&#039; file. For example, the residue aspartate has two permutable oxygen atoms (described by OD1 and OD2 respectively, with the relevant dihedral angle also including two carbon atoms, CB and CG). The dihedral describing these atoms is typically represented in &#039;&#039;&#039;coords.prmtop&#039;&#039;&#039; as CB-OD1-CG-OD2. In order to symmetrise these oxygen atoms, this must be rearranged to OD1-CB-CG-OD2 (i.e. the first permutable atom must be listed first in the dihedral, and the second permutable atom listed fourth). The reasons for this are somewhat esoteric but the paper [https://onlinelibrary.wiley.com/doi/full/10.1002/jcc.21425 here] addresses it rather well.&lt;br /&gt;
&lt;br /&gt;
The %FLAG DIHEDRALS_INC_HYDROGEN and %FLAG DIHEDRALS_WITHOUT_HYDROGEN sections in &#039;&#039;&#039;coords.prmtop&#039;&#039;&#039; list the groups of dihedrals present in your system. Strangely, these are listed not in terms of atomic indices but instead in terms of the atomic index multiplied by 3, with 1 then subtracted. You can probably imagine that trying to find all of the relevant permutable atoms to swap in the &#039;&#039;&#039;coords.prmtop&#039;&#039;&#039; file (which can be quite a lot in a protein system!) can become very tedious indeed, if done manually.&lt;br /&gt;
&lt;br /&gt;
Fortunately, scripts have been written (&#039;&#039;&#039;perm-prmtop.*.py&#039;&#039;&#039;, which can be found in ~/svn/SCRIPTS/AMBER/symmetrise_prmtop) that can identify these atoms within the dihedral terms that need to be swapped, and then does it for you.&lt;br /&gt;
&lt;br /&gt;
Note that the 1-4 non-bonded interactions are not calculated for improper torsions to avoid double counting. The double counting can be understood by considering a torsion 1-2-3-4 as a normal one and 1-3-2-4 as improper torsion. Improper torsions are designed to keep atoms in a plane. In the AMBER topology file, the dihedrals are defined such that the actual atom index A =N/3 +1 where N is the absolute value of coordinate array index (http://ambermd.org/prmtop.pdf).&lt;br /&gt;
&lt;br /&gt;
=== Ensuring the termini are correct ===&lt;br /&gt;
&lt;br /&gt;
The python scripts mentioned above only work if the termini of your protein system are properly considered. This is because the improper dihedrals for terminal residues are different.&lt;br /&gt;
&lt;br /&gt;
It is possible to alter the &#039;&#039;&#039;coords.prmtop&#039;&#039;&#039; file manually to account for these termini. First, find the section of your file formatted as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%FLAG RESIDUE_LABEL     &lt;br /&gt;
%FORMAT(20a4)&lt;br /&gt;
ALA GLU PHE&lt;br /&gt;
%FLAG RESIDUE_POINTER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The chances are that your protein system will be much bigger and contain many more residues but the principles are the same. Each residue technically is assigned four spaces, although one of these is usually blank. This is no longer the case when the terminal residues are altered to reflect whether they are N-terminal or C-terminal. In this case, ALA is transformed to NALA and PHE to CPHE. This gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%FLAG RESIDUE_LABEL     &lt;br /&gt;
%FORMAT(20a4)&lt;br /&gt;
NALAGLU CPHE&lt;br /&gt;
%FLAG RESIDUE_POINTER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is a script, &#039;&#039;&#039;A9prmtoptermini.sh&#039;&#039;&#039; (which can also be found in ~/svn/SCRIPTS/AMBER/symmetrise_prmtop), which does this for you. A typical command would be something like this:&lt;br /&gt;
&lt;br /&gt;
./A9prmtoptermini.sh initial.prmtop final.prmtop initial.pdb ff02&lt;br /&gt;
&lt;br /&gt;
Please note that to run this script, you need a .pdb file as well as a .prmtop file. ff02 specifies which [[AMBER]] forcefield to use (and therefore which of the perm-prmtop.*.py files to select).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Symmetrising a Protein System with Cofactors ==&lt;br /&gt;
&lt;br /&gt;
=== Including these cofactors in the first place ===&lt;br /&gt;
&lt;br /&gt;
The method above works if your system comprises only protein residues. However, you may be interested in how a certain molecule or group of molecules interacts with the protein. The addition of these cofactors presents many challenges. If your cofactor is very unusual, you may even need to generate parameters yourself. In which case, it may be useful to refer to some of the [[AMBER]] tutorials, such as this one [http://ambermd.org/tutorials/advanced/tutorial1/index.htm here]. Fortunately, many of the most-commonly used cofactors have already been parameterised, particularly by the [http://research.bmh.manchester.ac.uk/bryce/amber Bryce Group] in Manchester.&lt;br /&gt;
&lt;br /&gt;
There is already a page, [[Setting up]], which deals quite comprehensively in how to generate [[AMBER]] input files using LEap. When you want to include cofactors in your system, all you have to do is ensure that the relevant .frcmod and .prepin (or .lib) files are included when you use tleap or xleap. It&#039;s also useful to have a .pdb file from another database or source (such as from an X-ray crystallography structure on the [https://www.rcsb.org/ Protein Data Bank]), although this is not strictly necessary. These files may not be formatted in an appropriate way (again, for details, see [[Setting up]]).&lt;br /&gt;
&lt;br /&gt;
Below is an example. After launching tleap, and ensuring all of the relevant files were in my PATH or working directory, I generated a set of [[AMBER]] input files for a protein called HemS alongside haem and NADH cofactors &#039;&#039;via&#039;&#039; the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source leaprc.ff99SB&lt;br /&gt;
loadamberparams hem.frcmod&lt;br /&gt;
loadamberprep hem.prepin&lt;br /&gt;
loadoff nadh.lib&lt;br /&gt;
loadamberparams nadh.frcmod&lt;br /&gt;
mol=loadpdb  1.pdb&lt;br /&gt;
savepdb mol  start.pdb&lt;br /&gt;
saveamberparm mol coords.prmtop.old coords.inpcrd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Symmetrising the cofactors as well as the residues ===&lt;br /&gt;
&lt;br /&gt;
Of course, this creates [[AMBER]] input files where the permutable atoms aren&#039;t necessarily properly symmetrised. Depending upon what cofactors you&#039;re including, these could contain permutable atoms as well. Therefore, we must ensure that when finding the correct symmetry, we include the relevant cofactor libraries too or else only the atoms in the standard residues will be treated.&lt;br /&gt;
&lt;br /&gt;
A four-point plan to deal with protein systems containing cofactors that need symmetrising is as follows:&lt;br /&gt;
&lt;br /&gt;
1.&lt;br /&gt;
* First, make sure the cofactors in you system are already listed in perm-prmtop.*.py.&lt;br /&gt;
* To do this: grep -r &#039;group8 =&#039; .&lt;br /&gt;
* This should give a list of all of the cofactors contained in the various perm-prmtop files (perm-prmtop.ff02.py, perm-prmtop.ff03.py and perm-prmtop.ff14.py should have identical lists).&lt;br /&gt;
* If your cofactor is present, proceed to step 2.&lt;br /&gt;
* If it&#039;s not present, you will have to insert the relevant library for your cofactor, and list which atoms need to be symmetrised. Please do this for perm-prmtop.ff02.py, perm-prmtop.ff03.py and perm-prmtop.ff14.py in order to keep them consistent (this should be a simple copy and paste job). Also, it would be helpful once you&#039;ve done this if you add your new cofactor to the group8 list.&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
* Ensure that your relevant cofactor libraries are in your working directory, e.g. if the cofactors in your system are haem (HEM) and NADH (NAD), make sure that hem.lib and nadh.lib are present.&lt;br /&gt;
&lt;br /&gt;
3.&lt;br /&gt;
* Make a note of the first atom in each of your cofactors. This corresponds to the third column in your pdb file. Using HEM and NAD again as examples, the first atoms for each are FE and P1 respectively.&lt;br /&gt;
&lt;br /&gt;
4.&lt;br /&gt;
* Now we have all of the information we need to launch our symmetrisation. Just add on the atoms you noted in step 3 as extra arguments, e.g.&lt;br /&gt;
** ./A9prmtoptermini.sh initial.prmtop final.prmtop initial.pdb ff02 FE P1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And behold, your system is properly symmetrised. The natural order of things, alongside Rangers beating Celtic in the Old Firm or Scotland thumping England in the Rugby, is returned to the universe. You are now ready to launch your [[GMIN]] or [[OPTIM]] calculations.&lt;br /&gt;
&lt;br /&gt;
--adk44 17.00, 9 May 2019 (BST)&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Compiling_Wales_Group_codes_using_cmake&amp;diff=1761</id>
		<title>Compiling Wales Group codes using cmake</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Compiling_Wales_Group_codes_using_cmake&amp;diff=1761"/>
		<updated>2021-07-22T14:13:55Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.cmake.org/ CMake] (Cross-platform Make) provides a simple, platform independent way for us to compile and test the group codebase. Dependencies are handled automatically, compilation can proceed in parallel to avoid long waits while testing changes and builds are done entirely outside of the source directory. It also enables us to use the [[Jenkins CI]] &#039;build bot&#039; system to automatically compile and test the code on a nightly basis - helping us catch troublesome commits before they affect other users. &lt;br /&gt;
&lt;br /&gt;
Although everything below refers to compiling [[GMIN]] with the Intel &#039;&#039;ifort&#039;&#039; compiler and AMBER9 - the exact same procedure works for [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
&lt;br /&gt;
Note that not every option for our codes is expected to actually compile with every compiler, for example, anything using CHARMM35/36 will not compile with &#039;&#039;nagfor&#039;&#039; or &#039;&#039;gfortran&#039;&#039;. This is nothing to do with our code - it&#039;s a CHARMM issue. You can get an idea for what should work by looking at the automated [[Jenkins CI]] builds.&lt;br /&gt;
&lt;br /&gt;
==Preparing to compile==&lt;br /&gt;
Before you get started, you need to ensure that the machine you are planning to compile on has cmake 2.8 or higher installed. You can check the current version like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The clusters have a module for cmake 3.0, which you can load using the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cmake/3.0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You also need to create a directory to build the code in. We suggest that you create a directory for the compiler you are using within the program directory, under a subdirectory called &#039;builds&#039; - for example for compiling GMIN with ifort, you would make a directory here:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort&lt;br /&gt;
cd ~/softwarewales/GMIN/builds/ifort&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can call these directories whatever you like - but make sure it is clear to you what they contain! You might also want to check which version of the compiler you have loaded. This is important as the different clusters and workstations may have different default versions loaded, some of which might not work properly. You can check the compiler version currently loaded using the same &#039;--version&#039; flag we used for &#039;&#039;cmake&#039;&#039; above:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ifort --version&lt;br /&gt;
ifort (IFORT) 12.1.3 20120212&lt;br /&gt;
Copyright (C) 1985-2012 Intel Corporation.  All rights reserved.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load a different compiler, you can use the &#039;&#039;module load&#039;&#039; or &#039;&#039;module swap&#039;&#039; commands. A list of all available modules can be accessed using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module av&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you are having problems compiling, one of the first things to check is whether it works with a different version of the compiler!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: When compiling GMIN, if you are getting the error that there is no implicit type for ERFC in ewald.f90, try using a newer version of your compiler. This should be the built-in complementary error function.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Compiling using the ccmake GUI interface to set options==&lt;br /&gt;
[[Image:Ccmake.png|thumb|ccmake set up to compile A9GMIN|200px|right]]&lt;br /&gt;
&lt;br /&gt;
One advantage using cmake has over make is that we can use the simple ccmake GUI. This interface lets us set options like compiling with AMBER9, or CHARMM35, toggle between &#039;Release&#039; and &#039;Debug&#039; builds (see below) - and examine and alter the flags being uses for the compilation if we wish. Before we can run ccmake, we need to specify the compiler and run cmake in our build directory (e.g. softwarewales/GMIN/builds/ifort). We specify the &#039;&#039;&#039;F&#039;&#039;&#039;ortran &#039;&#039;&#039;C&#039;&#039;&#039;ompiler by setting the &#039;&#039;&#039;$FC&#039;&#039;&#039; environment variable (in this case the Intel Fortran compiler, ifort), and then run &#039;&#039;cmake&#039;&#039; (on the command line), passing it the relative location of the [[GMIN]] source directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake ../../source&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you run &#039;&#039;ls&#039;&#039;, you will see some cmake files have been generated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ls&lt;br /&gt;
CMakeCache.txt  CMakeFiles  cmake_install.cmake  Makefile  modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now run &#039;&#039;ccmake&#039;&#039; to open the GUI:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ccmake .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To navigate between options, use the arrow keys. Options can be toggled by pressing Return. To compile [[GMIN]] with AMBER9 (A9GMIN), we need to toggle the &#039;&#039;WITH_AMBER&#039;&#039; option &#039;&#039;ON&#039;&#039;. Once you have done this, you need to configure and generate appropriate cmake info. This is done by pressing &#039;c&#039; to configure, &#039;e&#039; to exit and then &#039;g&#039; to generate.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: for some builds (CHARMM with DFTB and CUDAGMIN), you might need to configure, exit and generate twice to set all necessary options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can now compile A9GMIN in parallel as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;-j8&#039; flag here tells make to use up to 8 &#039;threads&#039; when building. For optimal performance, you should keep this slightly greater than the number of cores (CPUs) the node you are working on has. If all goes well, you should now have an A9GMIN binary in your build directory - congratulations! &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Linking Fortran executable A9GMIN&lt;br /&gt;
[100%] Built target A9GMIN&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------------- 15:23:45&lt;br /&gt;
&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ls&lt;br /&gt;
A9GMIN          cmake_install.cmake   libcudadummylib.a  libmylapack.a  NAB&lt;br /&gt;
AMBER           display_version.f90   libdummylib.a      Makefile       nab_binaries_built&lt;br /&gt;
CMakeCache.txt  GMIN                  libgminlib.a       modules        porfuncs.f90&lt;br /&gt;
CMakeFiles      libamber12dummylib.a  libmyblas.a        n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Plain [[GMIN]] is also built at the same time should you need it. You can move this into your ~/bin directory if you like, or anywhere else in your &#039;&#039;$PATH&#039;&#039; to make running it simple.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: If you want to use OPTIM with the new C++ implementation of the NEB routine, you will need to obtain the source code for that separately. See [https://wikis.ch.cam.ac.uk/wales/wiki/index.php/OPTIM here] for instructions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Compiling by setting options on the command line==&lt;br /&gt;
If you know the options you&#039;d like to set already (you can see them all in ccmake), you can save some time by passing them directly to &#039;&#039;cmake&#039;&#039; on the command line, bypassing the need for &#039;&#039;ccmake&#039;&#039;. For example, to compile A9GMIN (GMIN with the AMBER9 interface) using the Intel ifort compiler, you would run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;../../source&#039; is the relative location of the GMIN source directory. You can find some more examples of compiling from the command line below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: Sometimes you may get error&#039;&#039;&#039; (for example, Fatal Error: Can&#039;t open module file &#039;someModule.mod&#039; for reading at (1): No such file or directory) when following this procedure. In that case there are three things you could try: make sure you are building in a new directory, if that does not help run `make VERBOSE=1` instead of `make -j8` or simply switch to using ccmake.&lt;br /&gt;
&lt;br /&gt;
==Compiling with MPI==&lt;br /&gt;
To compile with MPI support add the following flags when running cmake on the command line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=mpif90 CC=mpicc cmake ../source -DCOMPILER_SWITCH=pgi -DWITH_MPI=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here -DCOMPILER_SWITCH=pgi assumes you&#039;re using the Portland &#039;&#039;pgi&#039;&#039; compiler. Make sure you have the correct modules loaded (in this case &#039;&#039;pgi&#039;&#039; and &#039;&#039;mpi-pgi&#039;&#039;), and that the particular mpi you want (in this case &#039;&#039;mpi-pgi&#039;&#039;) is listed before any other mpi&#039;s loaded (so that it has the highest priority). The modules can be loaded by typing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load pgi/64/&lt;br /&gt;
module load mpi/openmpi/pgi/64/1.6.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and you can check which modules are loaded and in which order/priority by the &#039;&#039;module list&#039;&#039; command. You may need to &#039;&#039;module unload &amp;lt;name&amp;gt;&#039;&#039; any other mpi&#039;s that are higher up in the list than the one you want. You can of course set the COMPILER_SWITCH and WITH_MPI flags in &#039;&#039;ccmake&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Note: It has been observed that pgi/64/15.1 leads to compilation errors, and for now, it is best to use pgi/64/14.9&lt;br /&gt;
&lt;br /&gt;
==Advanced mode - changing compiler flags with ccmake==&lt;br /&gt;
[[Image:Ccmakeadvanced.png|thumb|ccmake advanced mode|200px|right]]&lt;br /&gt;
&lt;br /&gt;
Although initially the &#039;&#039;ccmake&#039;&#039; GUI looks very simple, there is a lot going on under the hood. By pressing &#039;t&#039; you can enter &#039;Advanced mode&#039; which will show you all of the hidden options, for example the compiler flags that are being passed to &#039;&#039;make&#039;&#039; when you compile the code. You can also make changes to the flags here, for example if you would like to add &#039;-p&#039; to do  profiling. &lt;br /&gt;
&lt;br /&gt;
As with changing the build type, you simply select the field you&#039;d like to change using the arrow keys, press Return, make your changes and press Return again to save them. When you subsequently configure and generate as above, those altered flag will be used for the subsequent compilation.&lt;br /&gt;
&lt;br /&gt;
Note that these changes only apply in the build directory in which you make them.&lt;br /&gt;
&lt;br /&gt;
==Debugging runtime problems using gdb or valgrind==&lt;br /&gt;
If you are getting a segmentation fault, crash or other unexpected behaviour, you might want to run your job through a debugger like [http://www.gnu.org/software/gdb/ gdb] or [http://valgrind.org/ valgrind]. In order to maximise your chances of getting useful output, you should build a &#039;Debug&#039; version of the program you are having trouble. To do this, you can either change the &#039;&#039;CMAKE_BUILD_TYPE&#039;&#039; in &#039;&#039;ccmake&#039;&#039; to &#039;Debug&#039; (press Return, change &#039;Release&#039; to &#039;Debug&#039; and press Return again), or on the command line like so for GMIN with AMBER 9 using the Intel ifort compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_AMBER=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then run the binary &#039;&#039;through&#039;&#039; gdb or valgrind as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gdb A9GMIN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
valgrind A9GMIN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I won&#039;t cover debugging with these tools here as it&#039;s a science in itself! Do some Googling and ask for help as needed :)&lt;br /&gt;
&lt;br /&gt;
==Debugging compilation problems==&lt;br /&gt;
There are many ways to try and track down why your code is not compiling. Before you start changing compilers, building a &#039;Debug&#039; version or changing machines, you might want to try running make again with the &#039;&#039;VERBOSE&#039;&#039; option enabled. This will dump a lot of potentially useful output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VERBOSE=1 make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One possible gotcha: all .f and .f90 files in the relevant source directories will be compiled and added to a library. This is quite different from the old Makefile way of doing things, where source files were explicitly specified for compilation (via their corresponding .o file). So, if you are testing something by for instance copying code.f90 to code.myhack.f90 and code.orig.f90, then slightly editing a line or two of code.myhack.f90 and copying it back to code.f90 for use, this will probably cause linking problems due to multiply-defined subroutines (from all three files). The solution, if you must have alternative versions of the same file hanging round, is to differentiate the filenames by a suffix AFTER the .f[90] .&lt;br /&gt;
 &lt;br /&gt;
Another occasional issue is the unexplained compiler bug - a problem with the version of the compiler you happen to be using. You can can an idea for which compiler versions we expect to work by checking the Jenkins build-bot output, as described in the &#039;Seeing console output&#039; section of the [[Jenkins CI]] page. If you are using a different version of the compiler in question, consider swapping to the version Jenkins is using with &#039;module swap&#039;.&lt;br /&gt;
&lt;br /&gt;
If the error message you are getting doesn&#039;t make sense to you after some Googling, go and ask someone - we all have these problems. Things you can try first include trying a different compiler version, or an entirely different compiler e.g. pgi rather than ifort for example. You should bear in mind that as mentioned above, not all versions of each code will compile with every compiler. Make sure you&#039;re not trying to build something that isn&#039;t expected to work.&lt;br /&gt;
&lt;br /&gt;
==Extra command line build examples==&lt;br /&gt;
The below commands are absolutely not an exhaustive list, but should give you an idea of what is possible. You can use &#039;&#039;ccmake&#039;&#039; as described above to discover which variables (e.g. WITH_AMBER) can be manipulated on the command line like this. All of these examples assume your svn repository is set up in &#039;&#039;/home/CRSID/svn&#039;&#039; - make the appropriate modifications if you have it elsewhere.&lt;br /&gt;
&lt;br /&gt;
===GMIN===&lt;br /&gt;
&#039;&#039;&#039;A12GMIN&#039;&#039;&#039; (GMIN with AMBER12) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort_amber12&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER12=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C35GMIN&#039;&#039;&#039; (GMIN with CHARMM 35) using pgi:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/pgi_charmm35&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake -DWITH_CHARMM35=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CUDAGMIN&#039;&#039;&#039; (GMIN leveraging GPU minimisation via the AMBER 12 interface) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cuda/5.5&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort_cuda&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_CUDA=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will only work on machines with specific NVIDIA GPUs, for example when submitting jobs on the pat cluster. There is some additional information on the [[Using GMIN with GPUs]] page.&lt;br /&gt;
&lt;br /&gt;
===OPTIM===&lt;br /&gt;
&#039;&#039;&#039;A9OPTIM&#039;&#039;&#039; (OPTIM with AMBER9) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/ifort_amber&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER9=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C35OPTIM&#039;&#039;&#039; (OPTIM with CHARMM 35) using pgi:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/pgi_charmm35&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake -DWITH_CHARMM35=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CUDAOPTIM&#039;&#039;&#039; (OPTIM leveraging GPU via the AMBER 12 interface) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cuda/5.5&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/ifort_cuda5.5&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort CC=icc cmake -DWITH_CUDA=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will only work on machines with specific NVIDIA GPUs, for example when submitting jobs on the pat cluster. There is some additional information on the [[Using GMIN and OPTIM with GPUs]] page.&lt;br /&gt;
&lt;br /&gt;
===PATHSAMPLE===&lt;br /&gt;
There are very few options for [[PATHSAMPLE]] as we don&#039;t need to worry about interfacing with a particular potential. As a result, every binary is simply called &#039;&#039;PATHSAMPLE&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Using nagfor (the NAG fortran compiler - check you have the module loaded - very strict!):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/PATHSAMPLE/builds/nagfor&lt;br /&gt;
cd !$&lt;br /&gt;
FC=nagfor cmake ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using pgi (much more generous with coding slips/non-standard uses):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/PATHSAMPLE/builds/pgi&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuring defaults - for developers==&lt;br /&gt;
&lt;br /&gt;
Fortran compilers and their corresponding default settings are all controlled by the file $SVN/CMakeModules/FindFORTRANCOMPILER.cmake ($SVN is your svn root directory). In particular, we may wish to edit the flags used for each set of compilers and build type. These are contained in the following block:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if(NOT COMPILER_FLAGS_WERE_SET)&lt;br /&gt;
   message(&amp;quot;Setting initial values for compiler flags&amp;quot;)&lt;br /&gt;
   if(COMPILER_SWITCH MATCHES &amp;quot;pgi&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-Mextend&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3 -Munroll -Mnoframe&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-Mextend -C -g -gopt -Mbounds -Mchkfpstk -Mchkptr -Mchkstk -Mcoff -Mdwarf1 -Mdwarf2 -Melf -Mpgicoff -traceback&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-Mextend -C -g -gopt -Mbounds -Mchkfpstk -Mchkptr -Mchkstk -Mcoff -Mdwarf1 -Mdwarf2 -Mdwarf3 -Melf -Mpgicoff -traceback&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-Mfree&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;gfortran&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-ffixed-line-length-200 -ffree-line-length-0&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
#      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -fbounds-check -Wuninitialized -O -ftrapv -fimplicit-none -fno-automatic&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -fbounds-check -Wuninitialized -O -ftrapv -fno-automatic&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;${CMAKE_Fortran_FLAGS_DEBUG} -fimplicit-none&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-ffree-form&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;nag&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-132 -kind=byte -maxcontin=3000&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-mismatch_all -O4&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -mismatch_all -ieee=stop&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-C=all -mtrace=all -gline -g -mismatch_all -ieee=stop&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-free&amp;quot; CACHE TYPE STRING) # js850&amp;gt; is this ever used?&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;ifort&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-132 -heap-arrays -assume byterecl&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
# Warnings about temporary argument creation and edit descriptor widths are disabled with the final flags.&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-C -g -traceback -debug full -check all,noarg_temp_created -diag-disable 8290,8291&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-debug all -check all -implicitnone -warn unused -fp-stack-check -ftrapuv -check pointers -check bounds&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-free&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   else()&lt;br /&gt;
      message(FATAL_ERROR &amp;quot;unknown comiler switch: ${COMPILER_SWITCH}&amp;quot;)&lt;br /&gt;
   endif()&lt;br /&gt;
    SET(COMPILER_FLAGS_WERE_SET yes CACHE TYPE INTERNAL)&lt;br /&gt;
endif(NOT COMPILER_FLAGS_WERE_SET)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main if/elseif blocks correspond to compiler switches. Inside these, there are the default flags for each of our build types (release, debug and debug_slow), which are configured using ccmake. These can be edited, if we wish to change the default behaviour (e.g. a recent addition of -check all,noarg_temp_created -diag-disable 8290,8291 to disable annoying warning messages for ifort).&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Compiling_Wales_Group_codes_using_cmake&amp;diff=1760</id>
		<title>Compiling Wales Group codes using cmake</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Compiling_Wales_Group_codes_using_cmake&amp;diff=1760"/>
		<updated>2021-07-22T14:12:13Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.cmake.org/ CMake] (Cross-platform Make) provides a simple, platform independent way for us to compile and test the group codebase. Dependencies are handled automatically, compilation can proceed in parallel to avoid long waits while testing changes and builds are done entirely outside of the source directory. It also enables us to use the [[Jenkins CI]] &#039;build bot&#039; system to automatically compile and test the code on a nightly basis - helping us catch troublesome commits before they affect other users. &lt;br /&gt;
&lt;br /&gt;
Although everything below refers to compiling [[GMIN]] with the Intel &#039;&#039;ifort&#039;&#039; compiler and AMBER9 - the exact same procedure works for [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
&lt;br /&gt;
Note that not every option for our codes is expected to actually compile with every compiler, for example, anything using CHARMM35/36 will not compile with &#039;&#039;nagfor&#039;&#039; or &#039;&#039;gfortran&#039;&#039;. This is nothing to do with our code - it&#039;s a CHARMM issue. You can get an idea for what should work by looking at the automated [[Jenkins CI]] builds.&lt;br /&gt;
&lt;br /&gt;
==Preparing to compile==&lt;br /&gt;
Before you get started, you need to ensure that the machine you are planning to compile on has cmake 2.8 or higher installed. You can check the current version like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The clusters have a module for cmake 3.0, which you can load using the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cmake/3.0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You also need to create a directory to build the code in. We suggest that you create a directory for the compiler you are using within the program directory, under a subdirectory called &#039;builds&#039; - for example for compiling GMIN with ifort, you would make a directory here:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort&lt;br /&gt;
cd ~/softwarewales/GMIN/builds/ifort&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can call these directories whatever you like - but make sure it is clear to you what they contain! You might also want to check which version of the compiler you have loaded. This is important as the different clusters and workstations may have different default versions loaded, some of which might not work properly. You can check the compiler version currently loaded using the same &#039;--version&#039; flag we used for &#039;&#039;cmake&#039;&#039; above:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ifort --version&lt;br /&gt;
ifort (IFORT) 12.1.3 20120212&lt;br /&gt;
Copyright (C) 1985-2012 Intel Corporation.  All rights reserved.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load a different compiler, you can use the &#039;&#039;module load&#039;&#039; or &#039;&#039;module swap&#039;&#039; commands. A list of all available modules can be accessed using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module av&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you are having problems compiling, one of the first things to check is whether it works with a different version of the compiler!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: When compiling GMIN, if you are getting the error that there is no implicit type for ERFC in ewald.f90, try using a newer version of your compiler. This should be the built-in complementary error function.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Compiling using the ccmake GUI interface to set options==&lt;br /&gt;
[[Image:Ccmake.png|thumb|ccmake set up to compile A9GMIN|200px|right]]&lt;br /&gt;
&lt;br /&gt;
One advantage using cmake has over make is that we can use the simple ccmake GUI. This interface lets us set options like compiling with AMBER9, or CHARMM35, toggle between &#039;Release&#039; and &#039;Debug&#039; builds (see below) - and examine and alter the flags being uses for the compilation if we wish. Before we can run ccmake, we need to specify the compiler and run cmake in our build directory (e.g. softwarewales/GMIN/builds/ifort). We specify the &#039;&#039;&#039;F&#039;&#039;&#039;ortran &#039;&#039;&#039;C&#039;&#039;&#039;ompiler by setting the &#039;&#039;&#039;$FC&#039;&#039;&#039; environment variable (in this case the Intel Fortran compiler, ifort), and then run &#039;&#039;cmake&#039;&#039; (on the command line), passing it the relative location of the [[GMIN]] source directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake ../../source&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you run &#039;&#039;ls&#039;&#039;, you will see some cmake files have been generated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ls&lt;br /&gt;
CMakeCache.txt  CMakeFiles  cmake_install.cmake  Makefile  modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now run &#039;&#039;ccmake&#039;&#039; to open the GUI:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ccmake .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To navigate between options, use the arrow keys. Options can be toggled by pressing Return. To compile [[GMIN]] with AMBER9 (A9GMIN), we need to toggle the &#039;&#039;WITH_AMBER&#039;&#039; option &#039;&#039;ON&#039;&#039;. Once you have done this, you need to configure and generate appropriate cmake info. This is done by pressing &#039;c&#039; to configure, &#039;e&#039; to exit and then &#039;g&#039; to generate.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: for some builds (CHARMM with DFTB and CUDAGMIN), you might need to configure, exit and generate twice to set all necessary options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can now compile A9GMIN in parallel as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;-j8&#039; flag here tells make to use up to 8 &#039;threads&#039; when building. For optimal performance, you should keep this slightly greater than the number of cores (CPUs) the node you are working on has. If all goes well, you should now have an A9GMIN binary in your build directory - congratulations! &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Linking Fortran executable A9GMIN&lt;br /&gt;
[100%] Built target A9GMIN&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------------- 15:23:45&lt;br /&gt;
&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ls&lt;br /&gt;
A9GMIN          cmake_install.cmake   libcudadummylib.a  libmylapack.a  NAB&lt;br /&gt;
AMBER           display_version.f90   libdummylib.a      Makefile       nab_binaries_built&lt;br /&gt;
CMakeCache.txt  GMIN                  libgminlib.a       modules        porfuncs.f90&lt;br /&gt;
CMakeFiles      libamber12dummylib.a  libmyblas.a        n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Plain [[GMIN]] is also built at the same time should you need it. You can move this into your ~/bin directory if you like, or anywhere else in your &#039;&#039;$PATH&#039;&#039; to make running it simple.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: If you want to use OPTIM with the new C++ implementation of the NEB routine, you will need to obtain the source code for that separately. See [https://wikis.ch.cam.ac.uk/wales/wiki/index.php/OPTIM here] for instructions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Compiling by setting options on the command line==&lt;br /&gt;
If you know the options you&#039;d like to set already (you can see them all in ccmake), you can save some time by passing them directly to &#039;&#039;cmake&#039;&#039; on the command line, bypassing the need for &#039;&#039;ccmake&#039;&#039;. For example, to compile A9GMIN (GMIN with the AMBER9 interface) using the Intel ifort compiler, you would run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;../../source&#039; is the relative location of the GMIN source directory. You can find some more examples of compiling from the command line below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: Sometimes you may get error&#039;&#039;&#039; (for example, Fatal Error: Can&#039;t open module file &#039;someModule.mod&#039; for reading at (1): No such file or directory) when following this procedure. In that case there are three things you could try: make sure you are building in a new directory, if that does not help run `make VERBOSE=1` instead of make -j8 or simply switch to using ccmake.&lt;br /&gt;
&lt;br /&gt;
==Compiling with MPI==&lt;br /&gt;
To compile with MPI support add the following flags when running cmake on the command line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=mpif90 CC=mpicc cmake ../source -DCOMPILER_SWITCH=pgi -DWITH_MPI=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here -DCOMPILER_SWITCH=pgi assumes you&#039;re using the Portland &#039;&#039;pgi&#039;&#039; compiler. Make sure you have the correct modules loaded (in this case &#039;&#039;pgi&#039;&#039; and &#039;&#039;mpi-pgi&#039;&#039;), and that the particular mpi you want (in this case &#039;&#039;mpi-pgi&#039;&#039;) is listed before any other mpi&#039;s loaded (so that it has the highest priority). The modules can be loaded by typing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load pgi/64/&lt;br /&gt;
module load mpi/openmpi/pgi/64/1.6.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and you can check which modules are loaded and in which order/priority by the &#039;&#039;module list&#039;&#039; command. You may need to &#039;&#039;module unload &amp;lt;name&amp;gt;&#039;&#039; any other mpi&#039;s that are higher up in the list than the one you want. You can of course set the COMPILER_SWITCH and WITH_MPI flags in &#039;&#039;ccmake&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Note: It has been observed that pgi/64/15.1 leads to compilation errors, and for now, it is best to use pgi/64/14.9&lt;br /&gt;
&lt;br /&gt;
==Advanced mode - changing compiler flags with ccmake==&lt;br /&gt;
[[Image:Ccmakeadvanced.png|thumb|ccmake advanced mode|200px|right]]&lt;br /&gt;
&lt;br /&gt;
Although initially the &#039;&#039;ccmake&#039;&#039; GUI looks very simple, there is a lot going on under the hood. By pressing &#039;t&#039; you can enter &#039;Advanced mode&#039; which will show you all of the hidden options, for example the compiler flags that are being passed to &#039;&#039;make&#039;&#039; when you compile the code. You can also make changes to the flags here, for example if you would like to add &#039;-p&#039; to do  profiling. &lt;br /&gt;
&lt;br /&gt;
As with changing the build type, you simply select the field you&#039;d like to change using the arrow keys, press Return, make your changes and press Return again to save them. When you subsequently configure and generate as above, those altered flag will be used for the subsequent compilation.&lt;br /&gt;
&lt;br /&gt;
Note that these changes only apply in the build directory in which you make them.&lt;br /&gt;
&lt;br /&gt;
==Debugging runtime problems using gdb or valgrind==&lt;br /&gt;
If you are getting a segmentation fault, crash or other unexpected behaviour, you might want to run your job through a debugger like [http://www.gnu.org/software/gdb/ gdb] or [http://valgrind.org/ valgrind]. In order to maximise your chances of getting useful output, you should build a &#039;Debug&#039; version of the program you are having trouble. To do this, you can either change the &#039;&#039;CMAKE_BUILD_TYPE&#039;&#039; in &#039;&#039;ccmake&#039;&#039; to &#039;Debug&#039; (press Return, change &#039;Release&#039; to &#039;Debug&#039; and press Return again), or on the command line like so for GMIN with AMBER 9 using the Intel ifort compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_AMBER=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then run the binary &#039;&#039;through&#039;&#039; gdb or valgrind as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gdb A9GMIN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
valgrind A9GMIN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I won&#039;t cover debugging with these tools here as it&#039;s a science in itself! Do some Googling and ask for help as needed :)&lt;br /&gt;
&lt;br /&gt;
==Debugging compilation problems==&lt;br /&gt;
There are many ways to try and track down why your code is not compiling. Before you start changing compilers, building a &#039;Debug&#039; version or changing machines, you might want to try running make again with the &#039;&#039;VERBOSE&#039;&#039; option enabled. This will dump a lot of potentially useful output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VERBOSE=1 make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One possible gotcha: all .f and .f90 files in the relevant source directories will be compiled and added to a library. This is quite different from the old Makefile way of doing things, where source files were explicitly specified for compilation (via their corresponding .o file). So, if you are testing something by for instance copying code.f90 to code.myhack.f90 and code.orig.f90, then slightly editing a line or two of code.myhack.f90 and copying it back to code.f90 for use, this will probably cause linking problems due to multiply-defined subroutines (from all three files). The solution, if you must have alternative versions of the same file hanging round, is to differentiate the filenames by a suffix AFTER the .f[90] .&lt;br /&gt;
 &lt;br /&gt;
Another occasional issue is the unexplained compiler bug - a problem with the version of the compiler you happen to be using. You can can an idea for which compiler versions we expect to work by checking the Jenkins build-bot output, as described in the &#039;Seeing console output&#039; section of the [[Jenkins CI]] page. If you are using a different version of the compiler in question, consider swapping to the version Jenkins is using with &#039;module swap&#039;.&lt;br /&gt;
&lt;br /&gt;
If the error message you are getting doesn&#039;t make sense to you after some Googling, go and ask someone - we all have these problems. Things you can try first include trying a different compiler version, or an entirely different compiler e.g. pgi rather than ifort for example. You should bear in mind that as mentioned above, not all versions of each code will compile with every compiler. Make sure you&#039;re not trying to build something that isn&#039;t expected to work.&lt;br /&gt;
&lt;br /&gt;
==Extra command line build examples==&lt;br /&gt;
The below commands are absolutely not an exhaustive list, but should give you an idea of what is possible. You can use &#039;&#039;ccmake&#039;&#039; as described above to discover which variables (e.g. WITH_AMBER) can be manipulated on the command line like this. All of these examples assume your svn repository is set up in &#039;&#039;/home/CRSID/svn&#039;&#039; - make the appropriate modifications if you have it elsewhere.&lt;br /&gt;
&lt;br /&gt;
===GMIN===&lt;br /&gt;
&#039;&#039;&#039;A12GMIN&#039;&#039;&#039; (GMIN with AMBER12) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort_amber12&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER12=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C35GMIN&#039;&#039;&#039; (GMIN with CHARMM 35) using pgi:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/pgi_charmm35&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake -DWITH_CHARMM35=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CUDAGMIN&#039;&#039;&#039; (GMIN leveraging GPU minimisation via the AMBER 12 interface) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cuda/5.5&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort_cuda&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_CUDA=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will only work on machines with specific NVIDIA GPUs, for example when submitting jobs on the pat cluster. There is some additional information on the [[Using GMIN with GPUs]] page.&lt;br /&gt;
&lt;br /&gt;
===OPTIM===&lt;br /&gt;
&#039;&#039;&#039;A9OPTIM&#039;&#039;&#039; (OPTIM with AMBER9) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/ifort_amber&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER9=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C35OPTIM&#039;&#039;&#039; (OPTIM with CHARMM 35) using pgi:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/pgi_charmm35&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake -DWITH_CHARMM35=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CUDAOPTIM&#039;&#039;&#039; (OPTIM leveraging GPU via the AMBER 12 interface) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cuda/5.5&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/ifort_cuda5.5&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort CC=icc cmake -DWITH_CUDA=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will only work on machines with specific NVIDIA GPUs, for example when submitting jobs on the pat cluster. There is some additional information on the [[Using GMIN and OPTIM with GPUs]] page.&lt;br /&gt;
&lt;br /&gt;
===PATHSAMPLE===&lt;br /&gt;
There are very few options for [[PATHSAMPLE]] as we don&#039;t need to worry about interfacing with a particular potential. As a result, every binary is simply called &#039;&#039;PATHSAMPLE&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Using nagfor (the NAG fortran compiler - check you have the module loaded - very strict!):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/PATHSAMPLE/builds/nagfor&lt;br /&gt;
cd !$&lt;br /&gt;
FC=nagfor cmake ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using pgi (much more generous with coding slips/non-standard uses):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/PATHSAMPLE/builds/pgi&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuring defaults - for developers==&lt;br /&gt;
&lt;br /&gt;
Fortran compilers and their corresponding default settings are all controlled by the file $SVN/CMakeModules/FindFORTRANCOMPILER.cmake ($SVN is your svn root directory). In particular, we may wish to edit the flags used for each set of compilers and build type. These are contained in the following block:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if(NOT COMPILER_FLAGS_WERE_SET)&lt;br /&gt;
   message(&amp;quot;Setting initial values for compiler flags&amp;quot;)&lt;br /&gt;
   if(COMPILER_SWITCH MATCHES &amp;quot;pgi&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-Mextend&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3 -Munroll -Mnoframe&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-Mextend -C -g -gopt -Mbounds -Mchkfpstk -Mchkptr -Mchkstk -Mcoff -Mdwarf1 -Mdwarf2 -Melf -Mpgicoff -traceback&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-Mextend -C -g -gopt -Mbounds -Mchkfpstk -Mchkptr -Mchkstk -Mcoff -Mdwarf1 -Mdwarf2 -Mdwarf3 -Melf -Mpgicoff -traceback&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-Mfree&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;gfortran&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-ffixed-line-length-200 -ffree-line-length-0&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
#      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -fbounds-check -Wuninitialized -O -ftrapv -fimplicit-none -fno-automatic&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -fbounds-check -Wuninitialized -O -ftrapv -fno-automatic&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;${CMAKE_Fortran_FLAGS_DEBUG} -fimplicit-none&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-ffree-form&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;nag&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-132 -kind=byte -maxcontin=3000&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-mismatch_all -O4&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -mismatch_all -ieee=stop&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-C=all -mtrace=all -gline -g -mismatch_all -ieee=stop&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-free&amp;quot; CACHE TYPE STRING) # js850&amp;gt; is this ever used?&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;ifort&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-132 -heap-arrays -assume byterecl&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
# Warnings about temporary argument creation and edit descriptor widths are disabled with the final flags.&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-C -g -traceback -debug full -check all,noarg_temp_created -diag-disable 8290,8291&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-debug all -check all -implicitnone -warn unused -fp-stack-check -ftrapuv -check pointers -check bounds&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-free&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   else()&lt;br /&gt;
      message(FATAL_ERROR &amp;quot;unknown comiler switch: ${COMPILER_SWITCH}&amp;quot;)&lt;br /&gt;
   endif()&lt;br /&gt;
    SET(COMPILER_FLAGS_WERE_SET yes CACHE TYPE INTERNAL)&lt;br /&gt;
endif(NOT COMPILER_FLAGS_WERE_SET)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main if/elseif blocks correspond to compiler switches. Inside these, there are the default flags for each of our build types (release, debug and debug_slow), which are configured using ccmake. These can be edited, if we wish to change the default behaviour (e.g. a recent addition of -check all,noarg_temp_created -diag-disable 8290,8291 to disable annoying warning messages for ifort).&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_an_AMBER_topology_file_for_a_protein_system&amp;diff=1759</id>
		<title>Preparing an AMBER topology file for a protein system</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Preparing_an_AMBER_topology_file_for_a_protein_system&amp;diff=1759"/>
		<updated>2021-07-19T18:18:17Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When you want to use [[AMBER]], either on its own to run MD, or interfaced with any of the group software ([[GMIN]], [[OPTIM]] or [[PATHSAMPLE]]), you need to have two files at your disposal. These are the topology file (which describes the atom types, connectivity of atoms, force field parameters for angles, etc.) and the coordinate file (which shockingly defines the coordinates of the atoms in your system).&lt;br /&gt;
&lt;br /&gt;
To start work with [[AMBER]] you need files defining your system (topology and coordinates) and driving file with keyword defining conditions for molecular dynamics. The detailed tutorial referring specially to point 3 (how to get the topology and coordinate files for system with ligand) is presented in tutorial [[Preparing an AMBER topology file for a protein plus ligand system]]. &lt;br /&gt;
&lt;br /&gt;
It is important that one uses the symmetrised version of the parameters that Edyta work.  These are available &lt;br /&gt;
via svn in AMBERTOOLS.  When calling &#039;&#039;tleap&#039;&#039; it is important that you are using the version in AMBERTOOLS which &lt;br /&gt;
utilises the correct version of these parameters.  If not one could have some unfortunate problems when making &lt;br /&gt;
connective with OPTIM and PATHSAMPLE. Below you can find simple LEaP scripts generating topology and coordinate files for three exemplary cases. In each case you need to run ONE of the following commands:&lt;br /&gt;
&lt;br /&gt;
  xleap -f leap.in&lt;br /&gt;
  xleap &amp;lt; leap.in&lt;br /&gt;
  tleap -f leap.in&lt;br /&gt;
  tleap &amp;lt; leap.in&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;leap.in&#039;&#039; is a name of the script. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;xleap&#039;&#039; is a graphical version of &#039;&#039;tleap&#039;&#039; therefore sometimes is easier to call &#039;&#039;tleap&#039;&#039; in the form of a script.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Generate topology and coordinate files. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You need to build a peptide from a sequence:&lt;br /&gt;
&lt;br /&gt;
  source leaprc.ff03&lt;br /&gt;
  mol = sequence {NALA ALA ALA ALA ALA ALA ALA CALA}&lt;br /&gt;
  saveamberparm mol mol.prmtop mol.inpcrd&lt;br /&gt;
  savepdb mol mol.pdb&lt;br /&gt;
  quit&lt;br /&gt;
&lt;br /&gt;
or you can build a protein from an existing pdb file.  There are two energy function that are most likely to&lt;br /&gt;
be used an ALL-ATOM model or an UNITED ATOM  model.  For the ALL-ATOM model &#039;&#039;source leaprc.ff03&#039;&#039;  or an UNITED &lt;br /&gt;
ATOM  model &#039;&#039;source leaprc.ff03ua&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
   source leaprc.ff03&lt;br /&gt;
   mol=loadpdb protein.pdb.&lt;br /&gt;
   saveamberparm mol mol.prmtop  mol.inpcrd&lt;br /&gt;
   savepdb mol mol.pdb              &lt;br /&gt;
   quit                                               &lt;br /&gt;
&lt;br /&gt;
On the beginning LEaP is reading force field parameters and AMBER libraries, and finally three files are produced: &#039;&#039;mol.prmtop&#039;&#039; with topology, &#039;&#039;mol.inpcrd&#039;&#039; with coordinates and &#039;&#039;mol.pdb&#039;&#039; which is PDB file that you can use to visualize the protein.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Remove all hydrogens belonging to amino acid and nucleic residues, LEaP will add them according to AMBER libraries. In case of wrong atom names or atoms types or residue names, you will find appropriate warnings in &#039;&#039;leap.log&#039;&#039; file which is output file from LEaP.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: In case you want to use igb=8 implicit solvent model, add the following line to your leap.in file. (For more details, Ctrl+F igb=8 in AMBER manual)&lt;br /&gt;
&lt;br /&gt;
   set default PBradii mbondi3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Rename termini.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now we have an AMBER topology file but there are a few changes we need to make before we can use it. The first is necessary and the second, while not essential - is highly recommended. The first step involves renaming the terminal residues.&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;tleap&#039;&#039; created the topology file, it also renames the terminal residues, something we didn&#039;t want it to do! Open up [[Media:2hu4.top.txt | 2hu4.top]] in an editor and look for the section that begins with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%FLAG RESIDUE_LABEL&lt;br /&gt;
%FORMAT(20a4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is where the sequence is defined, however the N and C terminal residues should be named differently i.e. in our case VAL should be NVAL and ILE should be CILE. This edit isn&#039;t quite that simple however as the topology file uses a fixed format with four spaces per residue so you need to remove a blank space when you edit the name. e.g.&lt;br /&gt;
&lt;br /&gt;
One can use a simpile sed command to swap the sequence out file the below commands.  They need to be specified by&lt;br /&gt;
the unique sequence tag.&lt;br /&gt;
sed &#039;s/^GLN GLN ASN ALA/NGLNGLN ASN ALA/&#039; mol.prmtop &amp;gt; mol.prmtop.temp&lt;br /&gt;
sed &#039;s/LEU ASN ASP ALA/LEU ASN ASP CALA/&#039; mol.prmtop.temp &amp;gt; mol.prmtop&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Symmeterize topology file.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you followed the suggestions, you should have the scripts installed under svn already in the directory&lt;br /&gt;
/home/$USER/svn/SCRIPTS/AMBER/symmetrise_prmtop.&lt;br /&gt;
&lt;br /&gt;
If you use the ALL-ATOM function you need to use a command like:&lt;br /&gt;
&lt;br /&gt;
   /home/$USER/svn/SCRIPTS/AMBER/symmetrise_prmtop/perm-prmtop.ff03.py  mol.prmtop.old mol.prmtop&lt;br /&gt;
&lt;br /&gt;
If you use the UNITED-ATOM function you need to use a command like:&lt;br /&gt;
&lt;br /&gt;
   /home/$USER/svn/SCRIPTS/AMBER/symmetrise_prmtop/perm-prmtop.ff03us.py  mol.prmtop.old mol.prmtop&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4. For OPTIM and PATHSAMPLE generate a perm.allow file.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you followed the suggestions, you should have the scripts installed under svn already in the directory&lt;br /&gt;
/home/$USER/svn/SCRIPTS/make_perm.allow.&lt;br /&gt;
&lt;br /&gt;
If you use the ALL-ATOM function you need to use a command like:&lt;br /&gt;
&lt;br /&gt;
   /home/$USER/svn/SCRIPTS/make_perm.allow/perm-pdb.py  mol.prmtop.old mol.prmtop&lt;br /&gt;
&lt;br /&gt;
If you use the UNITED-ATOM function you need to use a command like:&lt;br /&gt;
&lt;br /&gt;
   /home/$USER/svn/SCRIPTS/make_perm.allow/perm-pdb-ua.py  mol.prmtop.old mol.prmtop&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Compiling_Wales_Group_codes_using_cmake&amp;diff=1737</id>
		<title>Compiling Wales Group codes using cmake</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Compiling_Wales_Group_codes_using_cmake&amp;diff=1737"/>
		<updated>2021-01-11T17:00:50Z</updated>

		<summary type="html">&lt;p&gt;Nn320: svn replaced with softwarewales&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.cmake.org/ CMake] (Cross-platform Make) provides a simple, platform independent way for us to compile and test the group codebase. Dependencies are handled automatically, compilation can proceed in parallel to avoid long waits while testing changes and builds are done entirely outside of the source directory. It also enables us to use the [[Jenkins CI]] &#039;build bot&#039; system to automatically compile and test the code on a nightly basis - helping us catch troublesome commits before they affect other users. &lt;br /&gt;
&lt;br /&gt;
Although everything below refers to compiling [[GMIN]] with the Intel &#039;&#039;ifort&#039;&#039; compiler and AMBER9 - the exact same procedure works for [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
&lt;br /&gt;
Note that not every option for our codes is expected to actually compile with every compiler, for example, anything using CHARMM35/36 will not compile with &#039;&#039;nagfor&#039;&#039; or &#039;&#039;gfortran&#039;&#039;. This is nothing to do with our code - it&#039;s a CHARMM issue. You can get an idea for what should work by looking at the automated [[Jenkins CI]] builds.&lt;br /&gt;
&lt;br /&gt;
==Preparing to compile==&lt;br /&gt;
Before you get started, you need to ensure that the machine you are planning to compile on has cmake 2.8 or higher installed. You can check the current version like so:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The clusters have a module for cmake 3.0, which you can load using the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cmake/3.0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You also need to create a directory to build the code in. We suggest that you create a directory for the compiler you are using within the program directory, under a subdirectory called &#039;builds&#039; - for example for compiling GMIN with ifort, you would make a directory here:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort&lt;br /&gt;
cd ~/softwarewales/GMIN/builds/ifort&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can call these directories whatever you like - but make sure it is clear to you what they contain! You might also want to check which version of the compiler you have loaded. This is important as the different clusters and workstations may have different default versions loaded, some of which might not work properly. You can check the compiler version currently loaded using the same &#039;--version&#039; flag we used for &#039;&#039;cmake&#039;&#039; above:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ifort --version&lt;br /&gt;
ifort (IFORT) 12.1.3 20120212&lt;br /&gt;
Copyright (C) 1985-2012 Intel Corporation.  All rights reserved.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load a different compiler, you can use the &#039;&#039;module load&#039;&#039; or &#039;&#039;module swap&#039;&#039; commands. A list of all available modules can be accessed using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module av&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you are having problems compiling, one of the first things to check is whether it works with a different version of the compiler!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: When compiling GMIN, if you are getting the error that there is no implicit type for ERFC in ewald.f90, try using a newer version of your compiler. This should be the built-in complementary error function.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Compiling using the ccmake GUI interface to set options==&lt;br /&gt;
[[Image:Ccmake.png|thumb|ccmake set up to compile A9GMIN|200px|right]]&lt;br /&gt;
&lt;br /&gt;
One advantage using cmake has over make is that we can use the simple ccmake GUI. This interface lets us set options like compiling with AMBER9, or CHARMM35, toggle between &#039;Release&#039; and &#039;Debug&#039; builds (see below) - and examine and alter the flags being uses for the compilation if we wish. Before we can run ccmake, we need to specify the compiler and run cmake in our build directory (e.g. softwarewales/GMIN/builds/ifort). We specify the &#039;&#039;&#039;F&#039;&#039;&#039;ortran &#039;&#039;&#039;C&#039;&#039;&#039;ompiler by setting the &#039;&#039;&#039;$FC&#039;&#039;&#039; environment variable (in this case the Intel Fortran compiler, ifort), and then run &#039;&#039;cmake&#039;&#039; (on the command line), passing it the relative location of the [[GMIN]] source directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake ../../source&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you run &#039;&#039;ls&#039;&#039;, you will see some cmake files have been generated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ls&lt;br /&gt;
CMakeCache.txt  CMakeFiles  cmake_install.cmake  Makefile  modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now run &#039;&#039;ccmake&#039;&#039; to open the GUI:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ccmake .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To navigate between options, use the arrow keys. Options can be toggled by pressing Return. To compile [[GMIN]] with AMBER9 (A9GMIN), we need to toggle the &#039;&#039;WITH_AMBER&#039;&#039; option &#039;&#039;ON&#039;&#039;. Once you have done this, you need to configure and generate appropriate cmake info. This is done by pressing &#039;c&#039; to configure, &#039;e&#039; to exit and then &#039;g&#039; to generate.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: for some builds (CHARMM with DFTB and CUDAGMIN), you might need to configure, exit and generate twice to set all necessary options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can now compile A9GMIN in parallel as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;-j8&#039; flag here tells make to use up to 8 &#039;threads&#039; when building. For optimal performance, you should keep this slightly greater than the number of cores (CPUs) the node you are working on has. If all goes well, you should now have an A9GMIN binary in your build directory - congratulations! &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Linking Fortran executable A9GMIN&lt;br /&gt;
[100%] Built target A9GMIN&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------------- 15:23:45&lt;br /&gt;
&lt;br /&gt;
csw34@sinister:~/softwarewales/GMIN/builds/ifort&amp;gt; ls&lt;br /&gt;
A9GMIN          cmake_install.cmake   libcudadummylib.a  libmylapack.a  NAB&lt;br /&gt;
AMBER           display_version.f90   libdummylib.a      Makefile       nab_binaries_built&lt;br /&gt;
CMakeCache.txt  GMIN                  libgminlib.a       modules        porfuncs.f90&lt;br /&gt;
CMakeFiles      libamber12dummylib.a  libmyblas.a        n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Plain [[GMIN]] is also built at the same time should you need it. You can move this into your ~/bin directory if you like, or anywhere else in your &#039;&#039;$PATH&#039;&#039; to make running it simple.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: If you want to use OPTIM with the new C++ implementation of the NEB routine, you will need to obtain the source code for that separately. See [https://wikis.ch.cam.ac.uk/wales/wiki/index.php/OPTIM here] for instructions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Compiling by setting options on the command line==&lt;br /&gt;
If you know the options you&#039;d like to set already (you can see them all in ccmake), you can save some time by passing them directly to &#039;&#039;cmake&#039;&#039; on the command line, bypassing the need for &#039;&#039;ccmake&#039;&#039;. For example, to compile A9GMIN (GMIN with the AMBER9 interface) using the Intel ifort compiler, you would run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;../../source&#039; is the relative location of the GMIN source directory. You can find some more examples of compiling from the command line below.&lt;br /&gt;
&lt;br /&gt;
==Compiling with MPI==&lt;br /&gt;
To compile with MPI support add the following flags when running cmake on the command line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=mpif90 CC=mpicc cmake ../source -DCOMPILER_SWITCH=pgi -DWITH_MPI=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here -DCOMPILER_SWITCH=pgi assumes you&#039;re using the Portland &#039;&#039;pgi&#039;&#039; compiler. Make sure you have the correct modules loaded (in this case &#039;&#039;pgi&#039;&#039; and &#039;&#039;mpi-pgi&#039;&#039;), and that the particular mpi you want (in this case &#039;&#039;mpi-pgi&#039;&#039;) is listed before any other mpi&#039;s loaded (so that it has the highest priority). The modules can be loaded by typing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load pgi/64/&lt;br /&gt;
module load mpi/openmpi/pgi/64/1.6.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and you can check which modules are loaded and in which order/priority by the &#039;&#039;module list&#039;&#039; command. You may need to &#039;&#039;module unload &amp;lt;name&amp;gt;&#039;&#039; any other mpi&#039;s that are higher up in the list than the one you want. You can of course set the COMPILER_SWITCH and WITH_MPI flags in &#039;&#039;ccmake&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Note: It has been observed that pgi/64/15.1 leads to compilation errors, and for now, it is best to use pgi/64/14.9&lt;br /&gt;
&lt;br /&gt;
==Advanced mode - changing compiler flags with ccmake==&lt;br /&gt;
[[Image:Ccmakeadvanced.png|thumb|ccmake advanced mode|200px|right]]&lt;br /&gt;
&lt;br /&gt;
Although initially the &#039;&#039;ccmake&#039;&#039; GUI looks very simple, there is a lot going on under the hood. By pressing &#039;t&#039; you can enter &#039;Advanced mode&#039; which will show you all of the hidden options, for example the compiler flags that are being passed to &#039;&#039;make&#039;&#039; when you compile the code. You can also make changes to the flags here, for example if you would like to add &#039;-p&#039; to do  profiling. &lt;br /&gt;
&lt;br /&gt;
As with changing the build type, you simply select the field you&#039;d like to change using the arrow keys, press Return, make your changes and press Return again to save them. When you subsequently configure and generate as above, those altered flag will be used for the subsequent compilation.&lt;br /&gt;
&lt;br /&gt;
Note that these changes only apply in the build directory in which you make them.&lt;br /&gt;
&lt;br /&gt;
==Debugging runtime problems using gdb or valgrind==&lt;br /&gt;
If you are getting a segmentation fault, crash or other unexpected behaviour, you might want to run your job through a debugger like [http://www.gnu.org/software/gdb/ gdb] or [http://valgrind.org/ valgrind]. In order to maximise your chances of getting useful output, you should build a &#039;Debug&#039; version of the program you are having trouble. To do this, you can either change the &#039;&#039;CMAKE_BUILD_TYPE&#039;&#039; in &#039;&#039;ccmake&#039;&#039; to &#039;Debug&#039; (press Return, change &#039;Release&#039; to &#039;Debug&#039; and press Return again), or on the command line like so for GMIN with AMBER 9 using the Intel ifort compiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FC=ifort cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_AMBER=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then run the binary &#039;&#039;through&#039;&#039; gdb or valgrind as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gdb A9GMIN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
valgrind A9GMIN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I won&#039;t cover debugging with these tools here as it&#039;s a science in itself! Do some Googling and ask for help as needed :)&lt;br /&gt;
&lt;br /&gt;
==Debugging compilation problems==&lt;br /&gt;
There are many ways to try and track down why your code is not compiling. Before you start changing compilers, building a &#039;Debug&#039; version or changing machines, you might want to try running make again with the &#039;&#039;VERBOSE&#039;&#039; option enabled. This will dump a lot of potentially useful output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VERBOSE=1 make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One possible gotcha: all .f and .f90 files in the relevant source directories will be compiled and added to a library. This is quite different from the old Makefile way of doing things, where source files were explicitly specified for compilation (via their corresponding .o file). So, if you are testing something by for instance copying code.f90 to code.myhack.f90 and code.orig.f90, then slightly editing a line or two of code.myhack.f90 and copying it back to code.f90 for use, this will probably cause linking problems due to multiply-defined subroutines (from all three files). The solution, if you must have alternative versions of the same file hanging round, is to differentiate the filenames by a suffix AFTER the .f[90] .&lt;br /&gt;
 &lt;br /&gt;
Another occasional issue is the unexplained compiler bug - a problem with the version of the compiler you happen to be using. You can can an idea for which compiler versions we expect to work by checking the Jenkins build-bot output, as described in the &#039;Seeing console output&#039; section of the [[Jenkins CI]] page. If you are using a different version of the compiler in question, consider swapping to the version Jenkins is using with &#039;module swap&#039;.&lt;br /&gt;
&lt;br /&gt;
If the error message you are getting doesn&#039;t make sense to you after some Googling, go and ask someone - we all have these problems. Things you can try first include trying a different compiler version, or an entirely different compiler e.g. pgi rather than ifort for example. You should bear in mind that as mentioned above, not all versions of each code will compile with every compiler. Make sure you&#039;re not trying to build something that isn&#039;t expected to work.&lt;br /&gt;
&lt;br /&gt;
==Extra command line build examples==&lt;br /&gt;
The below commands are absolutely not an exhaustive list, but should give you an idea of what is possible. You can use &#039;&#039;ccmake&#039;&#039; as described above to discover which variables (e.g. WITH_AMBER) can be manipulated on the command line like this. All of these examples assume your svn repository is set up in &#039;&#039;/home/CRSID/svn&#039;&#039; - make the appropriate modifications if you have it elsewhere.&lt;br /&gt;
&lt;br /&gt;
===GMIN===&lt;br /&gt;
&#039;&#039;&#039;A12GMIN&#039;&#039;&#039; (GMIN with AMBER12) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort_amber12&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER12=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C35GMIN&#039;&#039;&#039; (GMIN with CHARMM 35) using pgi:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/pgi_charmm35&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake -DWITH_CHARMM35=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CUDAGMIN&#039;&#039;&#039; (GMIN leveraging GPU minimisation via the AMBER 12 interface) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cuda/5.5&lt;br /&gt;
mkdir -p ~/softwarewales/GMIN/builds/ifort_cuda&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_CUDA=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will only work on machines with specific NVIDIA GPUs, for example when submitting jobs on the pat cluster. There is some additional information on the [[Using GMIN with GPUs]] page.&lt;br /&gt;
&lt;br /&gt;
===OPTIM===&lt;br /&gt;
&#039;&#039;&#039;A9OPTIM&#039;&#039;&#039; (OPTIM with AMBER9) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/ifort_amber&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort cmake -DWITH_AMBER9=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C35OPTIM&#039;&#039;&#039; (OPTIM with CHARMM 35) using pgi:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/pgi_charmm35&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake -DWITH_CHARMM35=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CUDAOPTIM&#039;&#039;&#039; (OPTIM leveraging GPU via the AMBER 12 interface) using ifort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load cuda/5.5&lt;br /&gt;
mkdir -p ~/softwarewales/OPTIM/builds/ifort_cuda5.5&lt;br /&gt;
cd !$&lt;br /&gt;
FC=ifort CC=icc cmake -DWITH_CUDA=1 ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will only work on machines with specific NVIDIA GPUs, for example when submitting jobs on the pat cluster. There is some additional information on the [[Using GMIN and OPTIM with GPUs]] page.&lt;br /&gt;
&lt;br /&gt;
===PATHSAMPLE===&lt;br /&gt;
There are very few options for [[PATHSAMPLE]] as we don&#039;t need to worry about interfacing with a particular potential. As a result, every binary is simply called &#039;&#039;PATHSAMPLE&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Using nagfor (the NAG fortran compiler - check you have the module loaded - very strict!):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/PATHSAMPLE/builds/nagfor&lt;br /&gt;
cd !$&lt;br /&gt;
FC=nagfor cmake ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using pgi (much more generous with coding slips/non-standard uses):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p ~/softwarewales/PATHSAMPLE/builds/pgi&lt;br /&gt;
cd !$&lt;br /&gt;
FC=pgf90 cmake ../../source&lt;br /&gt;
make -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuring defaults - for developers==&lt;br /&gt;
&lt;br /&gt;
Fortran compilers and their corresponding default settings are all controlled by the file $SVN/CMakeModules/FindFORTRANCOMPILER.cmake ($SVN is your svn root directory). In particular, we may wish to edit the flags used for each set of compilers and build type. These are contained in the following block:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if(NOT COMPILER_FLAGS_WERE_SET)&lt;br /&gt;
   message(&amp;quot;Setting initial values for compiler flags&amp;quot;)&lt;br /&gt;
   if(COMPILER_SWITCH MATCHES &amp;quot;pgi&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-Mextend&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3 -Munroll -Mnoframe&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-Mextend -C -g -gopt -Mbounds -Mchkfpstk -Mchkptr -Mchkstk -Mcoff -Mdwarf1 -Mdwarf2 -Melf -Mpgicoff -traceback&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-Mextend -C -g -gopt -Mbounds -Mchkfpstk -Mchkptr -Mchkstk -Mcoff -Mdwarf1 -Mdwarf2 -Mdwarf3 -Melf -Mpgicoff -traceback&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-Mfree&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;gfortran&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-ffixed-line-length-200 -ffree-line-length-0&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
#      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -fbounds-check -Wuninitialized -O -ftrapv -fimplicit-none -fno-automatic&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -fbounds-check -Wuninitialized -O -ftrapv -fno-automatic&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;${CMAKE_Fortran_FLAGS_DEBUG} -fimplicit-none&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-ffree-form&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;nag&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-132 -kind=byte -maxcontin=3000&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-mismatch_all -O4&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-g -mismatch_all -ieee=stop&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-C=all -mtrace=all -gline -g -mismatch_all -ieee=stop&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-free&amp;quot; CACHE TYPE STRING) # js850&amp;gt; is this ever used?&lt;br /&gt;
   elseif(COMPILER_SWITCH MATCHES &amp;quot;ifort&amp;quot;)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS &amp;quot;-132 -heap-arrays -assume byterecl&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_RELEASE &amp;quot;-O3&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
# Warnings about temporary argument creation and edit descriptor widths are disabled with the final flags.&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG &amp;quot;-C -g -traceback -debug full -check all,noarg_temp_created -diag-disable 8290,8291&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (CMAKE_Fortran_FLAGS_DEBUG_SLOW &amp;quot;-debug all -check all -implicitnone -warn unused -fp-stack-check -ftrapuv -check pointers -check bounds&amp;quot; CACHE TYPE STRING FORCE)&lt;br /&gt;
      set (FORTRAN_FREEFORM_FLAG &amp;quot;-free&amp;quot; CACHE TYPE STRING)&lt;br /&gt;
   else()&lt;br /&gt;
      message(FATAL_ERROR &amp;quot;unknown comiler switch: ${COMPILER_SWITCH}&amp;quot;)&lt;br /&gt;
   endif()&lt;br /&gt;
    SET(COMPILER_FLAGS_WERE_SET yes CACHE TYPE INTERNAL)&lt;br /&gt;
endif(NOT COMPILER_FLAGS_WERE_SET)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main if/elseif blocks correspond to compiler switches. Inside these, there are the default flags for each of our build types (release, debug and debug_slow), which are configured using ccmake. These can be edited, if we wish to change the default behaviour (e.g. a recent addition of -check all,noarg_temp_created -diag-disable 8290,8291 to disable annoying warning messages for ifort).&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Managing_interactive_jobs_on_cluster&amp;diff=1598</id>
		<title>Managing interactive jobs on cluster</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Managing_interactive_jobs_on_cluster&amp;diff=1598"/>
		<updated>2020-05-18T11:20:03Z</updated>

		<summary type="html">&lt;p&gt;Nn320: Created page with &amp;quot;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to kill a particular job. The following bash commands are useful for this purpose: top, ps and kill.&lt;br /&gt;
&lt;br /&gt;
===top===&lt;br /&gt;
&amp;lt;b&amp;gt;top &amp;lt;/b&amp;gt; command is used to list the processes running on the system in real time. To exit from the top window press &amp;lt;b&amp;gt;q&amp;lt;/b&amp;gt; . top command has several useful options.&lt;br /&gt;
* &amp;lt;b&amp;gt;top -u CRSid &amp;lt;/b&amp;gt; is used to list the jobs of a particular user.&lt;br /&gt;
* &amp;lt;b&amp;gt; top -n 1 -b &amp;gt; output &amp;lt;/b&amp;gt; can be used to save the top window to a file.&lt;br /&gt;
In top window itself&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;z &amp;lt;/b&amp;gt; highlights the running process.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;c &amp;lt;/b&amp;gt; shows absolute path of all running processes.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;k &amp;lt;/b&amp;gt; displays a line in top window where the process id (pid) of the process that needs to be killed can be directly entered and when asked about confirmation simply press &amp;lt;b&amp;gt;y &amp;lt;/b&amp;gt; to kill the process.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;Shift+o &amp;lt;/b&amp;gt; opens a new window with several options along with the corresponding letter that needs to be pressed to sort the top window based on a particular column. For example to sort all processes depending on memory usage i.e. %MEM press &amp;lt;b&amp;gt; shift+o, n &amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt; Enter &amp;lt;/b&amp;gt;.&lt;br /&gt;
There is a lot more that can be done using top and more information can be found on its man page.&lt;br /&gt;
&lt;br /&gt;
===ps===&lt;br /&gt;
ps stands for process status. One of its use can be to view the jobs of a particular user.&lt;br /&gt;
&amp;lt;pre&amp;gt; ps aux | egrep CRSid &amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; ps aux &amp;lt;/b&amp;gt; displays all processes along with usernames and &amp;lt;b&amp;gt; egrep CRSid &amp;lt;/b&amp;gt; can be used to extract processes belonging to a particular user.&lt;br /&gt;
===kill===&lt;br /&gt;
kill can be used to kill a process. When running an interactive job, its execution can be stopped by pressing &amp;lt;b&amp;gt;Ctrl+z&amp;lt;/b&amp;gt; and then kill command can be used.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 kill signal pid &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; kill -9 pid &amp;lt;/b&amp;gt;can be used to kill the process immediately. The option -9 stands for SIGKILL. More information about different types of signals can be found here https://en.wikipedia.org/wiki/Signal_(IPC)#List_of_signals&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1597</id>
		<title>Comprehensive Contents Page</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1597"/>
		<updated>2020-05-18T11:12:55Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Cluster queues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is designed to organise all of the pages on this wiki, as well as provide other useful links. Note that some pages may appear under more than one heading.&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
[[Wales Group]] provides good step-by-step instructions. Relevant pages are:&lt;br /&gt;
&lt;br /&gt;
=== Acquiring and compiling the group software ===&lt;br /&gt;
* [[SVN setup]]&lt;br /&gt;
* [[Wales Group Version control]] - to keep the code standardised.&lt;br /&gt;
* Theory Sector [http://wwmm.ch.cam.ac.uk/wikis/cuc3/index.php/SVN_Page SVN Page] - some useful general information on SVN commands.&lt;br /&gt;
* [[Compiling Wales Group codes using cmake]] - CMake (Cross-platform Make) allows us to compile and test the group codebase regardless of platform. This page provides crucial information how to compile using cmake.&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
&lt;br /&gt;
=== Maintaining code health ===&lt;br /&gt;
* [[Jenkins CI]] - explains Jenkins, which we use to download our code and compile each of our targets with each of the compilers every night.&lt;br /&gt;
* https://wales-jenkins.ch.cam.ac.uk/ - log for our Jenkins tests.&lt;br /&gt;
* [[Branching and Merging]]&lt;br /&gt;
* [[Cmake interface building]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[Revamping the modules system]]&lt;br /&gt;
&lt;br /&gt;
=== Collaborators without access to the SVN repository ===&lt;br /&gt;
For licensing reasons, some code cannot be included in the Wales Group public tarball.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/svn.tar.bz2 - Wales group public tarball. Includes [[GMIN]], [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
If a collaborator has a [[CHARMM]] or [[AMBER]] licence, we do maintain separate tarballs which include the [[CHARMM]], [[AMBER]] and [[CHARMM]]+[[AMBER]] source and interfaces. These are not linked anywhere on the website and require a username (&#039;&#039;&#039;wales&#039;&#039;&#039;) and password (&#039;&#039;&#039;group&#039;&#039;&#039;) to download:&lt;br /&gt;
&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/CHARMM/svn.CHARMM.tar.bz2 CHARMM]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/AMBER/svn.AMBER.tar.bz2 AMBER]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/both/svn.both.tar.bz2 AMBER+CHARMM]&lt;br /&gt;
&lt;br /&gt;
=== Running on Windows ===&lt;br /&gt;
Not particularly recommended.&lt;br /&gt;
* [[Running Wales Group software on Windows 7]]&lt;br /&gt;
&lt;br /&gt;
== Wales Group Programs ==&lt;br /&gt;
&lt;br /&gt;
=== Programs ===&lt;br /&gt;
* [[GMIN]]: A program for finding global minima and calculating thermodynamic properties from basin-sampling.&lt;br /&gt;
* [[OPTIM]]: A program for optimizing geometries and calculating reaction pathways.&lt;br /&gt;
* [[PATHSAMPLE]]: A driver for OPTIM to create stationary point databases using discrete path sampling and perform kinetic analysis.&lt;br /&gt;
* [[Pele]]: Python energy landscape explorer. A pythonic rewrite of some core functionality of GMIN, OPTIM, and PATHSAMPLE. Can be very useful for visualizing your system and for rapidly implementing and testing new ideas.&lt;br /&gt;
&lt;br /&gt;
=== Curated Examples ===&lt;br /&gt;
* https://github.com/wales-group/examples - set of tutorials detailing how to use GMIN, OPTIM and PATHSAMPLE. Essential for beginners.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/VM/Wales_Group_VM.ova - Pre-prepared teaching virtual machine. This contains the code and examples.&lt;br /&gt;
* https://www.virtualbox.org/wiki/Downloads - This is required if using the VM above.&lt;br /&gt;
* https://github.com/wales-group/examples.git - Alternatively, you can run the examples on your own machine. To get hold of the relevant files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/wales-group/examples.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful Notes on Wales Group Programs and Subroutines ==&lt;br /&gt;
=== [[GMIN]] ===&lt;br /&gt;
* [[Adding a model to GMIN]] - rough outline of the subroutines that need to be changed to add a new model to GMIN&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling GMIN using cmake ]]&lt;br /&gt;
* [[Selecting search parameters for GMIN]]&lt;br /&gt;
* [[Global optimization of biomolecules using CHARMM]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9 with Structural Restraints]]&lt;br /&gt;
* [[Calculating binding free energy using the FSA method]]&lt;br /&gt;
* [[Restarting a GMIN run from a dump file]]&lt;br /&gt;
* [[Using the implicit membrane model IMM1]]&lt;br /&gt;
* [[Running a Go model with the AMHGMIN]]&lt;br /&gt;
* [[Running a G\=o model with the AMHGMIN]]&lt;br /&gt;
* [[Ligand binding-mode searches with HBONDMATRIX]]&lt;br /&gt;
* [[Compiling and using GMIN with QUIP]]&lt;br /&gt;
* [[Using GMIN and OPTIM with GPUs]]&lt;br /&gt;
* [[Using GMIN to generate endpoints]]&lt;br /&gt;
* [[Using GMIN to generate endpoints (CHARMM)]]&lt;br /&gt;
* [[Generating a GMIN Eclipse project]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[Keywords]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
&lt;br /&gt;
==== Scripts ====&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
&lt;br /&gt;
==== Useful info for coding GMIN ====&lt;br /&gt;
* [[Program flow]] - contains information about what the various files in GMIN do and what order they&#039;re called. &lt;br /&gt;
* [[amberinterface]]&lt;br /&gt;
&lt;br /&gt;
==== Projects ====&lt;br /&gt;
* [[GMIN MOVES module]]&lt;br /&gt;
* [[GMIN SANITY module]]&lt;br /&gt;
* [[GMIN TESTS module]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
&lt;br /&gt;
=== [[OPTIM]] ===&lt;br /&gt;
* [[Adding a model to OPTIM]] - rough outline of the subrounties that need to be changed to add a new model to OPTIM&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling OPTIM using cmake ]]&lt;br /&gt;
* [[OPTIM/Q-Chem Tutorial]]&lt;br /&gt;
* [[OPTIM and PY ellipsoids tutorial]]&lt;br /&gt;
* [[OPTIM output files]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and AMBER9]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Creating movies (.mpg) of paths using OPTIM]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Debugging odd transition states in OPTIM]]&lt;br /&gt;
* [[Connecting two minima with a pathway]] - step by step&lt;br /&gt;
* [[Compiling and using OPTIM with QUIP]]&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
* [[The effect of calculating less than the maximum number of eigenvalues using ENDHESS n]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
* [[Instanton tunneling and classical rate calculations with OPTIM]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[common setup problem : No Frequency Warning]]&lt;br /&gt;
&lt;br /&gt;
=== [[PATHSAMPLE]] ===&lt;br /&gt;
* [[Adding a model to PATHSAMPLE]] - rough outline of the subrounties that need to be changed to add a new model to PATHSAMPLE&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling PATHSAMPLE using cmake ]]&lt;br /&gt;
* [[IMPORTANT: Using PATHSAMPLE safely on sinister]]&lt;br /&gt;
* [[Adding a model for PATHSAMPLE]]&lt;br /&gt;
* [[List of output files for PATHSAMPLE]]&lt;br /&gt;
* [[Using BHINTERP to find minima between two end points]]&lt;br /&gt;
* [[Finding an initial path between two end points (minima)]]&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[Optimising a path]]&lt;br /&gt;
* [[Fine tuning UNTRAP]] - ensuring that it picks sensible minima&lt;br /&gt;
* [[Calculating rate constants (GT and fastest path)]]&lt;br /&gt;
* [[Calculating rate constants (SGT, DGT, and SDGT)]]&lt;br /&gt;
* [[Identifying the k fastest paths between endpoints using KSHORTESTPATHS]]&lt;br /&gt;
* [[Removing minima and transition states from the database]]&lt;br /&gt;
* [[Relaxing existing minima with new potential and creating new database]]&lt;br /&gt;
* [[Relaxing existing transition states with new potential and creating new database]]&lt;br /&gt;
* [[If things go wrong...]]&lt;br /&gt;
* [[If you lost file min.data, but still you have points.min]]&lt;br /&gt;
* [[path.info file is not read, causes PATHSAMPLE to die]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[When PATHSAMPLE finds a connected path, but using DIJKSTRA 0 fails to find the connected path]]&lt;br /&gt;
* [[Biomolecules in PATHSAMPLE]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[Connecting Sub-databases]]&lt;br /&gt;
&lt;br /&gt;
=== [[Notes on MINPERMDIST | MINPERMDIST]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[Quasi-continuous interpolation for biomolecules | QCI]] ===&lt;br /&gt;
&lt;br /&gt;
== Non-Group Software ==&lt;br /&gt;
&lt;br /&gt;
=== [[AMBER]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [http://ambermd.org/ AMBER]&lt;br /&gt;
* [http://ambermd.org/tutorials/ AMBER tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Notes on AMBER 12 interface]]&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Using Molfacture to edit molecules and add hydrogens]]&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[perm-prmtop.py]] - A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Creating mismatched DNA duplex using NAB]]&lt;br /&gt;
&lt;br /&gt;
=== [[aux2bib]] === &lt;br /&gt;
To generate a bib file containing only the entries cited in a given .tex file from a larger bib or multiple bib files.&lt;br /&gt;
* [https://ctan.org/pkg/bibtools Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[CamCasp]] ===&lt;br /&gt;
Cambridge package for Calculation of Anisotropic Site Properties&lt;br /&gt;
From Anthony Stone&#039;s website: &#039;CamCASP is a collection of scripts and programs written by Dr Alston Misquitta and myself for the calculation ab initio of distributed multipoles, polarizabilities, dispersion coefficients and repulsion parameters for individual molecules, and interaction energies between pairs of molecules using SAPT(DFT).&#039;&lt;br /&gt;
* [http://www-stone.ch.cam.ac.uk/programs.html CamCASP home]&lt;br /&gt;
* [[CamCASP/Programming]]&lt;br /&gt;
* [[CamCASP/Programming/5/example1]]&lt;br /&gt;
* [[CamCASP/Notes]]&lt;br /&gt;
* [[CamCASP/Bugs]]&lt;br /&gt;
* [[CamCASP/ToDo/diskIO]]&lt;br /&gt;
* [[CamCASP/ToDo/Memory]]&lt;br /&gt;
* [[CamCASP/CodeExamples/DirectAccess]]&lt;br /&gt;
&lt;br /&gt;
=== [[CPMD]] ===&lt;br /&gt;
Implementation of DFT for &#039;&#039;ab-initio&#039;&#039; molecular dynamics.&lt;br /&gt;
* [http://www.cpmd.org/ Home Page]&lt;br /&gt;
* [[CPMDInput]]&lt;br /&gt;
&lt;br /&gt;
=== [[CHARMM]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [https://www.charmm.org/charmm/?CFID=65f7b3aa-8037-452a-bcd1-7583dd83a087&amp;amp;CFTOKEN=0 CHARMM]&lt;br /&gt;
* [[Generating pdb, crd and psf for a peptide sequence]]&lt;br /&gt;
* [[Converting between &#039;.crd&#039; and &#039;.pdb&#039;]]&lt;br /&gt;
* [[Calculating energy of a conformation]]&lt;br /&gt;
* [[Calculating molecular properties]]&lt;br /&gt;
* [[Calculating order parameters]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
* [[Setting up (CHARMM)]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
&lt;br /&gt;
=== [[disconnectionDPS]] ===&lt;br /&gt;
Produces disconnectivity graphs from min.data and ts.data files. This is included in the Wales group public tarball.&lt;br /&gt;
* [[Constructing Free Energy Disconnectivity Graphs]]&lt;br /&gt;
&lt;br /&gt;
=== [[DMACRYS]] ===&lt;br /&gt;
Package which models crystals of rigid molecules.&lt;br /&gt;
* [http://www.chem.ucl.ac.uk/cposs/dmacrys/index.html Home Page]&lt;br /&gt;
* [[DMACRYS interface]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
&lt;br /&gt;
=== [[GAMESS]] ===&lt;br /&gt;
General &#039;&#039;ab initio&#039;&#039; quantum chemistry package.&lt;br /&gt;
* [https://www.msg.chem.iastate.edu/gamess/ GAMESS]&lt;br /&gt;
&lt;br /&gt;
=== [[Gaussian]] ===&lt;br /&gt;
General purpose package for computational chemistry calculations.&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
&lt;br /&gt;
=== [[gnuplot]] ===&lt;br /&gt;
Open source graphing program.&lt;br /&gt;
* [http://www.gnuplot.info/ gnuplot]&lt;br /&gt;
* [[Plotting a quick histogram in gnuplot using the raw data]]&lt;br /&gt;
* [[Plotting data in real time]]&lt;br /&gt;
* [[Linear and non-linear regression in gnuplot]]&lt;br /&gt;
&lt;br /&gt;
=== [[GROMACS]] ===&lt;br /&gt;
Molecular dynamics package.&lt;br /&gt;
* [[Installing GROMACS on Clust]]&lt;br /&gt;
* [http://www.mdtutorials.com/gmx/ External tutorials]&lt;br /&gt;
* [http://www.gromacs.org/Documentation/Tutorials More external tutorials]&lt;br /&gt;
&lt;br /&gt;
=== [[HiRE-RNA]] ===&lt;br /&gt;
High-res course-grained energy model for RNA.&lt;br /&gt;
* [https://pubs.acs.org/doi/10.1021/jp102497y Explanatory Paper]&lt;br /&gt;
&lt;br /&gt;
=== [[latex2html]] ===&lt;br /&gt;
Script which converts latex documents into HTML pages.&lt;br /&gt;
* [https://www.latex2html.org/ Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[MMTSB-toolset]] ===&lt;br /&gt;
Group of perl scripts which can be used to setup and run energy minimization, structural analysis and MD with CHARMM or AMBER.&lt;br /&gt;
* [http://feig.bch.msu.edu/mmtsb/Main_Page Documentation]&lt;br /&gt;
* [http://www.mmtsb.org/workshops/mmtsb-ctbp_2006/Tutorials/WorkshopTutorials_2006.html External tutorials]&lt;br /&gt;
* [[Installing and setting up the MMTSB toolset]]&lt;br /&gt;
* [[REX (Replica EXchange MD) with the MMTSB-toolset]]&lt;br /&gt;
&lt;br /&gt;
=== [[Simulations using OPEP | OPEP]] ===&lt;br /&gt;
OPEP is a coarse-grained force field providing a potential for proteins and RNA.&lt;br /&gt;
* [http://opep.galaxy.ibpc.fr/ OPEP file generator here]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
&lt;br /&gt;
=== [[pgprof]] === &lt;br /&gt;
Profiler for portland-compiled codes&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
=== [[Pymol]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [https://pymol.org/2/ PyMOL]&lt;br /&gt;
* [https://pymolwiki.org/index.php/Main_Page PyMOL Community Wiki]&lt;br /&gt;
* [[loading AMBER prmtop and inpcrd files into Pymol]]&lt;br /&gt;
* [[producing sexy ray-traced images]]&lt;br /&gt;
* [[advanced colouring]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[path2pdb.py]] - A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
=== [[VASP]] ===&lt;br /&gt;
OPTIM has an interface to VASP, which is installed on CSD3. In collaboration with Bora Karasulu the interface has been updated to use VASP format POSCAR input files for both single- and double-ended optimisations and path searches. The OPTIM odata file requires a line like&lt;br /&gt;
&lt;br /&gt;
VASP &#039;mpirun -ppn 16 -np 16 /home/bk393/APPS/vasp.5.4.4/with-VTST/bin/vasp_std &amp;gt; vasp.out&#039;&lt;br /&gt;
&lt;br /&gt;
POSCAR files can be visualised using ase, the Atomic Simulation Environment, which can be accessed on volkhan via&lt;br /&gt;
&lt;br /&gt;
module load anaconda/python3/5.3.0 &lt;br /&gt;
&lt;br /&gt;
pip install ase --user&lt;br /&gt;
&lt;br /&gt;
ase-gui POSCAR1.vasp &amp;amp;&lt;br /&gt;
&lt;br /&gt;
which assumes that ~/.input/bin is in your $PATH environment variable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[VMD]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [http://www.ks.uiuc.edu/Research/vmd/current/ug/ug.html Documentation]&lt;br /&gt;
* [http://www.ks.uiuc.edu/Training/Tutorials/vmd/tutorial-html/index.html External tutorials]&lt;br /&gt;
* [[using VMD to display and manipulate &#039;.pdb&#039; files]]&lt;br /&gt;
* [[loading coordinate files into VMD with the help of an AMBER topology file]] e.g. to visualise the results of a GMIN run using AMBER9&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
=== [[xfig]] ===&lt;br /&gt;
Open source vector graphics editor&lt;br /&gt;
* [https://ctan.org/tex-archive/support/epstopdf/ Convert eps to pdf]&lt;br /&gt;
&lt;br /&gt;
=== [[Xmakemol]] ===&lt;br /&gt;
Program for visualising atomic and molecular systems.&lt;br /&gt;
* [https://www.nongnu.org/xmakemol/ XMakemol]&lt;br /&gt;
&lt;br /&gt;
=== [[xmgrace]] ===&lt;br /&gt;
2D plotting tool.&lt;br /&gt;
* [http://exciting-code.org/xmgrace-quickstart Xmgrace]&lt;br /&gt;
&lt;br /&gt;
== Theoretical/Mathematical Notes ==&lt;br /&gt;
&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[Ellipsoid.model]]&lt;br /&gt;
* [[Ellipsoid.model.xyz]]&lt;br /&gt;
* [[Ellipsoid.xyz]]&lt;br /&gt;
* [[Gencoords]]&lt;br /&gt;
* [[GenCoords]]&lt;br /&gt;
* [[GenCoords Models]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
=== Angle-axis notes ===&lt;br /&gt;
&lt;br /&gt;
* [[Angle-axis framework]]&lt;br /&gt;
* [[Computing normal modes in angle-axis]]&lt;br /&gt;
&lt;br /&gt;
=== Rigid Bodies ===&lt;br /&gt;
&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[Rigid body input files for proteins using genrigid-input.py]]&lt;br /&gt;
* [[Local Rigid Body Framework]]&lt;br /&gt;
* [[Local rigid body in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
== Useful Scripts ==&lt;br /&gt;
* [[perm-prmtop.py]]: A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[colourdiscon.py]]: A python program for sorting input for disconnectivity graphs&lt;br /&gt;
* [[pdb_to_movie.py]]: A python program to create an AMH movieseg file from a PDB file&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
* [[recommended bash aliases]]&lt;br /&gt;
* [[David&#039;s .inputrc file]]&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[GenCoords]]: A fortran program to generate coarse grain building blocks and initial coords using a set of geometric models.&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
See also the SCRIPTS/ directory in the SVN repository!&lt;br /&gt;
* [[Computing CHARMM FF energy using GMIN, MMTSB and CHARMM]] - Computes the Charmm FF energy of the same structure. Useful for cross-validating force field settings in GMIN data file, CHARMM input file and MMTSB options.&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
* [[Parameter-scanning script]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
* [http://www.ch.cam.ac.uk/computing/theory-compute-clusters The Theory Compute Clusters support page]. Contains useful cluster specific information, including example job submission scripts.&lt;br /&gt;
&lt;br /&gt;
* A useful website which contains AMBER (GAFF) and OPLS parameters for small molecules. http://virtualchemistry.org/gmld.php . This could save us lot of time while trying to derive parameters on our own. If you are lucky, the molecule of your interest may already be there in the existing database. The topology files are in GROMACS format but possibly can be converted into AMBER parameter files. (script anyone ?)&lt;br /&gt;
&lt;br /&gt;
* The moving-domain QM/MM method developed by Victor Batista&#039;s group http://gascon.chem.uconn.edu/software. This approach can be used in the derivation of charges for large proteins and nucleic acids, where a full-fledged ONIOM based calculation is comptutationally prohibitive. It has been applied to systems like the Gramicidin ion channel and Photosystem II.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
* [[Animated GIF on the group website]]&lt;br /&gt;
* [[Backup strategy]]&lt;br /&gt;
* [[Chain crossing]]&lt;br /&gt;
* [[Computer Office services]]&lt;br /&gt;
* [[Computing values only once]]&lt;br /&gt;
* [[Decoding heat capacity curves]]&lt;br /&gt;
* [[Differences from Clust]]&lt;br /&gt;
* [[Fixing thunderbird links]]&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Intel Trace Analyzer and Collector]]&lt;br /&gt;
* [[LDAP plans]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Mek-quake Queueing system]]&lt;br /&gt;
* [[Mek-quake initial setup notes]]&lt;br /&gt;
* [[New mek-quake]]&lt;br /&gt;
* [[Maui compilation]]&lt;br /&gt;
* [[Torque and Maui]]&lt;br /&gt;
* [[Mercurial]]&lt;br /&gt;
* [[Migrating to the new SVN server]]&lt;br /&gt;
* [[NECI Parallelization]]&lt;br /&gt;
* [[Optimization tricks]]&lt;br /&gt;
* [[Other IT stuff]]&lt;br /&gt;
* [[Porfuncs Documentation]]&lt;br /&gt;
* [[Progress]]&lt;br /&gt;
* [[Proposed changes to backup and archiving]]&lt;br /&gt;
* [[Rama upgrade]]&lt;br /&gt;
* [[Remastering Knoppix]]&lt;br /&gt;
* [[See unpacked nodes]]&lt;br /&gt;
* [[Tardis scheduling policy]]&lt;br /&gt;
* [[Zippo Sicortex machine]]&lt;br /&gt;
* [[Beginner&#039;s guide to working in Wales group]]&lt;br /&gt;
&lt;br /&gt;
== Useful linux stuff ==&lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
* [[basic linux commands everyone should know!]]&lt;br /&gt;
* [[piping and redirecting output from one command or file to another]] - how to save yourself hours!&lt;br /&gt;
* [[bash loop tricks]]&lt;br /&gt;
* [[bash history searching]]&lt;br /&gt;
&lt;br /&gt;
===Remote access===&lt;br /&gt;
* [[setting up aliases to quickly log you in to a different machine]]&lt;br /&gt;
* [[transfering files to and from your workstation]] -using &#039;&#039;scp&#039;&#039; or &#039;&#039;rsync&#039;&#039;&lt;br /&gt;
* [[using &#039;ssh-keygen&#039; to automatically log you into clusters from your workstation]] (no more typing in your password!)&lt;br /&gt;
* [[mounting sharedscratch locally]]&lt;br /&gt;
&lt;br /&gt;
===Find and replace===&lt;br /&gt;
* [[short &#039;sed&#039; examples]]&lt;br /&gt;
* [[quick guide to awk]]&lt;br /&gt;
* [[short &#039;awk&#039; examples]]&lt;br /&gt;
&lt;br /&gt;
===File manipulation===&lt;br /&gt;
* [[sorting a file by multiple columns]]&lt;br /&gt;
* [[using tar and gzip to compress/uncompress files | using tar and bzip2 to compress/uncompress files]]&lt;br /&gt;
* [[conversion between different data file formats]] -&#039;almost one-line&#039; scripts&lt;br /&gt;
* [[conversion between different image file formats]] - the &#039;&#039;convert&#039;&#039; command&lt;br /&gt;
* [[removing an excessive number of files from a directory - when &#039;rm&#039; just isn&#039;t enough]]&lt;br /&gt;
&lt;br /&gt;
===Cluster queues===&lt;br /&gt;
* [[submitting jobs, interactively or to a cluster queue system]]&lt;br /&gt;
* [[identifying job on a node]] - if you need to kill only one of few running jobs&lt;br /&gt;
* [[a guide to using SLURM to run PATHSAMPLE]]&lt;br /&gt;
* [[a guide to using SLURM to run GPU jobs on pat]]&lt;br /&gt;
* [[managing interactive jobs on cluster]]&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous/uncategorised===&lt;br /&gt;
* [[installing packages on your managed CUC3 workstation]]&lt;br /&gt;
* [[running programs in the background]] - so you can use your shell for other things at the same time&lt;br /&gt;
* [[finding bugs in latex documents that will not compile]]&lt;br /&gt;
* [[printing files from the command line using &#039;lpr&#039;]]&lt;br /&gt;
* [[uploading non image files to the wiki]]&lt;br /&gt;
&lt;br /&gt;
== Compiler Flags ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiler Flags]]&lt;br /&gt;
* [[Blacklisting Compilers]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
== SuSE ==&lt;br /&gt;
&lt;br /&gt;
* [[Upgrading destiny]]&lt;br /&gt;
* [[Upgrading sword]]&lt;br /&gt;
* [[SuSE 10.1 workstation image]]&lt;br /&gt;
* [[SuSE 10.2 workstation image]]&lt;br /&gt;
* [[SuSE 10.3 workstation image]]&lt;br /&gt;
* [[SuSE 11.1]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:adk44|adk44]] 17.00, 9 May 2019 (BST)&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1596</id>
		<title>Interactive jobs on cluster</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1596"/>
		<updated>2020-05-18T11:09:53Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to kill a particular job. The following bash commands are useful for this purpose: top, ps and kill.&lt;br /&gt;
&lt;br /&gt;
===top===&lt;br /&gt;
&amp;lt;b&amp;gt;top &amp;lt;/b&amp;gt; command is used to list the processes running on the system in real time. To exit from the top window press &amp;lt;b&amp;gt;q&amp;lt;/b&amp;gt; . top command has several useful options.&lt;br /&gt;
* &amp;lt;b&amp;gt;top -u CRSid &amp;lt;/b&amp;gt; is used to list the jobs of a particular user.&lt;br /&gt;
* &amp;lt;b&amp;gt; top -n 1 -b &amp;gt; output &amp;lt;/b&amp;gt; can be used to save the top window to a file.&lt;br /&gt;
In top window itself&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;z &amp;lt;/b&amp;gt; highlights the running process.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;c &amp;lt;/b&amp;gt; shows absolute path of all running processes.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;k &amp;lt;/b&amp;gt; displays a line in top window where the process id (pid) of the process that needs to be killed can be directly entered and when asked about confirmation simply press &amp;lt;b&amp;gt;y &amp;lt;/b&amp;gt; to kill the process.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;Shift+o &amp;lt;/b&amp;gt; opens a new window with several options along with the corresponding letter that needs to be pressed to sort the top window based on a particular column. For example to sort all processes depending on memory usage i.e. %MEM press &amp;lt;b&amp;gt; shift+o, n &amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt; Enter &amp;lt;/b&amp;gt;.&lt;br /&gt;
There is a lot more that can be done using top and more information can be found on its man page.&lt;br /&gt;
&lt;br /&gt;
===ps===&lt;br /&gt;
ps stands for process status. One of its use can be to view the jobs of a particular user.&lt;br /&gt;
&amp;lt;pre&amp;gt; ps aux | egrep CRSid &amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; ps aux &amp;lt;/b&amp;gt; displays all processes along with usernames and &amp;lt;b&amp;gt; egrep CRSid &amp;lt;/b&amp;gt; can be used to extract processes belonging to a particular user.&lt;br /&gt;
===kill===&lt;br /&gt;
kill can be used to kill a process. When running an interactive job, its execution can be stopped by pressing &amp;lt;b&amp;gt;Ctrl+z&amp;lt;/b&amp;gt; and then kill command can be used.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 kill signal pid &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; kill -9 pid &amp;lt;/b&amp;gt;can be used to kill the process immediately. The option -9 stands for SIGKILL. More information about different types of signals can be found here https://en.wikipedia.org/wiki/Signal_(IPC)#List_of_signals&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1595</id>
		<title>Interactive jobs on cluster</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1595"/>
		<updated>2020-05-18T11:08:13Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to kill a particular job. The following bash commands are useful for this purpose: top, ps and kill.&lt;br /&gt;
&lt;br /&gt;
===top===&lt;br /&gt;
&amp;lt;b&amp;gt;top &amp;lt;/b&amp;gt; command is used to list the processes running on the system in real time. To exit from the top window press &amp;lt;b&amp;gt;q&amp;lt;/b&amp;gt; . top command has several useful options.&lt;br /&gt;
* &amp;lt;b&amp;gt;top -u CRSid &amp;lt;/b&amp;gt; is used to list the jobs of a particular user&lt;br /&gt;
* &amp;lt;b&amp;gt; top -n 1 -b &amp;gt; output &amp;lt;/b&amp;gt; can be used to save the top window to a file&lt;br /&gt;
In top window itself&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;z &amp;lt;/b&amp;gt; highlights the running process&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;c &amp;lt;/b&amp;gt; shows absolute path of all running processes&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;k &amp;lt;/b&amp;gt; displays a line in top window where the process id (pid) of the process that needs to be killed can be directly entered and when asked about confirmation simply press &amp;lt;b&amp;gt;y &amp;lt;/b&amp;gt; to kill the process.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;Shift+o &amp;lt;/b&amp;gt; opens a new window with several options along with the corresponding letter that needs to be pressed to sort the top window based on a particular column. For example to sort all processes depending on memory usage i.e. %MEM press &amp;lt;b&amp;gt; shift+o, n &amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt; Enter &amp;lt;/b&amp;gt;.&lt;br /&gt;
There is a lot more that can be done using top and more information can be found on its man page.&lt;br /&gt;
&lt;br /&gt;
===ps===&lt;br /&gt;
ps stands for process status. One of its use can be to view the jobs of a particular user.&lt;br /&gt;
&amp;lt;pre&amp;gt; ps aux | egrep CRSid &amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; ps aux &amp;lt;/b&amp;gt; displays all processes along with usernames and &amp;lt;b&amp;gt; egrep CRSid &amp;lt;/b&amp;gt; can be used to extract processes belonging to a particular user.&lt;br /&gt;
===kill===&lt;br /&gt;
kill can be used to kill a process. When running an interactive job, its execution can be stopped by pressing &amp;lt;b&amp;gt;Ctrl+z&amp;lt;/b&amp;gt; and then kill command can be used.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 kill signal pid &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; kill -9 pid &amp;lt;/b&amp;gt;can be used to kill the process immediately. The option -9 stands for SIGKILL. More information about different types of signals can be found here https://en.wikipedia.org/wiki/Signal_(IPC)#List_of_signals&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1594</id>
		<title>Interactive jobs on cluster</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1594"/>
		<updated>2020-05-18T11:05:30Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to kill a particular job. The following bash commands are useful for the purpose: top, ps and kill.&lt;br /&gt;
&lt;br /&gt;
===top===&lt;br /&gt;
&amp;lt;b&amp;gt;top &amp;lt;/b&amp;gt; command is used to list the processes running on the system in real time. To exit from the top window press &amp;lt;b&amp;gt;q&amp;lt;/b&amp;gt; . top command has several useful options.&lt;br /&gt;
* &amp;lt;b&amp;gt;top -u CRSid &amp;lt;/b&amp;gt; is used to list the jobs of a particular user&lt;br /&gt;
* &amp;lt;b&amp;gt; top -n 1 -b &amp;gt; output &amp;lt;/b&amp;gt; can be used to save the top window to a file&lt;br /&gt;
In top window itself&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;z &amp;lt;/b&amp;gt; highlights the running process&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;c &amp;lt;/b&amp;gt; shows absolute path of all running processes&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;k &amp;lt;/b&amp;gt; displays a line in top window where the process id (pid) of the process that needs to be killed can be directly entered and when asked about confirmation simply press &amp;lt;b&amp;gt;y &amp;lt;/b&amp;gt; to kill the process.&lt;br /&gt;
* pressing &amp;lt;b&amp;gt;Shift+o &amp;lt;/b&amp;gt; opens a new window with several options along with the corresponding letter that needs to be pressed to sort the top window based on a particular column. For example to sort all processes depending on memory usage i.e. %MEM press &amp;lt;b&amp;gt; shift+o, n &amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt; Enter &amp;lt;/b&amp;gt;.&lt;br /&gt;
There is a lot more that can be done using top and more information can be found on its man page.&lt;br /&gt;
&lt;br /&gt;
===ps===&lt;br /&gt;
ps stands for process status. One of its use can be to view the jobs of a particular user.&lt;br /&gt;
&amp;lt;pre&amp;gt; ps aux | egrep CRSid &amp;lt;/pre&amp;gt;&lt;br /&gt;
The a, u and x in aux stand for displaying all processes along with usernames from which processes of a particular user can be extracted using egrep.&lt;br /&gt;
&lt;br /&gt;
===kill===&lt;br /&gt;
kill can be used to kill a process. When running an interactive job, its execution can be stopped by pressing &amp;lt;b&amp;gt;Ctrl+z&amp;lt;/b&amp;gt; and then kill command can be used.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 kill signal pid &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt; kill -9 pid &amp;lt;/b&amp;gt;can be used to kill the process immediately. The option -9 stands for SIGKILL. More information about different types of signals can be found here https://en.wikipedia.org/wiki/Signal_(IPC)#List_of_signals&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1593</id>
		<title>Interactive jobs on cluster</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Interactive_jobs_on_cluster&amp;diff=1593"/>
		<updated>2020-05-18T10:55:31Z</updated>

		<summary type="html">&lt;p&gt;Nn320: Created page with &amp;quot;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When using cluster it is important to know how to manage interactive jobs. We may want to know what all jobs are running, what all jobs a particular user is running and how to kill a particular job. The following bash commands are useful for the purpose: top, ps and kill.&lt;br /&gt;
&lt;br /&gt;
===top===&lt;br /&gt;
top command is used to list the processes running on the system in real time. To exit from the top window press q . top command has several useful options&lt;br /&gt;
* top -u CRSid  is used to list the jobs of a particular user&lt;br /&gt;
* top -n 1 -b &amp;gt; output  can be used to save the top window to a file&lt;br /&gt;
In top window itself&lt;br /&gt;
* pressing z highlights the running process&lt;br /&gt;
* pressing c shows absolute path of all running processes&lt;br /&gt;
* pressing k displays a line in top window where the process id (pid) of the process that needs to be killed can be directly entered and when asked about confirmation simply press y &lt;br /&gt;
* pressing Shift+o opens a new window with several options along with the corresponding letter that needs to be pressed to sort the top window based on a particular column. &lt;br /&gt;
There is a lot more that can be done using top and more information can be found on its man page.&lt;br /&gt;
&lt;br /&gt;
===ps===&lt;br /&gt;
ps stands for process status. One of its use can be to view the jobs of a particular user.&lt;br /&gt;
&amp;lt;pre&amp;gt; ps aux | egrep CRSid &amp;lt;/pre&amp;gt;&lt;br /&gt;
The a, u and x in aux stand for displaying all processes along with usernames and x stands for displaying even those processes not necessarily&lt;br /&gt;
&lt;br /&gt;
===kill===&lt;br /&gt;
kill can be used to kill a process. When running an interactive job, its execution can be stopped by pressing Ctrl+z and then kill command can be used.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 kill signal pid &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
kill -9 pid can be used to kill the process immediately. The option -9 stands for SIGKILL. More information about different types of signals can be found here https://en.wikipedia.org/wiki/Signal_(IPC)#List_of_signals&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1592</id>
		<title>Comprehensive Contents Page</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1592"/>
		<updated>2020-05-18T10:15:33Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Cluster queues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is designed to organise all of the pages on this wiki, as well as provide other useful links. Note that some pages may appear under more than one heading.&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
[[Wales Group]] provides good step-by-step instructions. Relevant pages are:&lt;br /&gt;
&lt;br /&gt;
=== Acquiring and compiling the group software ===&lt;br /&gt;
* [[SVN setup]]&lt;br /&gt;
* [[Wales Group Version control]] - to keep the code standardised.&lt;br /&gt;
* Theory Sector [http://wwmm.ch.cam.ac.uk/wikis/cuc3/index.php/SVN_Page SVN Page] - some useful general information on SVN commands.&lt;br /&gt;
* [[Compiling Wales Group codes using cmake]] - CMake (Cross-platform Make) allows us to compile and test the group codebase regardless of platform. This page provides crucial information how to compile using cmake.&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
&lt;br /&gt;
=== Maintaining code health ===&lt;br /&gt;
* [[Jenkins CI]] - explains Jenkins, which we use to download our code and compile each of our targets with each of the compilers every night.&lt;br /&gt;
* https://wales-jenkins.ch.cam.ac.uk/ - log for our Jenkins tests.&lt;br /&gt;
* [[Branching and Merging]]&lt;br /&gt;
* [[Cmake interface building]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[Revamping the modules system]]&lt;br /&gt;
&lt;br /&gt;
=== Collaborators without access to the SVN repository ===&lt;br /&gt;
For licensing reasons, some code cannot be included in the Wales Group public tarball.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/svn.tar.bz2 - Wales group public tarball. Includes [[GMIN]], [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
If a collaborator has a [[CHARMM]] or [[AMBER]] licence, we do maintain separate tarballs which include the [[CHARMM]], [[AMBER]] and [[CHARMM]]+[[AMBER]] source and interfaces. These are not linked anywhere on the website and require a username (&#039;&#039;&#039;wales&#039;&#039;&#039;) and password (&#039;&#039;&#039;group&#039;&#039;&#039;) to download:&lt;br /&gt;
&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/CHARMM/svn.CHARMM.tar.bz2 CHARMM]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/AMBER/svn.AMBER.tar.bz2 AMBER]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/both/svn.both.tar.bz2 AMBER+CHARMM]&lt;br /&gt;
&lt;br /&gt;
=== Running on Windows ===&lt;br /&gt;
Not particularly recommended.&lt;br /&gt;
* [[Running Wales Group software on Windows 7]]&lt;br /&gt;
&lt;br /&gt;
== Wales Group Programs ==&lt;br /&gt;
&lt;br /&gt;
=== Programs ===&lt;br /&gt;
* [[GMIN]]: A program for finding global minima and calculating thermodynamic properties from basin-sampling.&lt;br /&gt;
* [[OPTIM]]: A program for optimizing geometries and calculating reaction pathways.&lt;br /&gt;
* [[PATHSAMPLE]]: A driver for OPTIM to create stationary point databases using discrete path sampling and perform kinetic analysis.&lt;br /&gt;
* [[Pele]]: Python energy landscape explorer. A pythonic rewrite of some core functionality of GMIN, OPTIM, and PATHSAMPLE. Can be very useful for visualizing your system and for rapidly implementing and testing new ideas.&lt;br /&gt;
&lt;br /&gt;
=== Curated Examples ===&lt;br /&gt;
* https://github.com/wales-group/examples - set of tutorials detailing how to use GMIN, OPTIM and PATHSAMPLE. Essential for beginners.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/VM/Wales_Group_VM.ova - Pre-prepared teaching virtual machine. This contains the code and examples.&lt;br /&gt;
* https://www.virtualbox.org/wiki/Downloads - This is required if using the VM above.&lt;br /&gt;
* https://github.com/wales-group/examples.git - Alternatively, you can run the examples on your own machine. To get hold of the relevant files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/wales-group/examples.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful Notes on Wales Group Programs and Subroutines ==&lt;br /&gt;
=== [[GMIN]] ===&lt;br /&gt;
* [[Adding a model to GMIN]] - rough outline of the subroutines that need to be changed to add a new model to GMIN&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling GMIN using cmake ]]&lt;br /&gt;
* [[Selecting search parameters for GMIN]]&lt;br /&gt;
* [[Global optimization of biomolecules using CHARMM]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9 with Structural Restraints]]&lt;br /&gt;
* [[Calculating binding free energy using the FSA method]]&lt;br /&gt;
* [[Restarting a GMIN run from a dump file]]&lt;br /&gt;
* [[Using the implicit membrane model IMM1]]&lt;br /&gt;
* [[Running a Go model with the AMHGMIN]]&lt;br /&gt;
* [[Running a G\=o model with the AMHGMIN]]&lt;br /&gt;
* [[Ligand binding-mode searches with HBONDMATRIX]]&lt;br /&gt;
* [[Compiling and using GMIN with QUIP]]&lt;br /&gt;
* [[Using GMIN and OPTIM with GPUs]]&lt;br /&gt;
* [[Using GMIN to generate endpoints]]&lt;br /&gt;
* [[Using GMIN to generate endpoints (CHARMM)]]&lt;br /&gt;
* [[Generating a GMIN Eclipse project]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[Keywords]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
&lt;br /&gt;
==== Scripts ====&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
&lt;br /&gt;
==== Useful info for coding GMIN ====&lt;br /&gt;
* [[Program flow]] - contains information about what the various files in GMIN do and what order they&#039;re called. &lt;br /&gt;
* [[amberinterface]]&lt;br /&gt;
&lt;br /&gt;
==== Projects ====&lt;br /&gt;
* [[GMIN MOVES module]]&lt;br /&gt;
* [[GMIN SANITY module]]&lt;br /&gt;
* [[GMIN TESTS module]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
&lt;br /&gt;
=== [[OPTIM]] ===&lt;br /&gt;
* [[Adding a model to OPTIM]] - rough outline of the subrounties that need to be changed to add a new model to OPTIM&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling OPTIM using cmake ]]&lt;br /&gt;
* [[OPTIM/Q-Chem Tutorial]]&lt;br /&gt;
* [[OPTIM and PY ellipsoids tutorial]]&lt;br /&gt;
* [[OPTIM output files]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and AMBER9]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Creating movies (.mpg) of paths using OPTIM]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Debugging odd transition states in OPTIM]]&lt;br /&gt;
* [[Connecting two minima with a pathway]] - step by step&lt;br /&gt;
* [[Compiling and using OPTIM with QUIP]]&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
* [[The effect of calculating less than the maximum number of eigenvalues using ENDHESS n]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
* [[Instanton tunneling and classical rate calculations with OPTIM]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[common setup problem : No Frequency Warning]]&lt;br /&gt;
&lt;br /&gt;
=== [[PATHSAMPLE]] ===&lt;br /&gt;
* [[Adding a model to PATHSAMPLE]] - rough outline of the subrounties that need to be changed to add a new model to PATHSAMPLE&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling PATHSAMPLE using cmake ]]&lt;br /&gt;
* [[IMPORTANT: Using PATHSAMPLE safely on sinister]]&lt;br /&gt;
* [[Adding a model for PATHSAMPLE]]&lt;br /&gt;
* [[List of output files for PATHSAMPLE]]&lt;br /&gt;
* [[Using BHINTERP to find minima between two end points]]&lt;br /&gt;
* [[Finding an initial path between two end points (minima)]]&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[Optimising a path]]&lt;br /&gt;
* [[Fine tuning UNTRAP]] - ensuring that it picks sensible minima&lt;br /&gt;
* [[Calculating rate constants (GT and fastest path)]]&lt;br /&gt;
* [[Calculating rate constants (SGT, DGT, and SDGT)]]&lt;br /&gt;
* [[Identifying the k fastest paths between endpoints using KSHORTESTPATHS]]&lt;br /&gt;
* [[Removing minima and transition states from the database]]&lt;br /&gt;
* [[Relaxing existing minima with new potential and creating new database]]&lt;br /&gt;
* [[Relaxing existing transition states with new potential and creating new database]]&lt;br /&gt;
* [[If things go wrong...]]&lt;br /&gt;
* [[If you lost file min.data, but still you have points.min]]&lt;br /&gt;
* [[path.info file is not read, causes PATHSAMPLE to die]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[When PATHSAMPLE finds a connected path, but using DIJKSTRA 0 fails to find the connected path]]&lt;br /&gt;
* [[Biomolecules in PATHSAMPLE]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[Connecting Sub-databases]]&lt;br /&gt;
&lt;br /&gt;
=== [[Notes on MINPERMDIST | MINPERMDIST]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[Quasi-continuous interpolation for biomolecules | QCI]] ===&lt;br /&gt;
&lt;br /&gt;
== Non-Group Software ==&lt;br /&gt;
&lt;br /&gt;
=== [[AMBER]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [http://ambermd.org/ AMBER]&lt;br /&gt;
* [http://ambermd.org/tutorials/ AMBER tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Notes on AMBER 12 interface]]&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Using Molfacture to edit molecules and add hydrogens]]&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[perm-prmtop.py]] - A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Creating mismatched DNA duplex using NAB]]&lt;br /&gt;
&lt;br /&gt;
=== [[aux2bib]] === &lt;br /&gt;
To generate a bib file containing only the entries cited in a given .tex file from a larger bib or multiple bib files.&lt;br /&gt;
* [https://ctan.org/pkg/bibtools Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[CamCasp]] ===&lt;br /&gt;
Cambridge package for Calculation of Anisotropic Site Properties&lt;br /&gt;
From Anthony Stone&#039;s website: &#039;CamCASP is a collection of scripts and programs written by Dr Alston Misquitta and myself for the calculation ab initio of distributed multipoles, polarizabilities, dispersion coefficients and repulsion parameters for individual molecules, and interaction energies between pairs of molecules using SAPT(DFT).&#039;&lt;br /&gt;
* [http://www-stone.ch.cam.ac.uk/programs.html CamCASP home]&lt;br /&gt;
* [[CamCASP/Programming]]&lt;br /&gt;
* [[CamCASP/Programming/5/example1]]&lt;br /&gt;
* [[CamCASP/Notes]]&lt;br /&gt;
* [[CamCASP/Bugs]]&lt;br /&gt;
* [[CamCASP/ToDo/diskIO]]&lt;br /&gt;
* [[CamCASP/ToDo/Memory]]&lt;br /&gt;
* [[CamCASP/CodeExamples/DirectAccess]]&lt;br /&gt;
&lt;br /&gt;
=== [[CPMD]] ===&lt;br /&gt;
Implementation of DFT for &#039;&#039;ab-initio&#039;&#039; molecular dynamics.&lt;br /&gt;
* [http://www.cpmd.org/ Home Page]&lt;br /&gt;
* [[CPMDInput]]&lt;br /&gt;
&lt;br /&gt;
=== [[CHARMM]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [https://www.charmm.org/charmm/?CFID=65f7b3aa-8037-452a-bcd1-7583dd83a087&amp;amp;CFTOKEN=0 CHARMM]&lt;br /&gt;
* [[Generating pdb, crd and psf for a peptide sequence]]&lt;br /&gt;
* [[Converting between &#039;.crd&#039; and &#039;.pdb&#039;]]&lt;br /&gt;
* [[Calculating energy of a conformation]]&lt;br /&gt;
* [[Calculating molecular properties]]&lt;br /&gt;
* [[Calculating order parameters]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
* [[Setting up (CHARMM)]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
&lt;br /&gt;
=== [[disconnectionDPS]] ===&lt;br /&gt;
Produces disconnectivity graphs from min.data and ts.data files. This is included in the Wales group public tarball.&lt;br /&gt;
* [[Constructing Free Energy Disconnectivity Graphs]]&lt;br /&gt;
&lt;br /&gt;
=== [[DMACRYS]] ===&lt;br /&gt;
Package which models crystals of rigid molecules.&lt;br /&gt;
* [http://www.chem.ucl.ac.uk/cposs/dmacrys/index.html Home Page]&lt;br /&gt;
* [[DMACRYS interface]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
&lt;br /&gt;
=== [[GAMESS]] ===&lt;br /&gt;
General &#039;&#039;ab initio&#039;&#039; quantum chemistry package.&lt;br /&gt;
* [https://www.msg.chem.iastate.edu/gamess/ GAMESS]&lt;br /&gt;
&lt;br /&gt;
=== [[Gaussian]] ===&lt;br /&gt;
General purpose package for computational chemistry calculations.&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
&lt;br /&gt;
=== [[gnuplot]] ===&lt;br /&gt;
Open source graphing program.&lt;br /&gt;
* [http://www.gnuplot.info/ gnuplot]&lt;br /&gt;
* [[Plotting a quick histogram in gnuplot using the raw data]]&lt;br /&gt;
* [[Plotting data in real time]]&lt;br /&gt;
* [[Linear and non-linear regression in gnuplot]]&lt;br /&gt;
&lt;br /&gt;
=== [[GROMACS]] ===&lt;br /&gt;
Molecular dynamics package.&lt;br /&gt;
* [[Installing GROMACS on Clust]]&lt;br /&gt;
* [http://www.mdtutorials.com/gmx/ External tutorials]&lt;br /&gt;
* [http://www.gromacs.org/Documentation/Tutorials More external tutorials]&lt;br /&gt;
&lt;br /&gt;
=== [[HiRE-RNA]] ===&lt;br /&gt;
High-res course-grained energy model for RNA.&lt;br /&gt;
* [https://pubs.acs.org/doi/10.1021/jp102497y Explanatory Paper]&lt;br /&gt;
&lt;br /&gt;
=== [[latex2html]] ===&lt;br /&gt;
Script which converts latex documents into HTML pages.&lt;br /&gt;
* [https://www.latex2html.org/ Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[MMTSB-toolset]] ===&lt;br /&gt;
Group of perl scripts which can be used to setup and run energy minimization, structural analysis and MD with CHARMM or AMBER.&lt;br /&gt;
* [http://feig.bch.msu.edu/mmtsb/Main_Page Documentation]&lt;br /&gt;
* [http://www.mmtsb.org/workshops/mmtsb-ctbp_2006/Tutorials/WorkshopTutorials_2006.html External tutorials]&lt;br /&gt;
* [[Installing and setting up the MMTSB toolset]]&lt;br /&gt;
* [[REX (Replica EXchange MD) with the MMTSB-toolset]]&lt;br /&gt;
&lt;br /&gt;
=== [[Simulations using OPEP | OPEP]] ===&lt;br /&gt;
OPEP is a coarse-grained force field providing a potential for proteins and RNA.&lt;br /&gt;
* [http://opep.galaxy.ibpc.fr/ OPEP file generator here]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
&lt;br /&gt;
=== [[pgprof]] === &lt;br /&gt;
Profiler for portland-compiled codes&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
=== [[Pymol]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [https://pymol.org/2/ PyMOL]&lt;br /&gt;
* [https://pymolwiki.org/index.php/Main_Page PyMOL Community Wiki]&lt;br /&gt;
* [[loading AMBER prmtop and inpcrd files into Pymol]]&lt;br /&gt;
* [[producing sexy ray-traced images]]&lt;br /&gt;
* [[advanced colouring]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[path2pdb.py]] - A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
=== [[VASP]] ===&lt;br /&gt;
OPTIM has an interface to VASP, which is installed on CSD3. In collaboration with Bora Karasulu the interface has been updated to use VASP format POSCAR input files for both single- and double-ended optimisations and path searches. The OPTIM odata file requires a line like&lt;br /&gt;
&lt;br /&gt;
VASP &#039;mpirun -ppn 16 -np 16 /home/bk393/APPS/vasp.5.4.4/with-VTST/bin/vasp_std &amp;gt; vasp.out&#039;&lt;br /&gt;
&lt;br /&gt;
POSCAR files can be visualised using ase, the Atomic Simulation Environment, which can be accessed on volkhan via&lt;br /&gt;
&lt;br /&gt;
module load anaconda/python3/5.3.0 &lt;br /&gt;
&lt;br /&gt;
pip install ase --user&lt;br /&gt;
&lt;br /&gt;
ase-gui POSCAR1.vasp &amp;amp;&lt;br /&gt;
&lt;br /&gt;
which assumes that ~/.input/bin is in your $PATH environment variable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[VMD]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [http://www.ks.uiuc.edu/Research/vmd/current/ug/ug.html Documentation]&lt;br /&gt;
* [http://www.ks.uiuc.edu/Training/Tutorials/vmd/tutorial-html/index.html External tutorials]&lt;br /&gt;
* [[using VMD to display and manipulate &#039;.pdb&#039; files]]&lt;br /&gt;
* [[loading coordinate files into VMD with the help of an AMBER topology file]] e.g. to visualise the results of a GMIN run using AMBER9&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
=== [[xfig]] ===&lt;br /&gt;
Open source vector graphics editor&lt;br /&gt;
* [https://ctan.org/tex-archive/support/epstopdf/ Convert eps to pdf]&lt;br /&gt;
&lt;br /&gt;
=== [[Xmakemol]] ===&lt;br /&gt;
Program for visualising atomic and molecular systems.&lt;br /&gt;
* [https://www.nongnu.org/xmakemol/ XMakemol]&lt;br /&gt;
&lt;br /&gt;
=== [[xmgrace]] ===&lt;br /&gt;
2D plotting tool.&lt;br /&gt;
* [http://exciting-code.org/xmgrace-quickstart Xmgrace]&lt;br /&gt;
&lt;br /&gt;
== Theoretical/Mathematical Notes ==&lt;br /&gt;
&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[Ellipsoid.model]]&lt;br /&gt;
* [[Ellipsoid.model.xyz]]&lt;br /&gt;
* [[Ellipsoid.xyz]]&lt;br /&gt;
* [[Gencoords]]&lt;br /&gt;
* [[GenCoords]]&lt;br /&gt;
* [[GenCoords Models]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
=== Angle-axis notes ===&lt;br /&gt;
&lt;br /&gt;
* [[Angle-axis framework]]&lt;br /&gt;
* [[Computing normal modes in angle-axis]]&lt;br /&gt;
&lt;br /&gt;
=== Rigid Bodies ===&lt;br /&gt;
&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[Rigid body input files for proteins using genrigid-input.py]]&lt;br /&gt;
* [[Local Rigid Body Framework]]&lt;br /&gt;
* [[Local rigid body in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
== Useful Scripts ==&lt;br /&gt;
* [[perm-prmtop.py]]: A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[colourdiscon.py]]: A python program for sorting input for disconnectivity graphs&lt;br /&gt;
* [[pdb_to_movie.py]]: A python program to create an AMH movieseg file from a PDB file&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
* [[recommended bash aliases]]&lt;br /&gt;
* [[David&#039;s .inputrc file]]&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[GenCoords]]: A fortran program to generate coarse grain building blocks and initial coords using a set of geometric models.&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
See also the SCRIPTS/ directory in the SVN repository!&lt;br /&gt;
* [[Computing CHARMM FF energy using GMIN, MMTSB and CHARMM]] - Computes the Charmm FF energy of the same structure. Useful for cross-validating force field settings in GMIN data file, CHARMM input file and MMTSB options.&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
* [[Parameter-scanning script]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
* [http://www.ch.cam.ac.uk/computing/theory-compute-clusters The Theory Compute Clusters support page]. Contains useful cluster specific information, including example job submission scripts.&lt;br /&gt;
&lt;br /&gt;
* A useful website which contains AMBER (GAFF) and OPLS parameters for small molecules. http://virtualchemistry.org/gmld.php . This could save us lot of time while trying to derive parameters on our own. If you are lucky, the molecule of your interest may already be there in the existing database. The topology files are in GROMACS format but possibly can be converted into AMBER parameter files. (script anyone ?)&lt;br /&gt;
&lt;br /&gt;
* The moving-domain QM/MM method developed by Victor Batista&#039;s group http://gascon.chem.uconn.edu/software. This approach can be used in the derivation of charges for large proteins and nucleic acids, where a full-fledged ONIOM based calculation is comptutationally prohibitive. It has been applied to systems like the Gramicidin ion channel and Photosystem II.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
* [[Animated GIF on the group website]]&lt;br /&gt;
* [[Backup strategy]]&lt;br /&gt;
* [[Chain crossing]]&lt;br /&gt;
* [[Computer Office services]]&lt;br /&gt;
* [[Computing values only once]]&lt;br /&gt;
* [[Decoding heat capacity curves]]&lt;br /&gt;
* [[Differences from Clust]]&lt;br /&gt;
* [[Fixing thunderbird links]]&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Intel Trace Analyzer and Collector]]&lt;br /&gt;
* [[LDAP plans]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Mek-quake Queueing system]]&lt;br /&gt;
* [[Mek-quake initial setup notes]]&lt;br /&gt;
* [[New mek-quake]]&lt;br /&gt;
* [[Maui compilation]]&lt;br /&gt;
* [[Torque and Maui]]&lt;br /&gt;
* [[Mercurial]]&lt;br /&gt;
* [[Migrating to the new SVN server]]&lt;br /&gt;
* [[NECI Parallelization]]&lt;br /&gt;
* [[Optimization tricks]]&lt;br /&gt;
* [[Other IT stuff]]&lt;br /&gt;
* [[Porfuncs Documentation]]&lt;br /&gt;
* [[Progress]]&lt;br /&gt;
* [[Proposed changes to backup and archiving]]&lt;br /&gt;
* [[Rama upgrade]]&lt;br /&gt;
* [[Remastering Knoppix]]&lt;br /&gt;
* [[See unpacked nodes]]&lt;br /&gt;
* [[Tardis scheduling policy]]&lt;br /&gt;
* [[Zippo Sicortex machine]]&lt;br /&gt;
* [[Beginner&#039;s guide to working in Wales group]]&lt;br /&gt;
&lt;br /&gt;
== Useful linux stuff ==&lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
* [[basic linux commands everyone should know!]]&lt;br /&gt;
* [[piping and redirecting output from one command or file to another]] - how to save yourself hours!&lt;br /&gt;
* [[bash loop tricks]]&lt;br /&gt;
* [[bash history searching]]&lt;br /&gt;
&lt;br /&gt;
===Remote access===&lt;br /&gt;
* [[setting up aliases to quickly log you in to a different machine]]&lt;br /&gt;
* [[transfering files to and from your workstation]] -using &#039;&#039;scp&#039;&#039; or &#039;&#039;rsync&#039;&#039;&lt;br /&gt;
* [[using &#039;ssh-keygen&#039; to automatically log you into clusters from your workstation]] (no more typing in your password!)&lt;br /&gt;
* [[mounting sharedscratch locally]]&lt;br /&gt;
&lt;br /&gt;
===Find and replace===&lt;br /&gt;
* [[short &#039;sed&#039; examples]]&lt;br /&gt;
* [[quick guide to awk]]&lt;br /&gt;
* [[short &#039;awk&#039; examples]]&lt;br /&gt;
&lt;br /&gt;
===File manipulation===&lt;br /&gt;
* [[sorting a file by multiple columns]]&lt;br /&gt;
* [[using tar and gzip to compress/uncompress files | using tar and bzip2 to compress/uncompress files]]&lt;br /&gt;
* [[conversion between different data file formats]] -&#039;almost one-line&#039; scripts&lt;br /&gt;
* [[conversion between different image file formats]] - the &#039;&#039;convert&#039;&#039; command&lt;br /&gt;
* [[removing an excessive number of files from a directory - when &#039;rm&#039; just isn&#039;t enough]]&lt;br /&gt;
&lt;br /&gt;
===Cluster queues===&lt;br /&gt;
* [[submitting jobs, interactively or to a cluster queue system]]&lt;br /&gt;
* [[identifying job on a node]] - if you need to kill only one of few running jobs&lt;br /&gt;
* [[a guide to using SLURM to run PATHSAMPLE]]&lt;br /&gt;
* [[a guide to using SLURM to run GPU jobs on pat]]&lt;br /&gt;
* [[interactive jobs on cluster]]&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous/uncategorised===&lt;br /&gt;
* [[installing packages on your managed CUC3 workstation]]&lt;br /&gt;
* [[running programs in the background]] - so you can use your shell for other things at the same time&lt;br /&gt;
* [[finding bugs in latex documents that will not compile]]&lt;br /&gt;
* [[printing files from the command line using &#039;lpr&#039;]]&lt;br /&gt;
* [[uploading non image files to the wiki]]&lt;br /&gt;
&lt;br /&gt;
== Compiler Flags ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiler Flags]]&lt;br /&gt;
* [[Blacklisting Compilers]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
== SuSE ==&lt;br /&gt;
&lt;br /&gt;
* [[Upgrading destiny]]&lt;br /&gt;
* [[Upgrading sword]]&lt;br /&gt;
* [[SuSE 10.1 workstation image]]&lt;br /&gt;
* [[SuSE 10.2 workstation image]]&lt;br /&gt;
* [[SuSE 10.3 workstation image]]&lt;br /&gt;
* [[SuSE 11.1]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:adk44|adk44]] 17.00, 9 May 2019 (BST)&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1589</id>
		<title>Beginner&#039;s guide to working in Wales group</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1589"/>
		<updated>2020-04-13T18:08:40Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===How to add papers to group bib?===&lt;br /&gt;
*Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password. &lt;br /&gt;
*In your home directory create a working copy of the bib directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~&lt;br /&gt;
svn checkout https://svn.ch.cam.ac.uk/svn/wales/groups/djwpapers/bib&lt;br /&gt;
cd bib&lt;br /&gt;
svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open the file you want to edit using vi, make desired changes and save them. &lt;br /&gt;
Note that bib entry for a paper can easily be obtained by googling the paper first, find the link &#039;cite this&#039; somewhere, choose &#039;Bib Tex&#039; option when asked to select citation manager/file format and then download it (or directly open it) to see the bib entry. For naming the keys follow the group practice as given in https://wikis.ch.cam.ac.uk/wales/wiki/index.php/Wales_Group_Conventions_when_using_LaTex &lt;br /&gt;
*Commit your changes with a descriptive message so that others know why you made this commit.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit -m &amp;quot;Your message here&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further details visit http://subversion.apache.org/quick-start&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1588</id>
		<title>Beginner&#039;s guide to working in Wales group</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1588"/>
		<updated>2020-04-13T15:15:14Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===How to add papers to group bib?===&lt;br /&gt;
*Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password. &lt;br /&gt;
*In your home directory create a working copy of the bib directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~&lt;br /&gt;
svn checkout https://svn.ch.cam.ac.uk/svn/wales/groups/djwpapers/bib&lt;br /&gt;
cd bib&lt;br /&gt;
svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open the file you want to edit using vi, make desired changes and save them. &lt;br /&gt;
Note that bib entry for a paper can easily be obtained by googling the paper first, find the link &#039;cite this&#039; somewhere, choose &#039;Bib Tex&#039; option when asked to select citation manager/file format and then download it (or directly open it) to see the bib entry. For naming the keys follow the group practice as given in https://wikis.ch.cam.ac.uk/wales/wiki/index.php/Wales_Group_Conventions_when_using_LaTex &lt;br /&gt;
*Commit your changes with a descriptive messages so that others know why you made this commit.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit -m &amp;quot;Your message here&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further details visit http://subversion.apache.org/quick-start&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1587</id>
		<title>Beginner&#039;s guide to working in Wales group</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1587"/>
		<updated>2020-04-13T12:27:01Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===How to add papers to group bib?===&lt;br /&gt;
*Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password. &lt;br /&gt;
*In your /scratch directory create a working copy of the directory you want to make changes to.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /scratch/CRSid&lt;br /&gt;
mkdir djwpapers&lt;br /&gt;
cd djwpapers&lt;br /&gt;
svn checkout https://svn.ch.cam.ac.uk/svn/wales/groups/djwpapers/bib&lt;br /&gt;
cd bib&lt;br /&gt;
svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open the file you want to edit using vi, make desired changes and save them. &lt;br /&gt;
Note that bib entry for a paper can easily be obtained by googling the paper first, find the link &#039;cite this&#039; somewhere, choose &#039;Bib Tex&#039; option when asked to select citation manager/file format and then download it (or directly open it) to see the bib entry. &lt;br /&gt;
*Commit your changes with a descriptive messages so that others know why you made this commit.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit -m &amp;quot;Your message here&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Delete the directory you created in scratch once you are done.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm -rf /scratch/CRSid/djwpapers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further details visit http://subversion.apache.org/quick-start&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1586</id>
		<title>Beginner&#039;s guide to working in Wales group</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1586"/>
		<updated>2020-04-13T12:25:54Z</updated>

		<summary type="html">&lt;p&gt;Nn320: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===How to add papers to group bib?===&lt;br /&gt;
*Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password. &lt;br /&gt;
*In your /scratch directory create a working copy of the directory you want to make changes to.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /scratch/CRSid&lt;br /&gt;
mkdir djwpapers&lt;br /&gt;
cd djwpapers&lt;br /&gt;
svn checkout https://svn.ch.cam.ac.uk/svn/wales/groups/djwpapers/bib&lt;br /&gt;
cd bib&lt;br /&gt;
svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open the file you want to edit using vi, make desired changes and save them. &lt;br /&gt;
Note that bib entry for a paper can easily be obtained by googling the paper first, find the link &#039;cite this&#039; somewhere, choose &#039;Bib Tex&#039; option when asked to select citation manager/file format and then download it (or directly open it) to see the bib entry. &lt;br /&gt;
*Commit your changes with a descriptive messages so that others know why you made this commit.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit -m &amp;quot;Your message here&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Delete the directory you created in scratch once you are done.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ..&lt;br /&gt;
rm -rf djwpapers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further details visit http://subversion.apache.org/quick-start&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1585</id>
		<title>Beginner&#039;s guide to working in Wales group</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1585"/>
		<updated>2020-04-13T11:59:15Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* How to add papers to group bib? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===How to add papers to group bib?===&lt;br /&gt;
*Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password. &lt;br /&gt;
*In your /scratch directory create a working copy of the directory you want to make changes to.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /scratch/CRSid&lt;br /&gt;
mkdir djwpapers&lt;br /&gt;
cd djwpapers&lt;br /&gt;
svn checkout https://svn.ch.cam.ac.uk/svn/wales/groups/djwpapers/bib&lt;br /&gt;
cd bib&lt;br /&gt;
svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open the file you want to edit using vi, make desired changes and save them. &lt;br /&gt;
Note that bib entry for a paper can easily be obtained by googling the paper first, find the link &#039;cite this&#039; somewhere, choose &#039;Bib Tex&#039; option when asked to select citation manager/file format and then download it (or directly open it) to see the bib entry. &lt;br /&gt;
*Commit your changes with a descriptive messages so that others know why you made this commit.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit -m &amp;quot;Your message here&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further details visit http://subversion.apache.org/quick-start&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1584</id>
		<title>Beginner&#039;s guide to working in Wales group</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Beginner%27s_guide_to_working_in_Wales_group&amp;diff=1584"/>
		<updated>2020-04-13T11:58:22Z</updated>

		<summary type="html">&lt;p&gt;Nn320: Created page with &amp;quot;===How to add papers to group bib?=== *Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password.  *Create...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===How to add papers to group bib?===&lt;br /&gt;
*Make sure you are logged in to your workstation at the department. Whenever asked for a password, enter your admitto password. &lt;br /&gt;
*Create a working copy of directory you want to make changes to, in your scratch.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /scratch/CRSid&lt;br /&gt;
mkdir djwpapers&lt;br /&gt;
cd djwpapers&lt;br /&gt;
svn checkout https://svn.ch.cam.ac.uk/svn/wales/groups/djwpapers/bib&lt;br /&gt;
cd bib&lt;br /&gt;
svn update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open the file you want to edit using vi, make desired changes and save them. &lt;br /&gt;
Note that bib entry for a paper can easily be obtained by googling the paper first, find the link &#039;cite this&#039; somewhere, choose &#039;Bib Tex&#039; option when asked to select citation manager/file format and then download it (or directly open it) to see the bib entry. &lt;br /&gt;
*Commit your changes with a descriptive messages so that others know why you made this commit.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit -m &amp;quot;Your message here&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further details visit http://subversion.apache.org/quick-start&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1583</id>
		<title>Comprehensive Contents Page</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Comprehensive_Contents_Page&amp;diff=1583"/>
		<updated>2020-04-13T11:27:32Z</updated>

		<summary type="html">&lt;p&gt;Nn320: /* Miscellaneous */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is designed to organise all of the pages on this wiki, as well as provide other useful links. Note that some pages may appear under more than one heading.&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
[[Wales Group]] provides good step-by-step instructions. Relevant pages are:&lt;br /&gt;
&lt;br /&gt;
=== Acquiring and compiling the group software ===&lt;br /&gt;
* [[SVN setup]]&lt;br /&gt;
* [[Wales Group Version control]] - to keep the code standardised.&lt;br /&gt;
* Theory Sector [http://wwmm.ch.cam.ac.uk/wikis/cuc3/index.php/SVN_Page SVN Page] - some useful general information on SVN commands.&lt;br /&gt;
* [[Compiling Wales Group codes using cmake]] - CMake (Cross-platform Make) allows us to compile and test the group codebase regardless of platform. This page provides crucial information how to compile using cmake.&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
&lt;br /&gt;
=== Maintaining code health ===&lt;br /&gt;
* [[Jenkins CI]] - explains Jenkins, which we use to download our code and compile each of our targets with each of the compilers every night.&lt;br /&gt;
* https://wales-jenkins.ch.cam.ac.uk/ - log for our Jenkins tests.&lt;br /&gt;
* [[Branching and Merging]]&lt;br /&gt;
* [[Cmake interface building]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[Revamping the modules system]]&lt;br /&gt;
&lt;br /&gt;
=== Collaborators without access to the SVN repository ===&lt;br /&gt;
For licensing reasons, some code cannot be included in the Wales Group public tarball.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/svn.tar.bz2 - Wales group public tarball. Includes [[GMIN]], [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
If a collaborator has a [[CHARMM]] or [[AMBER]] licence, we do maintain separate tarballs which include the [[CHARMM]], [[AMBER]] and [[CHARMM]]+[[AMBER]] source and interfaces. These are not linked anywhere on the website and require a username (&#039;&#039;&#039;wales&#039;&#039;&#039;) and password (&#039;&#039;&#039;group&#039;&#039;&#039;) to download:&lt;br /&gt;
&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/CHARMM/svn.CHARMM.tar.bz2 CHARMM]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/AMBER/svn.AMBER.tar.bz2 AMBER]&lt;br /&gt;
* [http://www-wales.ch.cam.ac.uk/both/svn.both.tar.bz2 AMBER+CHARMM]&lt;br /&gt;
&lt;br /&gt;
=== Running on Windows ===&lt;br /&gt;
Not particularly recommended.&lt;br /&gt;
* [[Running Wales Group software on Windows 7]]&lt;br /&gt;
&lt;br /&gt;
== Wales Group Programs ==&lt;br /&gt;
&lt;br /&gt;
=== Programs ===&lt;br /&gt;
* [[GMIN]]: A program for finding global minima and calculating thermodynamic properties from basin-sampling.&lt;br /&gt;
* [[OPTIM]]: A program for optimizing geometries and calculating reaction pathways.&lt;br /&gt;
* [[PATHSAMPLE]]: A driver for OPTIM to create stationary point databases using discrete path sampling and perform kinetic analysis.&lt;br /&gt;
* [[Pele]]: Python energy landscape explorer. A pythonic rewrite of some core functionality of GMIN, OPTIM, and PATHSAMPLE. Can be very useful for visualizing your system and for rapidly implementing and testing new ideas.&lt;br /&gt;
&lt;br /&gt;
=== Curated Examples ===&lt;br /&gt;
* https://github.com/wales-group/examples - set of tutorials detailing how to use GMIN, OPTIM and PATHSAMPLE. Essential for beginners.&lt;br /&gt;
* http://www-wales.ch.cam.ac.uk/VM/Wales_Group_VM.ova - Pre-prepared teaching virtual machine. This contains the code and examples.&lt;br /&gt;
* https://www.virtualbox.org/wiki/Downloads - This is required if using the VM above.&lt;br /&gt;
* https://github.com/wales-group/examples.git - Alternatively, you can run the examples on your own machine. To get hold of the relevant files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/wales-group/examples.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful Notes on Wales Group Programs and Subroutines ==&lt;br /&gt;
=== [[GMIN]] ===&lt;br /&gt;
* [[Adding a model to GMIN]] - rough outline of the subroutines that need to be changed to add a new model to GMIN&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling GMIN using cmake ]]&lt;br /&gt;
* [[Selecting search parameters for GMIN]]&lt;br /&gt;
* [[Global optimization of biomolecules using CHARMM]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9]]&lt;br /&gt;
* [[Global optimization of biomolecules using AMBER9 with Structural Restraints]]&lt;br /&gt;
* [[Calculating binding free energy using the FSA method]]&lt;br /&gt;
* [[Restarting a GMIN run from a dump file]]&lt;br /&gt;
* [[Using the implicit membrane model IMM1]]&lt;br /&gt;
* [[Running a Go model with the AMHGMIN]]&lt;br /&gt;
* [[Running a G\=o model with the AMHGMIN]]&lt;br /&gt;
* [[Ligand binding-mode searches with HBONDMATRIX]]&lt;br /&gt;
* [[Compiling and using GMIN with QUIP]]&lt;br /&gt;
* [[Using GMIN and OPTIM with GPUs]]&lt;br /&gt;
* [[Using GMIN to generate endpoints]]&lt;br /&gt;
* [[Using GMIN to generate endpoints (CHARMM)]]&lt;br /&gt;
* [[Generating a GMIN Eclipse project]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[Keywords]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
&lt;br /&gt;
==== Scripts ====&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
&lt;br /&gt;
==== Useful info for coding GMIN ====&lt;br /&gt;
* [[Program flow]] - contains information about what the various files in GMIN do and what order they&#039;re called. &lt;br /&gt;
* [[amberinterface]]&lt;br /&gt;
&lt;br /&gt;
==== Projects ====&lt;br /&gt;
* [[GMIN MOVES module]]&lt;br /&gt;
* [[GMIN SANITY module]]&lt;br /&gt;
* [[GMIN TESTS module]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
&lt;br /&gt;
=== [[OPTIM]] ===&lt;br /&gt;
* [[Adding a model to OPTIM]] - rough outline of the subrounties that need to be changed to add a new model to OPTIM&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling OPTIM using cmake ]]&lt;br /&gt;
* [[OPTIM/Q-Chem Tutorial]]&lt;br /&gt;
* [[OPTIM and PY ellipsoids tutorial]]&lt;br /&gt;
* [[OPTIM output files]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and AMBER9]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Creating movies (.mpg) of paths using OPTIM]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Debugging odd transition states in OPTIM]]&lt;br /&gt;
* [[Connecting two minima with a pathway]] - step by step&lt;br /&gt;
* [[Compiling and using OPTIM with QUIP]]&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
* [[The effect of calculating less than the maximum number of eigenvalues using ENDHESS n]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Python interface for GMIN/OPTIM]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
* [[Instanton tunneling and classical rate calculations with OPTIM]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[common setup problem : No Frequency Warning]]&lt;br /&gt;
&lt;br /&gt;
=== [[PATHSAMPLE]] ===&lt;br /&gt;
* [[Adding a model to PATHSAMPLE]] - rough outline of the subrounties that need to be changed to add a new model to PATHSAMPLE&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[Compiling Wales Group codes using cmake | Compiling PATHSAMPLE using cmake ]]&lt;br /&gt;
* [[IMPORTANT: Using PATHSAMPLE safely on sinister]]&lt;br /&gt;
* [[Adding a model for PATHSAMPLE]]&lt;br /&gt;
* [[List of output files for PATHSAMPLE]]&lt;br /&gt;
* [[Using BHINTERP to find minima between two end points]]&lt;br /&gt;
* [[Finding an initial path between two end points (minima)]]&lt;br /&gt;
* [[Adding partially finished OPTIM stationary points to a PATHSAMPLE database]]&lt;br /&gt;
* [[Optimising a path]]&lt;br /&gt;
* [[Fine tuning UNTRAP]] - ensuring that it picks sensible minima&lt;br /&gt;
* [[Calculating rate constants (GT and fastest path)]]&lt;br /&gt;
* [[Calculating rate constants (SGT, DGT, and SDGT)]]&lt;br /&gt;
* [[Identifying the k fastest paths between endpoints using KSHORTESTPATHS]]&lt;br /&gt;
* [[Removing minima and transition states from the database]]&lt;br /&gt;
* [[Relaxing existing minima with new potential and creating new database]]&lt;br /&gt;
* [[Relaxing existing transition states with new potential and creating new database]]&lt;br /&gt;
* [[If things go wrong...]]&lt;br /&gt;
* [[If you lost file min.data, but still you have points.min]]&lt;br /&gt;
* [[path.info file is not read, causes PATHSAMPLE to die]]&lt;br /&gt;
* [[BLJ60 example setup]]&lt;br /&gt;
* [[When PATHSAMPLE finds a connected path, but using DIJKSTRA 0 fails to find the connected path]]&lt;br /&gt;
* [[Biomolecules in PATHSAMPLE]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
* [[Loading OPTIM&#039;s min.data.info files into PATHSAMPLE]]&lt;br /&gt;
* [[Connecting Sub-databases]]&lt;br /&gt;
&lt;br /&gt;
=== [[Notes on MINPERMDIST | MINPERMDIST]] ===&lt;br /&gt;
&lt;br /&gt;
=== [[Quasi-continuous interpolation for biomolecules | QCI]] ===&lt;br /&gt;
&lt;br /&gt;
== Non-Group Software ==&lt;br /&gt;
&lt;br /&gt;
=== [[AMBER]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [http://ambermd.org/ AMBER]&lt;br /&gt;
* [http://ambermd.org/tutorials/ AMBER tutorials] - recommended reading for &#039;&#039;&#039;ANYONE&#039;&#039;&#039; using AMBER!&lt;br /&gt;
* [[Notes on AMBER 12 interface]]&lt;br /&gt;
* [[Using AMBER 14 on the GPU and compute clusters]]&lt;br /&gt;
* [[Generating parameters using AMBER&#039;s built in General Forcefield (gaff)]]&lt;br /&gt;
* [[Generating parameters using RESP charges from GAMESS-US]]&lt;br /&gt;
* [[Simple scripts for LEaP to create topology and coordinate files]] &lt;br /&gt;
* [[Preparing an AMBER topology file for a protein system]] - step by step guide&lt;br /&gt;
* [[Setting up]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[Using Molfacture to edit molecules and add hydrogens]]&lt;br /&gt;
* [[Preparing an AMBER topology file for a protein plus ligand system]] - step by step guide&lt;br /&gt;
* [[Symmetrising AMBER topology files]] - step by step guide for symmetrising a complex protein+ligand system&lt;br /&gt;
* [[Producing a PDB from a coordinates and topology file]] - using &#039;&#039;amdpdb&#039;&#039;&lt;br /&gt;
* [[Running GMIN with MD move steps AMBER]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Evaluating different components of AMBER energy function with SANDER]]&lt;br /&gt;
* [[Mutational BH steps]]&lt;br /&gt;
* [[REMD with AMBER]]&lt;br /&gt;
* [[Performing a hydrogen-bond analysis]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself]]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
* [[perm-prmtop.py]] - A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Creating mismatched DNA duplex using NAB]]&lt;br /&gt;
&lt;br /&gt;
=== [[aux2bib]] === &lt;br /&gt;
To generate a bib file containing only the entries cited in a given .tex file from a larger bib or multiple bib files.&lt;br /&gt;
* [https://ctan.org/pkg/bibtools Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[CamCasp]] ===&lt;br /&gt;
Cambridge package for Calculation of Anisotropic Site Properties&lt;br /&gt;
From Anthony Stone&#039;s website: &#039;CamCASP is a collection of scripts and programs written by Dr Alston Misquitta and myself for the calculation ab initio of distributed multipoles, polarizabilities, dispersion coefficients and repulsion parameters for individual molecules, and interaction energies between pairs of molecules using SAPT(DFT).&#039;&lt;br /&gt;
* [http://www-stone.ch.cam.ac.uk/programs.html CamCASP home]&lt;br /&gt;
* [[CamCASP/Programming]]&lt;br /&gt;
* [[CamCASP/Programming/5/example1]]&lt;br /&gt;
* [[CamCASP/Notes]]&lt;br /&gt;
* [[CamCASP/Bugs]]&lt;br /&gt;
* [[CamCASP/ToDo/diskIO]]&lt;br /&gt;
* [[CamCASP/ToDo/Memory]]&lt;br /&gt;
* [[CamCASP/CodeExamples/DirectAccess]]&lt;br /&gt;
&lt;br /&gt;
=== [[CPMD]] ===&lt;br /&gt;
Implementation of DFT for &#039;&#039;ab-initio&#039;&#039; molecular dynamics.&lt;br /&gt;
* [http://www.cpmd.org/ Home Page]&lt;br /&gt;
* [[CPMDInput]]&lt;br /&gt;
&lt;br /&gt;
=== [[CHARMM]] ===&lt;br /&gt;
Molecular dynamics simulation program and associated force fields.&lt;br /&gt;
* [https://www.charmm.org/charmm/?CFID=65f7b3aa-8037-452a-bcd1-7583dd83a087&amp;amp;CFTOKEN=0 CHARMM]&lt;br /&gt;
* [[Generating pdb, crd and psf for a peptide sequence]]&lt;br /&gt;
* [[Converting between &#039;.crd&#039; and &#039;.pdb&#039;]]&lt;br /&gt;
* [[Calculating energy of a conformation]]&lt;br /&gt;
* [[Calculating molecular properties]]&lt;br /&gt;
* [[Calculating order parameters]]&lt;br /&gt;
* [[CAMSHIFT]]&lt;br /&gt;
* [[Setting up (CHARMM)]] - step by step guide to prepare and then symmetrise a simple (protein-only) system&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Performing a normal mode analysis of a biomolecule using OPTIM (AMBER and CHARMM)]]&lt;br /&gt;
* [[Minimizing a structure using OPTIM and CHARMM]]&lt;br /&gt;
* [[Alternatively, making the initial path with PATHSAMPLE itself (CHARMM)]]&lt;br /&gt;
* [[Expanding the kinetic transition network with PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Finding an initial path with OPTIM and starting up PATHSAMPLE (CHARMM)]]&lt;br /&gt;
* [[Pathsampling short paths (CHARMM)]]&lt;br /&gt;
&lt;br /&gt;
=== [[disconnectionDPS]] ===&lt;br /&gt;
Produces disconnectivity graphs from min.data and ts.data files. This is included in the Wales group public tarball.&lt;br /&gt;
* [[Constructing Free Energy Disconnectivity Graphs]]&lt;br /&gt;
&lt;br /&gt;
=== [[DMACRYS]] ===&lt;br /&gt;
Package which models crystals of rigid molecules.&lt;br /&gt;
* [http://www.chem.ucl.ac.uk/cposs/dmacrys/index.html Home Page]&lt;br /&gt;
* [[DMACRYS interface]]&lt;br /&gt;
* [[DMAGMIN setup]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
&lt;br /&gt;
=== [[GAMESS]] ===&lt;br /&gt;
General &#039;&#039;ab initio&#039;&#039; quantum chemistry package.&lt;br /&gt;
* [https://www.msg.chem.iastate.edu/gamess/ GAMESS]&lt;br /&gt;
&lt;br /&gt;
=== [[Gaussian]] ===&lt;br /&gt;
General purpose package for computational chemistry calculations.&lt;br /&gt;
* [[Running an Gaussian03 interfaced OPTIM job]]&lt;br /&gt;
&lt;br /&gt;
=== [[gnuplot]] ===&lt;br /&gt;
Open source graphing program.&lt;br /&gt;
* [http://www.gnuplot.info/ gnuplot]&lt;br /&gt;
* [[Plotting a quick histogram in gnuplot using the raw data]]&lt;br /&gt;
* [[Plotting data in real time]]&lt;br /&gt;
* [[Linear and non-linear regression in gnuplot]]&lt;br /&gt;
&lt;br /&gt;
=== [[GROMACS]] ===&lt;br /&gt;
Molecular dynamics package.&lt;br /&gt;
* [[Installing GROMACS on Clust]]&lt;br /&gt;
* [http://www.mdtutorials.com/gmx/ External tutorials]&lt;br /&gt;
* [http://www.gromacs.org/Documentation/Tutorials More external tutorials]&lt;br /&gt;
&lt;br /&gt;
=== [[HiRE-RNA]] ===&lt;br /&gt;
High-res course-grained energy model for RNA.&lt;br /&gt;
* [https://pubs.acs.org/doi/10.1021/jp102497y Explanatory Paper]&lt;br /&gt;
&lt;br /&gt;
=== [[latex2html]] ===&lt;br /&gt;
Script which converts latex documents into HTML pages.&lt;br /&gt;
* [https://www.latex2html.org/ Get script here]&lt;br /&gt;
&lt;br /&gt;
=== [[MMTSB-toolset]] ===&lt;br /&gt;
Group of perl scripts which can be used to setup and run energy minimization, structural analysis and MD with CHARMM or AMBER.&lt;br /&gt;
* [http://feig.bch.msu.edu/mmtsb/Main_Page Documentation]&lt;br /&gt;
* [http://www.mmtsb.org/workshops/mmtsb-ctbp_2006/Tutorials/WorkshopTutorials_2006.html External tutorials]&lt;br /&gt;
* [[Installing and setting up the MMTSB toolset]]&lt;br /&gt;
* [[REX (Replica EXchange MD) with the MMTSB-toolset]]&lt;br /&gt;
&lt;br /&gt;
=== [[Simulations using OPEP | OPEP]] ===&lt;br /&gt;
OPEP is a coarse-grained force field providing a potential for proteins and RNA.&lt;br /&gt;
* [http://opep.galaxy.ibpc.fr/ OPEP file generator here]&lt;br /&gt;
* [[Biomolecules in the energy landscape framework]]&lt;br /&gt;
&lt;br /&gt;
=== [[pgprof]] === &lt;br /&gt;
Profiler for portland-compiled codes&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
=== [[Pymol]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [https://pymol.org/2/ PyMOL]&lt;br /&gt;
* [https://pymolwiki.org/index.php/Main_Page PyMOL Community Wiki]&lt;br /&gt;
* [[loading AMBER prmtop and inpcrd files into Pymol]]&lt;br /&gt;
* [[producing sexy ray-traced images]]&lt;br /&gt;
* [[advanced colouring]]&lt;br /&gt;
* [[Installing python modules]]&lt;br /&gt;
* [[PYGMIN &amp;amp; DMACRYS]]&lt;br /&gt;
* [[path2pdb.py]] - A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
=== [[VASP]] ===&lt;br /&gt;
OPTIM has an interface to VASP, which is installed on CSD3. In collaboration with Bora Karasulu the interface has been updated to use VASP format POSCAR input files for both single- and double-ended optimisations and path searches. The OPTIM odata file requires a line like&lt;br /&gt;
&lt;br /&gt;
VASP &#039;mpirun -ppn 16 -np 16 /home/bk393/APPS/vasp.5.4.4/with-VTST/bin/vasp_std &amp;gt; vasp.out&#039;&lt;br /&gt;
&lt;br /&gt;
POSCAR files can be visualised using ase, the Atomic Simulation Environment, which can be accessed on volkhan via&lt;br /&gt;
&lt;br /&gt;
module load anaconda/python3/5.3.0 &lt;br /&gt;
&lt;br /&gt;
pip install ase --user&lt;br /&gt;
&lt;br /&gt;
ase-gui POSCAR1.vasp &amp;amp;&lt;br /&gt;
&lt;br /&gt;
which assumes that ~/.input/bin is in your $PATH environment variable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[VMD]] ===&lt;br /&gt;
Molecular visualisation program.&lt;br /&gt;
* [http://www.ks.uiuc.edu/Research/vmd/current/ug/ug.html Documentation]&lt;br /&gt;
* [http://www.ks.uiuc.edu/Training/Tutorials/vmd/tutorial-html/index.html External tutorials]&lt;br /&gt;
* [[using VMD to display and manipulate &#039;.pdb&#039; files]]&lt;br /&gt;
* [[loading coordinate files into VMD with the help of an AMBER topology file]] e.g. to visualise the results of a GMIN run using AMBER9&lt;br /&gt;
* [[visualising normal modes using VMD and OPTIM]]&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
=== [[xfig]] ===&lt;br /&gt;
Open source vector graphics editor&lt;br /&gt;
* [https://ctan.org/tex-archive/support/epstopdf/ Convert eps to pdf]&lt;br /&gt;
&lt;br /&gt;
=== [[Xmakemol]] ===&lt;br /&gt;
Program for visualising atomic and molecular systems.&lt;br /&gt;
* [https://www.nongnu.org/xmakemol/ XMakemol]&lt;br /&gt;
&lt;br /&gt;
=== [[xmgrace]] ===&lt;br /&gt;
2D plotting tool.&lt;br /&gt;
* [http://exciting-code.org/xmgrace-quickstart Xmgrace]&lt;br /&gt;
&lt;br /&gt;
== Theoretical/Mathematical Notes ==&lt;br /&gt;
&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[Ellipsoid.model]]&lt;br /&gt;
* [[Ellipsoid.model.xyz]]&lt;br /&gt;
* [[Ellipsoid.xyz]]&lt;br /&gt;
* [[Gencoords]]&lt;br /&gt;
* [[GenCoords]]&lt;br /&gt;
* [[GenCoords Models]]&lt;br /&gt;
* [[Rotamer moves in AMBER]]&lt;br /&gt;
* [[Thomson problem in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
=== Angle-axis notes ===&lt;br /&gt;
&lt;br /&gt;
* [[Angle-axis framework]]&lt;br /&gt;
* [[Computing normal modes in angle-axis]]&lt;br /&gt;
&lt;br /&gt;
=== Rigid Bodies ===&lt;br /&gt;
&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[Rigid body input files for proteins using genrigid-input.py]]&lt;br /&gt;
* [[Local Rigid Body Framework]]&lt;br /&gt;
* [[Local rigid body in OPTIM]]&lt;br /&gt;
&lt;br /&gt;
== Useful Scripts ==&lt;br /&gt;
* [[perm-prmtop.py]]: A python program that converts an AMBER9 topology file into one with a symmetrised potential with respect to exchange (updated for AMBER12 and ff14SB).&lt;br /&gt;
* [[perm-pdb.py]]: A python program that creates a &#039;&#039;perm.allow&#039;&#039; file for use with [[OPTIM]] and [[PATHSAMPLE]].&lt;br /&gt;
* [[path2pdb.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.pdb&#039;&#039; - you can easy visualize your path in VMD :)&lt;br /&gt;
* [[path2xyz.py]]: A python program to convert &#039;&#039;path.info&#039;&#039; to &#039;&#039;path_all.xyz&#039;&#039;&lt;br /&gt;
* [[dijkstra_test.py]]: A python script to test whether the information in pairlist and ts.data connects the A and B set. (If not, PATHSAMPLE will not work without actually exiting.)&lt;br /&gt;
* [[extractedmin2pdb.py]]: A python program to convert &#039;&#039;exctractedmin&#039;&#039; to PDB format&lt;br /&gt;
* [[colourdiscon.py]]: A python program for sorting input for disconnectivity graphs&lt;br /&gt;
* [[pdb_to_movie.py]]: A python program to create an AMH movieseg file from a PDB file&lt;br /&gt;
* [[makerestart]]: A bash script to automatically set up a GMIN restart run&lt;br /&gt;
* [[progress]] A bash script to tell you the % completion of a GMIN job and give an estimated time remaining&lt;br /&gt;
* [[recommended bash aliases]]&lt;br /&gt;
* [[David&#039;s .inputrc file]]&lt;br /&gt;
* [[Useful .vmdrc file]]&lt;br /&gt;
* [[Density of states and thermodynamics from energy distributions at different temperatures]]&lt;br /&gt;
* [[GenCoords]]: A fortran program to generate coarse grain building blocks and initial coords using a set of geometric models.&lt;br /&gt;
* [[plotGMINms.tcl]]: a tcl script for plotting ellipsoids in VMD.&lt;br /&gt;
See also the SCRIPTS/ directory in the SVN repository!&lt;br /&gt;
* [[Computing CHARMM FF energy using GMIN, MMTSB and CHARMM]] - Computes the Charmm FF energy of the same structure. Useful for cross-validating force field settings in GMIN data file, CHARMM input file and MMTSB options.&lt;br /&gt;
* [[Automatic Rigid Body Grouping]]&lt;br /&gt;
* [[ElaborateDiff]]&lt;br /&gt;
* [[Parameter-scanning script]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[VMD script to annotate each frame of a trajectory]]&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
* [http://www.ch.cam.ac.uk/computing/theory-compute-clusters The Theory Compute Clusters support page]. Contains useful cluster specific information, including example job submission scripts.&lt;br /&gt;
&lt;br /&gt;
* A useful website which contains AMBER (GAFF) and OPLS parameters for small molecules. http://virtualchemistry.org/gmld.php . This could save us lot of time while trying to derive parameters on our own. If you are lucky, the molecule of your interest may already be there in the existing database. The topology files are in GROMACS format but possibly can be converted into AMBER parameter files. (script anyone ?)&lt;br /&gt;
&lt;br /&gt;
* The moving-domain QM/MM method developed by Victor Batista&#039;s group http://gascon.chem.uconn.edu/software. This approach can be used in the derivation of charges for large proteins and nucleic acids, where a full-fledged ONIOM based calculation is comptutationally prohibitive. It has been applied to systems like the Gramicidin ion channel and Photosystem II.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
* [[Animated GIF on the group website]]&lt;br /&gt;
* [[Backup strategy]]&lt;br /&gt;
* [[Chain crossing]]&lt;br /&gt;
* [[Computer Office services]]&lt;br /&gt;
* [[Computing values only once]]&lt;br /&gt;
* [[Decoding heat capacity curves]]&lt;br /&gt;
* [[Differences from Clust]]&lt;br /&gt;
* [[Fixing thunderbird links]]&lt;br /&gt;
* [[If you need to change the number of atoms (e.g. making a united-atom charmm19 .crd file, or if atoms are missing)]]&lt;br /&gt;
* [[Intel Trace Analyzer and Collector]]&lt;br /&gt;
* [[LDAP plans]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Mek-quake Queueing system]]&lt;br /&gt;
* [[Mek-quake initial setup notes]]&lt;br /&gt;
* [[New mek-quake]]&lt;br /&gt;
* [[Maui compilation]]&lt;br /&gt;
* [[Torque and Maui]]&lt;br /&gt;
* [[Mercurial]]&lt;br /&gt;
* [[Migrating to the new SVN server]]&lt;br /&gt;
* [[NECI Parallelization]]&lt;br /&gt;
* [[Optimization tricks]]&lt;br /&gt;
* [[Other IT stuff]]&lt;br /&gt;
* [[Porfuncs Documentation]]&lt;br /&gt;
* [[Progress]]&lt;br /&gt;
* [[Proposed changes to backup and archiving]]&lt;br /&gt;
* [[Rama upgrade]]&lt;br /&gt;
* [[Remastering Knoppix]]&lt;br /&gt;
* [[See unpacked nodes]]&lt;br /&gt;
* [[Tardis scheduling policy]]&lt;br /&gt;
* [[Zippo Sicortex machine]]&lt;br /&gt;
* [[Beginner&#039;s guide to working in Wales group]]&lt;br /&gt;
&lt;br /&gt;
== Useful linux stuff ==&lt;br /&gt;
&lt;br /&gt;
===Basics===&lt;br /&gt;
* [[basic linux commands everyone should know!]]&lt;br /&gt;
* [[piping and redirecting output from one command or file to another]] - how to save yourself hours!&lt;br /&gt;
* [[bash loop tricks]]&lt;br /&gt;
* [[bash history searching]]&lt;br /&gt;
&lt;br /&gt;
===Remote access===&lt;br /&gt;
* [[setting up aliases to quickly log you in to a different machine]]&lt;br /&gt;
* [[transfering files to and from your workstation]] -using &#039;&#039;scp&#039;&#039; or &#039;&#039;rsync&#039;&#039;&lt;br /&gt;
* [[using &#039;ssh-keygen&#039; to automatically log you into clusters from your workstation]] (no more typing in your password!)&lt;br /&gt;
* [[mounting sharedscratch locally]]&lt;br /&gt;
&lt;br /&gt;
===Find and replace===&lt;br /&gt;
* [[short &#039;sed&#039; examples]]&lt;br /&gt;
* [[quick guide to awk]]&lt;br /&gt;
* [[short &#039;awk&#039; examples]]&lt;br /&gt;
&lt;br /&gt;
===File manipulation===&lt;br /&gt;
* [[sorting a file by multiple columns]]&lt;br /&gt;
* [[using tar and gzip to compress/uncompress files | using tar and bzip2 to compress/uncompress files]]&lt;br /&gt;
* [[conversion between different data file formats]] -&#039;almost one-line&#039; scripts&lt;br /&gt;
* [[conversion between different image file formats]] - the &#039;&#039;convert&#039;&#039; command&lt;br /&gt;
* [[removing an excessive number of files from a directory - when &#039;rm&#039; just isn&#039;t enough]]&lt;br /&gt;
&lt;br /&gt;
===Cluster queues===&lt;br /&gt;
* [[submitting jobs, interactively or to a cluster queue system]]&lt;br /&gt;
* [[identifying job on a node]] - if you need to kill only one of few running jobs&lt;br /&gt;
* [[a guide to using SLURM to run PATHSAMPLE]]&lt;br /&gt;
* [[a guide to using SLURM to run GPU jobs on pat]]&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous/uncategorised===&lt;br /&gt;
* [[installing packages on your managed CUC3 workstation]]&lt;br /&gt;
* [[running programs in the background]] - so you can use your shell for other things at the same time&lt;br /&gt;
* [[finding bugs in latex documents that will not compile]]&lt;br /&gt;
* [[printing files from the command line using &#039;lpr&#039;]]&lt;br /&gt;
* [[uploading non image files to the wiki]]&lt;br /&gt;
&lt;br /&gt;
== Compiler Flags ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiler Flags]]&lt;br /&gt;
* [[Blacklisting Compilers]]&lt;br /&gt;
* [[Lapack compilation]]&lt;br /&gt;
* [[Pdb to movie.py]]&lt;br /&gt;
* [[Portland compiler fails trying to allocate an unexpectedly large amount of memory: issue with large arrays]]&lt;br /&gt;
&lt;br /&gt;
== SuSE ==&lt;br /&gt;
&lt;br /&gt;
* [[Upgrading destiny]]&lt;br /&gt;
* [[Upgrading sword]]&lt;br /&gt;
* [[SuSE 10.1 workstation image]]&lt;br /&gt;
* [[SuSE 10.2 workstation image]]&lt;br /&gt;
* [[SuSE 10.3 workstation image]]&lt;br /&gt;
* [[SuSE 11.1]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:adk44|adk44]] 17.00, 9 May 2019 (BST)&lt;/div&gt;</summary>
		<author><name>Nn320</name></author>
	</entry>
</feed>