<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.docking.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Oliv+Eidam</id>
	<title>DISI - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.docking.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Oliv+Eidam"/>
	<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Special:Contributions/Oliv_Eidam"/>
	<updated>2026-04-09T08:02:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5532</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5532"/>
		<updated>2013-05-17T17:54:26Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: /* 1. Create peptide coordinates in Pymol */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w arg327.png|thumb|right|alt=X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres. |X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres.]] &lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates in Pymol==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w input peptides.png|thumb|right|alt=Backbone representation of manually docked starting peptides (orange and green). |Backbone representation of manually docked starting peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Omega angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
==2. Dock peptide coordinates in Pymol to generate a starting model for FlexPepDock ==&lt;br /&gt;
&lt;br /&gt;
You need a rough starting peptide model for FlexPepDock. The peptide starting model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above in Pymol into to the receptor by switching to Editing Mode, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w output peptides.png|thumb|right|alt=Backbone representation of best scoring output peptides (orange and green). |Backbone representation of best scoring output peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
[[File:Pose1 input output vs xray.png|thumb|right|alt=Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow. |Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow.]] &lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
In my prospective peptide docking, the best scoring output model starting from the orange pose had a total score of -324, which was better than the score of the green starting pose (-316).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
In my prospective prediction, the orange output model had a backbone RMSD of 1.9 Angstroem (3.4 A over HA all atoms), which is a freaking good prediction. The the backbones align perfectly over the last four amino acids, and the two arginines at the N-terminus are actually (and surprisingly) not perfectly ordered in the crystal structure. &amp;lt;br&amp;gt;&lt;br /&gt;
As a side note: a few models had RMSD values as low as 1.2 A, but scored worse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for compiling Rosetta on our server, the introduction into FlexPepDock and the fp* scripts.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5530</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5530"/>
		<updated>2013-05-08T21:48:29Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive orientation sampled?==&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. ]] &lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right). In this case I was wondering whether a orientation similar to the crystallographic pose was actually sampled during the docking process. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It requires two steps to address this question:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Use Niu Huang&#039;s ligand clustering tool (described here: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering) to output all orientations sampled during the docking process. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Calculate RMSD values for all orientations compared to the crystal structure pose. You can do this easily and fast using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In this process you will re-dock your ligand and there are (at least) two caveats to this process:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Niu Huang&#039;s ligand clustering tool is a branch of DOCK 3.6 and therefore (most likely) not the same DOCK binary which you have been using in your docking. &amp;lt;br&amp;gt;&lt;br /&gt;
2. If you re-dock your ligand starting from a new db file for your ligand (because your ligand was part of a big library and the original db-file is no more available which is often the case when you docked a big ZINC library), then you won&#039;t dock the same Omega conformations and the partial charges generated by Amsol (and therefore also the desolvation energies) will also be changed. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That said: it is the best approximation at this point.&lt;br /&gt;
&lt;br /&gt;
===1. Output all orientations sampled during docking===&lt;br /&gt;
&lt;br /&gt;
To output all orientations sampled during docking, you can add the ~30 lines of code at the bottom of your original INDOCK file (see here how it works: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering), and re-dock the ligand into the original grids.&lt;br /&gt;
Make sure you set pose_clustering_method to 0 in your INDOCK for ligand clustering (to ensure all poses get written out).&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu, which is a eel1 file with all poses sampled during the docking process. If you want to know how many poses were sampled, type:&lt;br /&gt;
&lt;br /&gt;
 grep -c family test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
The answer was 2293 for the small fragment discussed here.&lt;br /&gt;
&lt;br /&gt;
===2. Calculate RMSD values for all orientations compared to the crystal structure pose===&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock vs sampled.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. ]]&lt;br /&gt;
&lt;br /&gt;
To calculate RMSD values for all orientations generated above (test.eel1.clu) using DOCK 6.6. you have to do execute two programs: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Convert test.eel1.clu to a mol2 file without hydrogens&#039;&#039;&#039; (you need the same number of atoms to calculate RMSD values and your crystal structure likely does not have hydrogens). You can use the script eel12pdb_no_H.csh (see code below) to do this:&lt;br /&gt;
&lt;br /&gt;
 ./eel12pdb_no_H.csh test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu_no_H.mol2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of eel12pdb_no_H.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh -f&lt;br /&gt;
 &lt;br /&gt;
 # awk script to convert eel1 file to pdb&lt;br /&gt;
 # run:&lt;br /&gt;
 # ./eel12pdb.csh file.eel1&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
   if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
     print substr($0,0,56)&amp;quot;1.00 20.00           &amp;quot;substr($0,14,1);&lt;br /&gt;
   else if ($1==&amp;quot;TER&amp;quot;)&lt;br /&gt;
     print $0&amp;quot;\n&amp;quot;&amp;quot;END&amp;quot;;&lt;br /&gt;
   else&lt;br /&gt;
     print $0;&lt;br /&gt;
 }&#039; $1 &amp;gt; $1.pdb&lt;br /&gt;
 &lt;br /&gt;
 # Remove hydrogens &lt;br /&gt;
 awk &#039;($3!~&amp;quot;H&amp;quot;)&#039; $1.pdb &amp;gt; $1_no_H.pdb &lt;br /&gt;
 &lt;br /&gt;
 # convert to mol2 format&lt;br /&gt;
 convert.py --i $1_no_H.pdb --o $1_no_H.mol2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Calculate RMSD values for each orientation using DOCK 6.6&#039;&#039;&#039; as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD&lt;br /&gt;
&lt;br /&gt;
 calc_dock6_rmsd.csh test.eel1.clu_no_H.mol2 nz14_xtal_pose.mol2 | grep RMSDh | sort -rgk 3&lt;br /&gt;
&lt;br /&gt;
The result of this analysis was that there about a dozen orientations sampled with a RMSD &amp;lt; 2 Angstroem. The closest orientation had a RMSD value of 1.3 Angstroem compared to the crystal structure and is depicted on the right in magenta. Its DOCK score was -30, which was much lower than than the best scoring orientation (DOCK score: -80).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===3. Optional: calculate electrostatics, vdw and desolvation for a DOCK orientation ===&lt;br /&gt;
&lt;br /&gt;
One little problem of the ligand clustering DOCK binary is that it outputs only the total DOCK score for each orientation sampled. And for some strange reason it prefers not to output the desolvation and atom type columns in test.eel1.clu. But you may be interested in the individual terms (electrostatics, vdw and desolvation) contributing to the total DOCK score of an individual orientation!&lt;br /&gt;
&lt;br /&gt;
To get the individual terms of a orientation output in test.eel1.clu, you can use the the script append_solv2eel1_file.csh (see code below).&lt;br /&gt;
Before running this script, you have to copy a individual orientation from test.eel1.clu into a new file. In the example below I copied the fifth highest ranking orientation. Copy the three REMARK lines, all ATOM lines, and the TER statement. &amp;lt;br&amp;gt;&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
 ./append_solv2eel1_file.csh test.eel1.clu5&lt;br /&gt;
&lt;br /&gt;
This creates a file called test.eel1.clu5_solv, with desolvation energies and atom types extracted from test.eel1, which is output for the highest ranking orientation. &amp;lt;br&amp;gt;&lt;br /&gt;
You can then run [[Scoreopt]]:&lt;br /&gt;
&lt;br /&gt;
 /raid5/people/mysinger/code/mud/trunk/doscoreopt.csh test.eel1.clu5_solv ../../../grids &amp;gt; test.eel1.clu5_solv.scoreopt.log&lt;br /&gt;
&lt;br /&gt;
The output file test.eel1.clu5_solv.scores summarizes then the individual terms (electrostatics, vdw and desolvation) contributing to the total DOCK score.&lt;br /&gt;
&lt;br /&gt;
Code of append_solv2eel1_file.csh:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
      if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
        print substr($0,65,10);&lt;br /&gt;
      if ($1==&amp;quot;TER&amp;quot;)&lt;br /&gt;
        print $0;&lt;br /&gt;
 &lt;br /&gt;
 }&#039; test.eel1 &amp;gt; solvation.txt&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
      if (($1==&amp;quot;ATOM&amp;quot;) || ($1==&amp;quot;TER&amp;quot;))&lt;br /&gt;
       print $0; &lt;br /&gt;
 }&#039; $1 &amp;gt; $1_ATOM&lt;br /&gt;
 &lt;br /&gt;
 awk  &#039;&lt;br /&gt;
   BEGIN {&lt;br /&gt;
           # load array with contents f1.txt&lt;br /&gt;
           while ( getline &amp;lt; &amp;quot;solvation.txt&amp;quot; &amp;gt; 0 )&lt;br /&gt;
             {&lt;br /&gt;
               f1_counter++&lt;br /&gt;
               f1[f1_counter] = $0&lt;br /&gt;
             }&lt;br /&gt;
   }&lt;br /&gt;
   { &lt;br /&gt;
     if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
       print $0,&amp;quot;&amp;quot;,f1[NR];&lt;br /&gt;
     else&lt;br /&gt;
       print $0;&lt;br /&gt;
    } &#039; $1_ATOM &amp;gt; $1_solv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowledgements=&lt;br /&gt;
Thanks to RGC for lots of docking advice and [[Multimol2db.py]]. Thanks to MM for [[Scoreopt]]. Thanks to Niu Huang and his group for [[Dock Ligand Clustering]]: it&#039;s awesome!&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5529</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5529"/>
		<updated>2013-05-08T21:37:55Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive orientation sampled?==&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. ]] &lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right). In this case I was wondering whether a orientation similar to the crystallographic pose was actually sampled during the docking process. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It requires two steps to address this question:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Use Niu Huang&#039;s ligand clustering tool (described here: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering) to output all orientations sampled during the docking process. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Calculate RMSD values for all orientations compared to the crystal structure pose. You can do this easily and fast using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In this process you will re-dock your ligand and there are (at least) two caveats to this process:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Niu Huang&#039;s ligand clustering tool is a branch of DOCK 3.6 and therefore (most likely) not the same DOCK binary which you have been using in your docking. &amp;lt;br&amp;gt;&lt;br /&gt;
2. If you re-dock your ligand starting from a new db file for your ligand (because your ligand was part of a big library and the original db-file is no more available which is often the case when you docked a big ZINC library), then you won&#039;t dock the same Omega conformations and the partial charges generated by Amsol (and therefore also the desolvation energies) will also be changed. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That said: it is the best approximation at this point.&lt;br /&gt;
&lt;br /&gt;
===1. Output all orientations sampled during docking===&lt;br /&gt;
&lt;br /&gt;
To output all orientations sampled during docking, you can add the ~30 lines of code at the bottom of your original INDOCK file (see here how it works: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering), and re-dock the ligand into the original grids.&lt;br /&gt;
Make sure you set pose_clustering_method to 0 in your INDOCK for ligand clustering (to ensure all poses get written out).&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu, which is a eel1 file with all poses sampled during the docking process. If you want to know how many poses were sampled, type:&lt;br /&gt;
&lt;br /&gt;
 grep -c family test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
The answer was 2293 for the small fragment discussed here.&lt;br /&gt;
&lt;br /&gt;
===2. Calculate RMSD values for all orientations compared to the crystal structure pose===&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock vs sampled.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. ]]&lt;br /&gt;
&lt;br /&gt;
To calculate RMSD values for all orientations generated above (test.eel1.clu) using DOCK 6.6. you have to do execute two programs: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Convert test.eel1.clu to a mol2 file without hydrogens&#039;&#039;&#039; (you need the same number of atoms to calculate RMSD values and your crystal structure likely does not have hydrogens). You can use the script eel12pdb_no_H.csh (see code below) to do this:&lt;br /&gt;
&lt;br /&gt;
 ./eel12pdb_no_H.csh test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu_no_H.mol2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of eel12pdb_no_H.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh -f&lt;br /&gt;
 &lt;br /&gt;
 # awk script to convert eel1 file to pdb&lt;br /&gt;
 # run:&lt;br /&gt;
 # ./eel12pdb.csh file.eel1&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
   if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
     print substr($0,0,56)&amp;quot;1.00 20.00           &amp;quot;substr($0,14,1);&lt;br /&gt;
   else if ($1==&amp;quot;TER&amp;quot;)&lt;br /&gt;
     print $0&amp;quot;\n&amp;quot;&amp;quot;END&amp;quot;;&lt;br /&gt;
   else&lt;br /&gt;
     print $0;&lt;br /&gt;
 }&#039; $1 &amp;gt; $1.pdb&lt;br /&gt;
 &lt;br /&gt;
 # Remove hydrogens &lt;br /&gt;
 awk &#039;($3!~&amp;quot;H&amp;quot;)&#039; $1.pdb &amp;gt; $1_no_H.pdb &lt;br /&gt;
 &lt;br /&gt;
 # convert to mol2 format&lt;br /&gt;
 convert.py --i $1_no_H.pdb --o $1_no_H.mol2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Calculate RMSD values for each orientation using DOCK 6.6&#039;&#039;&#039; as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD&lt;br /&gt;
&lt;br /&gt;
 calc_dock6_rmsd.csh test.eel1.clu_no_H.mol2 nz14_xtal_pose.mol2 | grep RMSDh | sort -rgk 3&lt;br /&gt;
&lt;br /&gt;
The result of this analysis was that there about a dozen orientations sampled with a RMSD &amp;lt; 2 Angstroem. The closest orientation had a RMSD value of 1.3 Angstroem compared to the crystal structure and is depicted on the right in magenta. Its DOCK score was -30, which was much lower than than the best scoring orientation (DOCK score: -80).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===3. Optional: calculate electrostatics, vdw and desolvation for a DOCK orientation ===&lt;br /&gt;
&lt;br /&gt;
One little problem of the ligand clustering DOCK binary is that it outputs only the total DOCK score for each orientation sampled. And for some strange reason it prefers not to output the desolvation and atom type columns in test.eel1.clu. But you may be interested in the individual terms (electrostatics, vdw and desolvation) contributing to the total DOCK score of an individual orientation!&lt;br /&gt;
&lt;br /&gt;
To get the individual terms of a orientation output in test.eel1.clu, you can use the the script append_solv2eel1_file.csh (see code below).&lt;br /&gt;
Before running this script, you have to copy a individual orientation from test.eel1.clu into a new file. In the example below I copied the fifth highest ranking orientation. Copy the three REMARK lines, all ATOM lines, and the TER statement. &amp;lt;br&amp;gt;&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
 ./append_solv2eel1_file.csh test.eel1.clu5&lt;br /&gt;
&lt;br /&gt;
This creates a file called test.eel1.clu5_solv, with desolvation energies and atom types extracted from test.eel1, which is output for the highest ranking orientation. &amp;lt;br&amp;gt;&lt;br /&gt;
You can then run [[Scoreopt]]:&lt;br /&gt;
&lt;br /&gt;
 /raid5/people/mysinger/code/mud/trunk/doscoreopt.csh test.eel1.clu5_solv ../../../grids &amp;gt; test.eel1.clu5_solv.scoreopt.log&lt;br /&gt;
&lt;br /&gt;
The output file test.eel1.clu5_solv.scores summarizes then the individual terms (electrostatics, vdw and desolvation) contributing to the total DOCK score.&lt;br /&gt;
&lt;br /&gt;
Code of append_solv2eel1_file.csh:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
      if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
        print substr($0,65,10);&lt;br /&gt;
      if ($1==&amp;quot;TER&amp;quot;)&lt;br /&gt;
        print $0;&lt;br /&gt;
 &lt;br /&gt;
 }&#039; test.eel1 &amp;gt; solvation.txt&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
      if (($1==&amp;quot;ATOM&amp;quot;) || ($1==&amp;quot;TER&amp;quot;))&lt;br /&gt;
       print $0; &lt;br /&gt;
 }&#039; $1 &amp;gt; $1_ATOM&lt;br /&gt;
 &lt;br /&gt;
 awk  &#039;&lt;br /&gt;
   BEGIN {&lt;br /&gt;
           # load array with contents f1.txt&lt;br /&gt;
           while ( getline &amp;lt; &amp;quot;solvation.txt&amp;quot; &amp;gt; 0 )&lt;br /&gt;
             {&lt;br /&gt;
               f1_counter++&lt;br /&gt;
               f1[f1_counter] = $0&lt;br /&gt;
             }&lt;br /&gt;
   }&lt;br /&gt;
   { &lt;br /&gt;
     if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
       print $0,&amp;quot;&amp;quot;,f1[NR];&lt;br /&gt;
     else&lt;br /&gt;
       print $0;&lt;br /&gt;
    } &#039; $1_ATOM &amp;gt; $1_solv&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5528</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5528"/>
		<updated>2013-05-08T21:00:35Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: /* 2. Calculate RMSD values for all orientations compared to the crystal structure pose */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive orientation sampled?==&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. ]] &lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right). In this case I was wondering whether a orientation similar to the crystallographic pose was actually sampled during the docking process. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It requires two steps to address this question:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Use Niu Huang&#039;s ligand clustering tool (described here: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering) to output all orientations sampled during the docking process. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Calculate RMSD values for all orientations compared to the crystal structure pose. You can do this easily and fast using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In this process you will re-dock your ligand and there are (at least) two caveats to this process:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Niu Huang&#039;s ligand clustering tool is a branch of DOCK 3.6 and therefore (most likely) not the same DOCK binary which you have been using in your docking. &amp;lt;br&amp;gt;&lt;br /&gt;
2. If you re-dock your ligand starting from a new db file for your ligand (because your ligand was part of a big library and the original db-file is no more available which is often the case when you docked a big ZINC library), then you won&#039;t dock the same Omega conformations and the partial charges generated by Amsol (and therefore also the desolvation energies) will also be changed. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That said: it is the best approximation at this point.&lt;br /&gt;
&lt;br /&gt;
===1. Output all orientations sampled during docking===&lt;br /&gt;
&lt;br /&gt;
To output all orientations sampled during docking, you can add the ~30 lines of code at the bottom of your original INDOCK file (see here how it works: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering), and re-dock the ligand into the original grids.&lt;br /&gt;
Make sure you set pose_clustering_method to 0 in your INDOCK for ligand clustering (to ensure all poses get written out).&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu, which is a eel1 file with all poses sampled during the docking process. If you want to know how many poses were sampled, type:&lt;br /&gt;
&lt;br /&gt;
 grep -c family test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
The answer was 2293 for the small fragment discussed here.&lt;br /&gt;
&lt;br /&gt;
===2. Calculate RMSD values for all orientations compared to the crystal structure pose===&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock vs sampled.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. ]]&lt;br /&gt;
&lt;br /&gt;
To calculate RMSD values for all orientations generated above (test.eel1.clu) using DOCK 6.6. you have to do execute two programs: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Convert test.eel1.clu to a mol2 file without hydrogens&#039;&#039;&#039; (you need the same number of atoms to calculate RMSD values and your crystal structure likely does not have hydrogens). You can use the script eel12pdb_no_H.csh (see code below) to do this:&lt;br /&gt;
&lt;br /&gt;
 ./eel12pdb_no_H.csh test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu_no_H.mol2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of eel12pdb_no_H.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh -f&lt;br /&gt;
 &lt;br /&gt;
 # awk script to convert eel1 file to pdb&lt;br /&gt;
 # run:&lt;br /&gt;
 # ./eel12pdb.csh file.eel1&lt;br /&gt;
 &lt;br /&gt;
 awk &#039;{&lt;br /&gt;
   if ($1==&amp;quot;ATOM&amp;quot;) &lt;br /&gt;
     print substr($0,0,56)&amp;quot;1.00 20.00           &amp;quot;substr($0,14,1);&lt;br /&gt;
   else if ($1==&amp;quot;TER&amp;quot;)&lt;br /&gt;
     print $0&amp;quot;\n&amp;quot;&amp;quot;END&amp;quot;;&lt;br /&gt;
   else&lt;br /&gt;
     print $0;&lt;br /&gt;
 }&#039; $1 &amp;gt; $1.pdb&lt;br /&gt;
 &lt;br /&gt;
 # Remove hydrogens &lt;br /&gt;
 awk &#039;($3!~&amp;quot;H&amp;quot;)&#039; $1.pdb &amp;gt; $1_no_H.pdb &lt;br /&gt;
 &lt;br /&gt;
 # convert to mol2 format&lt;br /&gt;
 convert.py --i $1_no_H.pdb --o $1_no_H.mol2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Calculate RMSD values for each orientation using DOCK 6.6&#039;&#039;&#039; as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD&lt;br /&gt;
&lt;br /&gt;
 calc_dock6_rmsd.csh test.eel1.clu_no_H.mol2 nz14_xtal_pose.mol2 | grep RMSDh | sort -rgk 3&lt;br /&gt;
&lt;br /&gt;
The result of this analysis was that there about a dozen orientations sampled with a RMSD &amp;lt; 2 Angstroem. The closest orientation had a RMSD value of 1.3 Angstroem compared to the crystal structure and is depicted on the right in magenta. Its DOCK score was -30, which was much lower than than the best scoring orientation (DOCK score: -80).&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5527</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5527"/>
		<updated>2013-05-08T20:57:05Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: /* Bioactive conformation sampled? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive orientation sampled?==&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. ]] &lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right). In this case I was wondering whether a orientation similar to the crystallographic pose was actually sampled during the docking process. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It requires two steps to address this question:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Use Niu Huang&#039;s ligand clustering tool (described here: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering) to output all orientations sampled during the docking process. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Calculate RMSD values for all orientations compared to the crystal structure pose. You can do this easily and fast using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In this process you will re-dock your ligand and there are (at least) two caveats to this process:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Niu Huang&#039;s ligand clustering tool is a branch of DOCK 3.6 and therefore (most likely) not the same DOCK binary which you have been using in your docking. &amp;lt;br&amp;gt;&lt;br /&gt;
2. If you re-dock your ligand starting from a new db file for your ligand (because your ligand was part of a big library and the original db-file is no more available which is often the case when you docked a big ZINC library), then you won&#039;t dock the same Omega conformations and the partial charges generated by Amsol (and therefore also the desolvation energies) will also be changed. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That said: it is the best approximation at this point.&lt;br /&gt;
&lt;br /&gt;
===1. Output all orientations sampled during docking===&lt;br /&gt;
&lt;br /&gt;
To output all orientations sampled during docking, you can add the ~30 lines of code at the bottom of your original INDOCK file (see here how it works: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering), and re-dock the ligand into the original grids.&lt;br /&gt;
Make sure you set pose_clustering_method to 0 in your INDOCK for ligand clustering (to ensure all poses get written out).&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu, which is a eel1 file with all poses sampled during the docking process. If you want to know how many poses were sampled, type:&lt;br /&gt;
&lt;br /&gt;
 grep -c family test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
The answer was 2293 for the small fragment discussed here.&lt;br /&gt;
&lt;br /&gt;
===2. Calculate RMSD values for all orientations compared to the crystal structure pose===&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock vs sampled.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. ]]&lt;br /&gt;
&lt;br /&gt;
To calculate RMSD values for all orientations generated above (test.eel1.clu) using DOCK 6.6. you have to do execute two programs: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Convert test.eel1.clu to a mol2 file without hydrogens&#039;&#039;&#039; (you need the same number of atoms to calculate RMSD values and your crystal structure likely does not have hydrogens). You can use the script eel12pdb_no_H.csh (see code below) to do this:&lt;br /&gt;
&lt;br /&gt;
 ./eel12pdb_no_H.csh test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu_no_H.mol2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Calculate RMSD values for each orientation using DOCK 6.6&#039;&#039;&#039; as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD&lt;br /&gt;
&lt;br /&gt;
 calc_dock6_rmsd.csh test.eel1.clu_no_H.mol2 nz14_xtal_pose.mol2 | grep RMSDh | sort -rgk 3&lt;br /&gt;
&lt;br /&gt;
The result of this analysis was that there about a dozen orientations sampled with a RMSD &amp;lt; 2 Angstroem. The closest orientation had a RMSD value of 1.3 Angstroem compared to the crystal structure and is depicted on the right in magenta. Its DOCK score was -30, which was much lower than than the best scoring orientation (DOCK score: -80).&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5526</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5526"/>
		<updated>2013-05-08T19:33:38Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: Introduction to this powerful tool to minimize ligands and receptors/active sites. &lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: How to change settings for ligand conformation generation in Omega.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: How to align ligands in 3D. Useful to see if bioactive ligand conformation is sampled.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: How to calculate electron densities and display them in Pymol.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: How to calculate atom distances of DOCK poses to reference coordinates. Useful to analyze docking results.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: Flexible peptide docking using Rosetta.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: How to check if you actually sampled a bioactive orientation in DOCK (using Niu Huang&#039;s ligand clustering DOCK binary).&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: Easy tool calculate ligand RMSDs using DOCK 6.6.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5525</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5525"/>
		<updated>2013-05-08T19:33:05Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: Introduction to this powerful tool to minimize ligands and receptors/active sites. &lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: How to change settings for ligand conformation generation in Omega.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: Align ligands in 3D. Useful to see if bioactive ligand conformation is sampled.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: How to calculate electron densities and display them in Pymol.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: How to calculate atom distances of DOCK poses to reference coordinates. Useful to analyze docking results.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: Flexible peptide docking using Rosetta.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: How to check if you actually sampled a bioactive orientation in DOCK (using Niu Huang&#039;s ligand clustering DOCK binary).&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: Easy tool calculate ligand RMSDs using DOCK 6.6.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5524</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5524"/>
		<updated>2013-05-08T19:32:42Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: Introduction to this powerful tool to minimize ligands and receptors/active sites. &lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: How to change settings for ligand conformation generation in Omega.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: Align ligands in 3D. Useful to see if bioactive ligand conformation is sampled.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: How to calculate electron densities and display them in Pymol.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: How to calculate atoms distances of DOCK poses to reference coordinates. Useful to analyze docking results.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: Flexible peptide docking using Rosetta.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: How to check if you actually sampled a bioactive orientation in DOCK (using Niu Huang&#039;s ligand clustering DOCK binary).&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: Easy tool calculate ligand RMSDs using DOCK 6.6.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5523</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5523"/>
		<updated>2013-05-08T19:31:50Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: Introduction to this powerful tool to minimize ligands and receptors/active sites. &lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: How to change settings for ligand conformation generation in Omega.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: Align ligands in 3D. Useful to see if bioactive ligand conformation is sampled.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: How to calculate electron densities and display them in Pymol.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: How to calculate atoms distances of DOCK poses. Useful to analyze docking results.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: Flexible peptide docking using Rosetta.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: How to check if you actually sampled a bioactive orientation in DOCK (using Niu Huang&#039;s ligand clustering DOCK binary).&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: Easy tool calculate ligand RMSDs using DOCK 6.6.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5522</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5522"/>
		<updated>2013-05-08T19:30:46Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: Introduction to this powerful tool to minimize ligands and receptors/active sites. &lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: How to change settings for ligand conformation generation in Omega.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: Align ligands in 3D. Useful to see if bioactive ligand conformation is sampled.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: How to calculate electron densities and display them in Pymol.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: How to calculate atoms distances of DOCK poses. Useful to analyze docking results.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: Flexible peptide docking using Rosetta.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: How to check if you actually sampled a bioactive orientation in DOCK. Sampling is done using Niu Huang&#039;s ligand clustering DOCK binary.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: Easy tool calculate ligand RMSDs using DOCK 6.6.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5521</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5521"/>
		<updated>2013-05-08T19:23:27Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: minimize ligand and receptor. &lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: change settings for ligand conformation generation in Omega&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: align ligands in 3D. Useful to see if bioactive conformation is sampled.&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: calculate electron densities and display them in Pymol&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: calculate atoms distances of DOCK poses&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: peptide docking&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: pose sampling in DOCK&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: calculate ligand RMSDs&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5520</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5520"/>
		<updated>2013-05-08T19:20:21Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: /* 2. Calculate RMSD values for all orientations compared to the crystal structure pose */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive conformation sampled?==&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. ]] &lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right). In this case I was wondering whether a orientation similar to the crystallographic pose was actually sampled during the docking process. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It requires two steps to address this question:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Use Niu Huang&#039;s ligand clustering tool (described here: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering) to output all orientations sampled during the docking process. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Calculate RMSD values for all orientations compared to the crystal structure pose. You can do this easily and fast using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In this process you will re-dock your ligand and there are (at least) two caveats to this process:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Niu Huang&#039;s ligand clustering tool is a branch of DOCK 3.6 and therefore (most likely) not the same DOCK binary which you have been using in your docking. &amp;lt;br&amp;gt;&lt;br /&gt;
2. If you re-dock your ligand starting from a new db file for your ligand (because your ligand was part of a big library and the original db-file is no more available which is often the case when you docked a big ZINC library), then you won&#039;t dock the same Omega conformations and the partial charges generated by Amsol (and therefore also the desolvation energies) will also be changed. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That said: it is the best approximation at this point.&lt;br /&gt;
&lt;br /&gt;
===1. Output all orientations sampled during docking===&lt;br /&gt;
&lt;br /&gt;
To output all orientations sampled during docking, you can add the ~30 lines of code at the bottom of your original INDOCK file (see here how it works: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering), and re-dock the ligand into the original grids.&lt;br /&gt;
Make sure you set pose_clustering_method to 0 in your INDOCK for ligand clustering (to ensure all poses get written out).&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu, which is a eel1 file with all poses sampled during the docking process. If you want to know how many poses were sampled, type:&lt;br /&gt;
&lt;br /&gt;
 grep -c family test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
The answer was 2293 for the small fragment discussed here.&lt;br /&gt;
&lt;br /&gt;
===2. Calculate RMSD values for all orientations compared to the crystal structure pose===&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock vs sampled.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. ]]&lt;br /&gt;
&lt;br /&gt;
To calculate RMSD values for all orientations generated above (test.eel1.clu) using DOCK 6.6. you have to do execute two programs: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Convert test.eel1.clu to a mol2 file without hydrogens&#039;&#039;&#039; (you need the same number of atoms to calculate RMSD values and your crystal structure likely does not have hydrogens). You can use the script eel12pdb_no_H.csh (see code below) to do this:&lt;br /&gt;
&lt;br /&gt;
 ./eel12pdb_no_H.csh test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu_no_H.mol2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Calculate RMSD values for each orientation using DOCK 6.6&#039;&#039;&#039; as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD&lt;br /&gt;
&lt;br /&gt;
 calc_dock6_rmsd.csh test.eel1.clu_no_H.mol2 nz14_xtal_pose.mol2 | grep RMSDh | sort -rgk 3&lt;br /&gt;
&lt;br /&gt;
The result of this analysis was that there about a dozen orientations sampled with a RMSD &amp;lt; 2 Angstroem. The closest orientation had a RMSD value of 1.3 Angstroem compared to the crystal structure and is depicted on the right in magenta. Its DOCK score was -30, which was much lower than than the best scoring orientation (DOCK score: -80).&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5519</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5519"/>
		<updated>2013-05-08T19:19:32Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive conformation sampled?==&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green. ]] &lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right). In this case I was wondering whether a orientation similar to the crystallographic pose was actually sampled during the docking process. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It requires two steps to address this question:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Use Niu Huang&#039;s ligand clustering tool (described here: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering) to output all orientations sampled during the docking process. &amp;lt;br&amp;gt;&lt;br /&gt;
2. Calculate RMSD values for all orientations compared to the crystal structure pose. You can do this easily and fast using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In this process you will re-dock your ligand and there are (at least) two caveats to this process:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. Niu Huang&#039;s ligand clustering tool is a branch of DOCK 3.6 and therefore (most likely) not the same DOCK binary which you have been using in your docking. &amp;lt;br&amp;gt;&lt;br /&gt;
2. If you re-dock your ligand starting from a new db file for your ligand (because your ligand was part of a big library and the original db-file is no more available which is often the case when you docked a big ZINC library), then you won&#039;t dock the same Omega conformations and the partial charges generated by Amsol (and therefore also the desolvation energies) will also be changed. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That said: it is the best approximation at this point.&lt;br /&gt;
&lt;br /&gt;
===1. Output all orientations sampled during docking===&lt;br /&gt;
&lt;br /&gt;
To output all orientations sampled during docking, you can add the ~30 lines of code at the bottom of your original INDOCK file (see here how it works: http://wiki.uoft.bkslab.org/index.php/Dock_Ligand_Clustering), and re-dock the ligand into the original grids.&lt;br /&gt;
Make sure you set pose_clustering_method to 0 in your INDOCK for ligand clustering (to ensure all poses get written out).&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu, which is a eel1 file with all poses sampled during the docking process. If you want to know how many poses were sampled, type:&lt;br /&gt;
&lt;br /&gt;
 grep -c family test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
The answer was 2293 for the small fragment discussed here.&lt;br /&gt;
&lt;br /&gt;
===2. Calculate RMSD values for all orientations compared to the crystal structure pose===&lt;br /&gt;
&lt;br /&gt;
[[File:Nz14 xtal vs dock vs sampled.png|thumb|right|alt=Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. |Prediction by DOCK depicted in yellow, actual crystal structure depicted in green, orientation with lowest RMSD value (1.3A) depicted in magenta. ]]&lt;br /&gt;
&lt;br /&gt;
To calculate RMSD values for all orientations generated above (test.eel1.clu) using DOCK 6.6. you have to do execute two programs: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Convert test.eel1.clu to a mol2 file without hydrogens (you need the same number of atoms to calculate RMSD values and your crystal structure likely does not have hydrogens). You can use the script eel12pdb_no_H.csh (see code below) to do this:&lt;br /&gt;
&lt;br /&gt;
 ./eel12pdb_no_H.csh test.eel1.clu&lt;br /&gt;
&lt;br /&gt;
This will output a file called test.eel1.clu_no_H.mol2.&lt;br /&gt;
&lt;br /&gt;
2. Calculate RMSD values for each orientation using DOCK 6.6 as described here: http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD&lt;br /&gt;
&lt;br /&gt;
 calc_dock6_rmsd.csh test.eel1.clu_no_H.mol2 nz14_xtal_pose.mol2 | grep RMSDh | sort -rgk 3&lt;br /&gt;
&lt;br /&gt;
The result of this analysis was that there about a dozen orientations sampled with a RMSD &amp;lt; 2 Angstroem. The closest orientation had a RMSD value of 1.3 Angstroem compared to the crystal structure and is depicted on the right in magenta. Its DOCK score was -30, which was much lower than than the best scoring orientation (DOCK score: -80).&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Nz14_xtal_vs_dock_vs_sampled.png&amp;diff=5518</id>
		<title>File:Nz14 xtal vs dock vs sampled.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Nz14_xtal_vs_dock_vs_sampled.png&amp;diff=5518"/>
		<updated>2013-05-08T18:20:53Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Nz14_xtal_vs_dock.png&amp;diff=5517</id>
		<title>File:Nz14 xtal vs dock.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Nz14_xtal_vs_dock.png&amp;diff=5517"/>
		<updated>2013-05-08T18:20:28Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5516</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5516"/>
		<updated>2013-05-08T18:19:50Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3. Run scoreopt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here: http://wiki.uoft.bkslab.org/index.php/Scoreopt&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4. Check if a bioactive orientation (or an orientation close to it is actually sampled in the docking process. This is what is described on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bioactive conformation sampled?==&lt;br /&gt;
&lt;br /&gt;
I want to make the following example: I predicted a fragment binding to the oxyanion hole, but when we determined the crystal structure, the fragment bound to the so-called distal site of AmpC (see picture on the right).&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5515</id>
		<title>Dock Sampling</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Dock_Sampling&amp;diff=5515"/>
		<updated>2013-05-08T18:13:11Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: Created page with &amp;quot;=Pose Sampling in DOCK=  Don&amp;#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Pose Sampling in DOCK=&lt;br /&gt;
&lt;br /&gt;
Don&#039;t get right DOCK pose? Well, this happens a lot... Docking is a complicated process, but it can be broken down to two main processes: scoring and sampling. This page is about sampling (in DOCK).&lt;br /&gt;
&lt;br /&gt;
To investigate why you don&#039;t get the right DOCK pose (in the case you know the answer from a crystal structure), you can consider the following things:&lt;br /&gt;
&lt;br /&gt;
1. Check if the bioactive conformation is sampled in docking. This is described here: http://wiki.uoft.bkslab.org/index.php/Screen3d&lt;br /&gt;
2. Dock the bioactive conformation rigidly. This is described here: http://wiki.uoft.bkslab.org/index.php/Multimol2db.py&lt;br /&gt;
3. Run score_opt on the bioactive conformation to get a score for the crystallographic pose of your ligand. This is described here:&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tutorials&amp;diff=5514</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tutorials&amp;diff=5514"/>
		<updated>2013-05-08T18:08:41Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[How to run and analyze a DOCK run by hand]]&lt;br /&gt;
* [[SGE Cluster Docking]]&lt;br /&gt;
* [[MUD - Michael&#039;s Utilities for Docking]]&lt;br /&gt;
* [[Automated Database Preparation]]&lt;br /&gt;
* [[Understanding MakeDOCK, which automates sphere and grid generation]]&lt;br /&gt;
* [[How to use the QB3 cluster]]&lt;br /&gt;
* [[How to generate an HEI database]]&lt;br /&gt;
* How to hold a [[hit picking party]]&lt;br /&gt;
* [[How to compile DOCK]]&lt;br /&gt;
* [[Using local Subversion Repository (SVN)]]&lt;br /&gt;
* [[Eplop]]&lt;br /&gt;
* [[db2multipdb.py|db2multipdb.py How to decode .db files]]&lt;br /&gt;
* [[Travel Depth|How to run Travel Depth analysis on the lab machines]]&lt;br /&gt;
* [[pymol_background|How to make your PyMOL background transparent]]&lt;br /&gt;
* [[Chembl2pdb|How to link the protein targets in ChEMBL to their PDB structures]]&lt;br /&gt;
* [[Inspecting electron density maps]]&lt;br /&gt;
* [[How to run DOCK with a focusing term (internal energy) included]]&lt;br /&gt;
* [http://wiki.uoft.bkslab.org/index.php/Tools_for_protein_and_ligand_analysis Oliv&#039;s favorite tools for protein and ligand analysis]&lt;br /&gt;
== Headline text ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;rarr; Back to [[Shoichet Lab Users]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5513</id>
		<title>Tools for protein and ligand analysis</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tools_for_protein_and_ligand_analysis&amp;diff=5513"/>
		<updated>2013-05-08T18:00:09Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[http://wiki.uoft.bkslab.org/index.php/Plop Plop]: minimize ligand and active site&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Omega.parm omega.parm]: change settings for ligand conformation generation&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/screen3d screen3d]: align ligands in 3D&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Phenix Phenix]: calculate electron densities and display them in Pymol&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/filter.py: filter.py]: calculate atoms distances of DOCK poses&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/FlexPepDock FlexPepDock]: peptide docking&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Dock_Sampling DOCK Sampling]: pose sampling in DOCK&lt;br /&gt;
*[http://wiki.uoft.bkslab.org/index.php/Calculate_DOCK6_RMSD DOCK6 RMSD]: calculate ligand RMSDs&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5512</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5512"/>
		<updated>2013-05-08T00:09:17Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: /* Acknowlegements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w arg327.png|thumb|right|alt=X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres. |X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres.]] &lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates in Pymol==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w input peptides.png|thumb|right|alt=Backbone representation of manually docked starting peptides (orange and green). |Backbone representation of manually docked starting peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Dock peptide coordinates in Pymol to generate a starting model for FlexPepDock ==&lt;br /&gt;
&lt;br /&gt;
You need a rough starting peptide model for FlexPepDock. The peptide starting model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above in Pymol into to the receptor by switching to Editing Mode, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w output peptides.png|thumb|right|alt=Backbone representation of best scoring output peptides (orange and green). |Backbone representation of best scoring output peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
[[File:Pose1 input output vs xray.png|thumb|right|alt=Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow. |Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow.]] &lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
In my prospective peptide docking, the best scoring output model starting from the orange pose had a total score of -324, which was better than the score of the green starting pose (-316).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
In my prospective prediction, the orange output model had a backbone RMSD of 1.9 Angstroem (3.4 A over HA all atoms), which is a freaking good prediction. The the backbones align perfectly over the last four amino acids, and the two arginines at the N-terminus are actually (and surprisingly) not perfectly ordered in the crystal structure. &amp;lt;br&amp;gt;&lt;br /&gt;
As a side note: a few models had RMSD values as low as 1.2 A, but scored worse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for compiling Rosetta on our server, the introduction into FlexPepDock and the fp* scripts.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5511</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5511"/>
		<updated>2013-05-07T23:46:35Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w arg327.png|thumb|right|alt=X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres. |X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres.]] &lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates in Pymol==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w input peptides.png|thumb|right|alt=Backbone representation of manually docked starting peptides (orange and green). |Backbone representation of manually docked starting peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Dock peptide coordinates in Pymol to generate a starting model for FlexPepDock ==&lt;br /&gt;
&lt;br /&gt;
You need a rough starting peptide model for FlexPepDock. The peptide starting model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above in Pymol into to the receptor by switching to Editing Mode, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w output peptides.png|thumb|right|alt=Backbone representation of best scoring output peptides (orange and green). |Backbone representation of best scoring output peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
[[File:Pose1 input output vs xray.png|thumb|right|alt=Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow. |Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow.]] &lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
In my prospective peptide docking, the best scoring output model starting from the orange pose had a total score of -324, which was better than the score of the green starting pose (-316).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
In my prospective prediction, the orange output model had a backbone RMSD of 1.9 Angstroem (3.4 A over HA all atoms), which is a freaking good prediction. The the backbones align perfectly over the last four amino acids, and the two arginines at the N-terminus are actually (and surprisingly) not perfectly ordered in the crystal structure. &amp;lt;br&amp;gt;&lt;br /&gt;
As a side note: a few models had RMSD values as low as 1.2 A, but scored worse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for the introduction into FlexPepDock.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5510</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5510"/>
		<updated>2013-05-07T23:41:51Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w arg327.png|thumb|right|alt=X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres. |X-ray structure of Neurotensin receptor. The C-terminus of NT(8-13) was predicted to interact with Arg327, which is depicted with spheres.]] &lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates in Pymol==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w input peptides.png|thumb|right|alt=Backbone representation of manually docked starting peptides (orange and green). |Backbone representation of manually docked starting peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Dock peptide coordinates in Pymol to generate a starting model for FlexPepDock ==&lt;br /&gt;
&lt;br /&gt;
You need a rough starting peptide model for FlexPepDock. The peptide starting model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above in Pymol into to the receptor by switching to Editing Mode, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
[[File:Rec w output peptides.png|thumb|right|alt=Backbone representation of best scoring output peptides (orange and green). |Backbone representation of best scoring output peptides (orange and green).]] &lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
[[File:Pose1 input output vs xray.png|thumb|right|alt=Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow. |Comparison of native peptide conformation (slate) to best scoring output model (orange). The backbone of the starting peptide is depicted in yellow.]] &lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
In my prospective peptide docking, the best scoring output model starting from the orange pose had a total score of -324, which was better than the score of the green starting pose (-316).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
The orange output model had a backbone RMSD of 1.9 Angstroem (3.4 A over HA all atoms), which is a freaking good prediction. A few models had RMSD values as low as 1.2 A, but scored worse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for the introduction into FlexPepDock.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Pose1_input_output_vs_xray.png&amp;diff=5509</id>
		<title>File:Pose1 input output vs xray.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Pose1_input_output_vs_xray.png&amp;diff=5509"/>
		<updated>2013-05-07T23:23:39Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Rec_w_output_peptides.png&amp;diff=5508</id>
		<title>File:Rec w output peptides.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Rec_w_output_peptides.png&amp;diff=5508"/>
		<updated>2013-05-07T23:22:54Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Rec_w_input_peptides.png&amp;diff=5507</id>
		<title>File:Rec w input peptides.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Rec_w_input_peptides.png&amp;diff=5507"/>
		<updated>2013-05-07T23:22:27Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Rec_w_arg327.png&amp;diff=5506</id>
		<title>File:Rec w arg327.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Rec_w_arg327.png&amp;diff=5506"/>
		<updated>2013-05-07T23:21:56Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Tutorials&amp;diff=5505</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Tutorials&amp;diff=5505"/>
		<updated>2013-05-07T23:18:57Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[How to run and analyze a DOCK run by hand]]&lt;br /&gt;
* [[SGE Cluster Docking]]&lt;br /&gt;
* [[MUD - Michael&#039;s Utilities for Docking]]&lt;br /&gt;
* [[Automated Database Preparation]]&lt;br /&gt;
* [[Understanding MakeDOCK, which automates sphere and grid generation]]&lt;br /&gt;
* [[How to use the QB3 cluster]]&lt;br /&gt;
* [[How to generate an HEI database]]&lt;br /&gt;
* How to hold a [[hit picking party]]&lt;br /&gt;
* [[How to compile DOCK]]&lt;br /&gt;
* [[Using local Subversion Repository (SVN)]]&lt;br /&gt;
* [[Eplop]]&lt;br /&gt;
* [[db2multipdb.py|db2multipdb.py How to decode .db files]]&lt;br /&gt;
* [[Travel Depth|How to run Travel Depth analysis on the lab machines]]&lt;br /&gt;
* [[pymol_background|How to make your PyMOL background transparent]]&lt;br /&gt;
* [[Chembl2pdb|How to link the protein targets in ChEMBL to their PDB structures]]&lt;br /&gt;
* [[Inspecting electron density maps]]&lt;br /&gt;
* [[How to run DOCK with a focusing term (internal energy) included]]&lt;br /&gt;
* [http://wiki.uoft.bkslab.org/index.php/Tools_for_protein_and_ligand_analysis Oliv&#039;s tools for protein and ligand analysis]&lt;br /&gt;
== Headline text ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;rarr; Back to [[Shoichet Lab Users]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5504</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5504"/>
		<updated>2013-05-07T23:12:58Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates in Pymol==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Dock peptide coordinates in Pymol to generate a starting model for FlexPepDock ==&lt;br /&gt;
&lt;br /&gt;
You need a rough starting peptide model for FlexPepDock. The peptide starting model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above in Pymol into to the receptor by switching to Editing Mode, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for the introduction into FlexPepDock.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5503</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5503"/>
		<updated>2013-05-07T23:11:34Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Dock peptide coordinates manually to generate a starting model for FlexPepDock ==&lt;br /&gt;
&lt;br /&gt;
You need a rough starting peptide model for FlexPepDock. The peptide starting model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above in Pymol into to the receptor by switching to Editing Mode, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for the introduction into FlexPepDock.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5502</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5502"/>
		<updated>2013-05-07T23:08:23Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Create input model peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You need a rough input peptide model for FlexPepDock. The peptide input model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above into to the receptor by switching to Editing Mode in Pymol, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. For each model, you can print the scores, backbone RMSDs and model name, sorted by backbone RMSD, by typing this command:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Acknowlegements=&lt;br /&gt;
Many thanks to Nir for the introduction into FlexPepDock.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5501</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5501"/>
		<updated>2013-05-07T23:06:07Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: Undo revision 5500 by Oliv Eidam (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Create input model peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You need a rough input peptide model for FlexPepDock. The peptide input model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above into to the receptor by switching to Editing Mode in Pymol, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock automatically outputs RMSD values of the models compared to the input structure (rmsALL, rmsBB etc.). But if you know the native structure, you are probably interested how the models compare to the native structure.&lt;br /&gt;
&lt;br /&gt;
You can calculate RMSD values for each model compared to the native structure using the script rescore_batch.csh. &lt;br /&gt;
First, you have to generate a list of pdb IDs for which you want to generate RMSDs compared to the native structure:&lt;br /&gt;
&lt;br /&gt;
 ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
Then run rescore_batch.csh (see code below):&lt;br /&gt;
 ./rescore_batch.csh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of rescore_batch.csh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #-s starting&lt;br /&gt;
 #-native: reference for rmsd calc&lt;br /&gt;
 # -l list file&lt;br /&gt;
 &lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -l list_of_pdbs.txt -database /raid1/people/londonir/rosetta/rosetta_database -native 4GRV_AB_ATOM.pdb -out:prefix rescore_list&#039;.&#039; -flexpep_score_only -out:pdb false &amp;gt; log.rescore_list&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #create list with pdbs&lt;br /&gt;
 # ls -1 *.pdb &amp;gt; list_of_pdbs.txt&lt;br /&gt;
&lt;br /&gt;
This script takes a few minutes to run and outputs a file called log.rescore_list. Print the scores, backbone RMSDs and model name, sorted by backbone RMSD:&lt;br /&gt;
&lt;br /&gt;
 awk &#039;{print $2, $41, $53}&#039; rescore_list.score.sc | sort -rgk 2&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5500</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5500"/>
		<updated>2013-05-07T22:02:25Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==FlexPepDock: Wanna dock a peptide? Use FlexPepDock!==&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
===1. Create peptide coordinates===&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===2. Create input model peptide coordinates===&lt;br /&gt;
&lt;br /&gt;
You need a rough input peptide model for FlexPepDock. The peptide input model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above into to the receptor by switching to Editing Mode in Pymol, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
===3. Run prepack.sh===&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===4. Run FlexPepDock on Cluster using submit_fpdock.sh===&lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===5. Analyze output models===&lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
===6. Calculate RMSD values compared to native structure===&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5499</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5499"/>
		<updated>2013-05-07T22:00:24Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Create input model peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You need a rough input peptide model for FlexPepDock. The peptide input model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above into to the receptor by switching to Editing Mode in Pymol, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of prepack.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==4. Run FlexPepDock on Cluster using submit_fpdock.sh==&lt;br /&gt;
&lt;br /&gt;
Run FlexPepDock on Cluster using submit_fpdock.sh (see code below):&lt;br /&gt;
&lt;br /&gt;
 ./submit_fpdock.sh NTS1_rrpyil_input_0001.pdb 200&lt;br /&gt;
&lt;br /&gt;
submit_fpdock.sh takes two arguments: the protonated protein-peptide input model from prepack.sh (NTS1_rrpyil_input_0001.pdb) and the second argument (200) is the number of models you want to generate - 200 is a good number. submit_fpdock.sh calls a script called single_fpdock.sh (see code below), which executes the actual peptide docking. The peptide docking is pretty fast: it takes about 2 minutes per model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of submit_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #$1 is the start file (start.pdb)&lt;br /&gt;
 #$2 is the number of jobs to send (each will attempt nstruct=1)&lt;br /&gt;
 &lt;br /&gt;
 foreach i (`seq 1 $2`)&lt;br /&gt;
 qsub -l arch=lx24-amd64 -q all.q -cwd -e ./error -o ./out -v arg1=$i,arg2=$1 ./single_fpdock.sh&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Code of single_fpdock.sh:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 &lt;br /&gt;
 #arg1 is the run prefix number&lt;br /&gt;
 #arg2 is the start.pdb (and native.pdb)&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $arg2 -database /raid1/people/londonir/rosetta/rosetta_database -native $arg2 -pep_refine -ex1 -ex2aro -use_input_sc -nstruct 1 -unboundrot $arg2 -out:prefix $arg1&#039;.&#039; &amp;gt; log.$arg1&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==5. Analyze output models==&lt;br /&gt;
&lt;br /&gt;
FlexPepDock outputs a pdb, a score file (.sc) and a log file (log) for each model requested. The score files is a tab-delimited file with many scores and other interesting numbers like Interface buried surface area (I_bsa), number of hydrogen bonds (I_hb), score for the Interface (I_sc) and a score for the peptide (pep_sc). Your main interest is most likely the total score (total_score).&lt;br /&gt;
&lt;br /&gt;
You can print the total scores of each model using this script:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 # prints total scores for each model&lt;br /&gt;
 &lt;br /&gt;
 foreach file (*.sc) &lt;br /&gt;
   echo $file&amp;quot;:&amp;quot; `awk &#039;NR==3 {print $2}&#039; $file`&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
==6. Calculate RMSD values compared to native structure==&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5498</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5498"/>
		<updated>2013-05-07T18:16:58Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create an peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis-&amp;gt;Mutate to Arg-&amp;gt;Apply). &amp;lt;br&amp;gt;&lt;br /&gt;
Save molecule.&lt;br /&gt;
Do NOT add a amine at the N-terminus and do NOT add a C-terminal carboxylate to the pymol coordinates!&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==2. Create input model peptide coordinates==&lt;br /&gt;
&lt;br /&gt;
You need a rough input peptide model for FlexPepDock. The peptide input model should be within 5 Angstroem RMSD to the native structure. You can manually dock your peptide created above into to the receptor by switching to Editing Mode in Pymol, and dragging/rotating the peptide by holding the Shift-Button and Middle and Left-Mouse button, respectively. Don&#039;t worry about clashes of the peptide with the protein: the most important thing is that the backbone is within 5 Anstroem of the native structure.&lt;br /&gt;
&lt;br /&gt;
Save the docked peptide coordinates and &#039;&#039;&#039;add them at the below of the PDB coordinates&#039;&#039;&#039; of the apo receptor structure. It is important to add them below the receptor coordinates, separated by a TER statement. Also, there should be no END statements.&lt;br /&gt;
&lt;br /&gt;
==3. Run prepack.sh==&lt;br /&gt;
&lt;br /&gt;
Run prepack.sh:&lt;br /&gt;
&lt;br /&gt;
 ./prepack.sh NTS1_rrpyil_input.pdb&lt;br /&gt;
&lt;br /&gt;
Code of prepack.sh:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
  &lt;br /&gt;
 #$1 is the start.pdb&lt;br /&gt;
 &lt;br /&gt;
 set arch = `uname -p`&lt;br /&gt;
 if ( $arch == &#039;x86_64&#039;) then&lt;br /&gt;
 ~londonir/rosetta/rosetta_source/bin/FlexPepDocking.static.linuxgccrelease -s $1 -database /raid1/people/londonir/rosetta/rosetta_database -native $1 -flexpep_prepack -ex1 -ex2aro -unboundrot $1 &amp;gt; log.prepack&lt;br /&gt;
 else &lt;br /&gt;
 echo &amp;quot;I can only run on a x86_64 system...&amp;quot;&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
prepack.sh generates pNTS1_rrpyil_input_0001.pdb as output: the protein is now protonated and a N-terminal amine and a C-terminal carboxylate have been added to the peptide.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5495</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5495"/>
		<updated>2013-05-07T00:43:28Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create an input structure for FlexPepDock==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and then mutate to your peptide using the mutation wizard (Wizard-&amp;gt;Mutagenesis). &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Important note:&#039;&#039;&#039; FlexPepDock does not change your Psi angles, so make sure that a proline is in trans if that&#039;s what you want!!&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5494</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5494"/>
		<updated>2013-05-07T00:25:54Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create an input structure for FlexPepDock==&lt;br /&gt;
&lt;br /&gt;
You can generate peptide coordinates using Pymol (Build-&amp;gt;Residue-&amp;gt;Alanine). If you want an extended peptide, it is best to generate coordinates for poly-Ala first, and the mutate to your sequence using the mutation wizard (Wizard-&amp;gt;Mutagenesis).&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5493</id>
		<title>FlexPepDock</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=FlexPepDock&amp;diff=5493"/>
		<updated>2013-05-07T00:14:38Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: Created page with &amp;quot;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=  Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=FlexPepDock: Wanna dock a peptide? Use FlexPepDock!=&lt;br /&gt;
&lt;br /&gt;
Interested in peptide docking? Use FlexPepDock, which is a peptide docking software implemented in Rosetta. The easiest way to do that is to use the online server: &amp;lt;br&amp;gt;&lt;br /&gt;
http://flexpepdock.furmanlab.cs.huji.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to run FlexPepDock locally, follow the steps below. &amp;lt;br&amp;gt;&lt;br /&gt;
In my example I docked the hexapeptide NT(8-13) with the sequence RRPYIL into the neurotensin receptor. I did this prospectively, without having looked at the bound peptide conformation before doing this. All I knew was that the C-terminal carboxylate interacts with Arg327 ([http://www.jbc.org/content/275/1/328 Barroso et al, JBC, 2000]) and that the peptide adopts an extended conformation ([http://www.pnas.org/content/100/19/10706 Luca et al, PNAS, 2003]).&lt;br /&gt;
&lt;br /&gt;
==1. Create an input structure for FlexPepDock==&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Calculate_DOCK6_RMSD&amp;diff=5492</id>
		<title>Calculate DOCK6 RMSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Calculate_DOCK6_RMSD&amp;diff=5492"/>
		<updated>2013-05-06T23:37:23Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Calculate ligand RMSDs using DOCK6==&lt;br /&gt;
&lt;br /&gt;
Calculating ligand RMSDs is a tricky thing, but DOCK6 does this quite well. &lt;br /&gt;
All you need is two ligands in mol2 format (with the same number of atoms and same Sybil atom types) and a DOCK6 binary.&lt;br /&gt;
&lt;br /&gt;
Then you run the following command:&lt;br /&gt;
&lt;br /&gt;
 ~eidamo/work/scripts/calc_dock6_rmsd.csh xtal.mol2 dock.mol2&lt;br /&gt;
&lt;br /&gt;
calc_dock6_rmsd.csh (see code below) outputs three lines:&lt;br /&gt;
&lt;br /&gt;
HA_RMSDs:		4.2878 &amp;lt;br&amp;gt;&lt;br /&gt;
HA_RMSDh:		2.7406 &amp;lt;br&amp;gt;&lt;br /&gt;
HA_RMSDm:		0.9625&lt;br /&gt;
&lt;br /&gt;
The most meaningful line is the one in the middle (HA_RMSDh), which outputs the RMSD using the Hungarian Algorithm (for more information: http://dock.compbio.ucsf.edu/DOCK_6/dock6_manual.htm)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===calc_dock6_rmsd.csh===&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh -f&lt;br /&gt;
 if ($#argv != 2) then&lt;br /&gt;
         echo &amp;quot;Usage: $0 mol.mol2 ref.mol2&amp;quot;&lt;br /&gt;
         echo &amp;quot;calculates rmsd between 2 molecules using hungarian algorithm implemented in DOCK 6&amp;quot;&lt;br /&gt;
     endif&lt;br /&gt;
 &lt;br /&gt;
 setenv dock66_dir &amp;quot;/raid1/people/tbalius/zzz.programs/dock6_2012-10-09.stonybrook&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;ligand_atom_file                                             $1&amp;quot; &amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;limit_max_ligands                                            no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;skip_molecule                                                no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;read_mol_solvation                                           no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;calculate_rmsd                                               yes&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;use_rmsd_reference_mol                                       yes&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;rmsd_reference_filename                                      $2&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;use_database_filter                                          no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;orient_ligand                                                no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;use_internal_energy                                          no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;flexible_ligand                                              no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;bump_filter                                                  no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;score_molecules                                              no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;atom_model                                                   all&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;vdw_defn_file                                                $dock66_dir/parameters/vdw_AMBER_parm99.defn&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;flex_defn_file                                               $dock66_dir/parameters/flex.defn&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;flex_drive_file                                              $dock66_dir/parameters/flex_drive.tbl&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;ligand_outfile_prefix                                        output&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;write_orientations                                           no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;num_scored_conformers                                        1&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;rank_ligands                                                 no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 $dock66_dir/bin/dock6 -i temp.in &amp;gt; dock6.log&lt;br /&gt;
 &lt;br /&gt;
 grep &amp;quot;HA_RMSD&amp;quot; output_scored.mol2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Acknowledgments==&lt;br /&gt;
Thanks to Trent for pointing out this great new feature in DOCK 6.6.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Phenix&amp;diff=5491</id>
		<title>Phenix</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Phenix&amp;diff=5491"/>
		<updated>2013-05-06T23:34:17Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Calculate electron densities using Phenix==&lt;br /&gt;
&lt;br /&gt;
Here are a couple of useful phenix commands to calculate electron densities. In docking, it is often useful to have a look at electron densities, especially for proteins and ligands determined at low resolution.&lt;br /&gt;
Also, you may want to display them in Pymol: here[link] is described how you generate a electron density map in CCP4 format map, which is required for Pymol.&lt;br /&gt;
&lt;br /&gt;
===1. Download PDB coordinates and structure factors from PDB.ORG===&lt;br /&gt;
&lt;br /&gt;
[[File:Pdb sf download.jpg|thumb|right|alt=Where to download files from PDB entry.|Where to download files from PDB entry.]] To calculate a electron density, you need to download PDB coordinates and structure factors (Miller indices and measured intensities) from the PDB. On pdb.org, there is a dropdown menu on the right top corner of each entry site where PDB and structure factors can be downloaded (see image on the right).&lt;br /&gt;
&lt;br /&gt;
===2. Calculate electron densities from deposited structure factors===&lt;br /&gt;
&lt;br /&gt;
You can calculate an electron density (CCP4 format for Pymol and mtz format for Coot) using a PDB and structure factors using Phenix. &amp;lt;br&amp;gt;&lt;br /&gt;
If you want a 2Fo-Fc map, simply type:&lt;br /&gt;
&lt;br /&gt;
 phenix.maps 4DJH.pdb 4djh-sf.cif&lt;br /&gt;
&lt;br /&gt;
If you want a Fo-Fc difference density map from deposited structure factors, type:&lt;br /&gt;
&lt;br /&gt;
 phenix.maps 4DJH.pdb 4djh-sf.cif maps.map.map_type=Fo-F&lt;br /&gt;
&lt;br /&gt;
===3. Calculate a simulated annealing (SA) omit map===&lt;br /&gt;
&lt;br /&gt;
Sometimes it is interesting to see how much density of a ligand is left upon removal of the ligand (or protein residues or water molecules) from your model. &amp;lt;br&amp;gt;&lt;br /&gt;
You can calculate a simulated annealing (SA) omit map using Phenix like this: &lt;br /&gt;
&lt;br /&gt;
 # remove ligands and water molecules&lt;br /&gt;
 grep -v HETATM 4DJH.pdb &amp;gt; 4DJH_no_HETATM.pdb&lt;br /&gt;
 &lt;br /&gt;
 # Run Phenix refinement including simulated annealing&lt;br /&gt;
 phenix.refine 4djh-sf.cif 4DJH_no_HETATM.pdb simulated_annealing=true&lt;br /&gt;
 &lt;br /&gt;
 # Generate a CCP4 map for Pymol:&lt;br /&gt;
 phenix.maps maps.map.map_type=Fo-Fc 4DJH_no_HETATM.pdb 4DJH_no_HETATM_refine_001.mtz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===4. Display electron densities in Pymol===&lt;br /&gt;
&lt;br /&gt;
Pymol wants CCP4 maps as input. To generate those, we use Phenix as described above. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Sa omit map2.png|thumb|upright=1.35|right|alt=SA omit map around kappa ligand in green, 2Fo-Fc map in cyan. The ligand and water molecules show up nicely, although they were omitted during refinement. |SA omit map around kappa ligand in green, 2Fo-Fc map in cyan. The ligand and water molecules show up nicely, although they were omitted during refinement.]] &lt;br /&gt;
Here is a Pymol script to show density around the ligand and it&#039;s surrounding residues:&lt;br /&gt;
&lt;br /&gt;
 load 4DJH.pdb, kappa_opiod_rec&lt;br /&gt;
 load 4DJH_2mFo-DFc_map.ccp4&lt;br /&gt;
 load 4DJH_no_HETATM_Fo-Fc_map.ccp4, SA_omit&lt;br /&gt;
 &lt;br /&gt;
 select lig, resn JDC AND chain A&lt;br /&gt;
 cmd.show(&amp;quot;sticks&amp;quot;    ,&amp;quot;lig&amp;quot;)&lt;br /&gt;
 select around_lig, lig expand 10&lt;br /&gt;
 &lt;br /&gt;
 isomesh fo-fc_map, SA_omit, 3.0, around_lig&lt;br /&gt;
 isomesh 2fo-fc_map, 4DJH_2mFo-DFc_map, 1.0, around_lig&lt;br /&gt;
 cmd.color(5,&amp;quot;2fo-fc_map&amp;quot;)&lt;br /&gt;
 cmd.color(3,&amp;quot;fo-fc_map&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 orient lig&lt;br /&gt;
 &lt;br /&gt;
 set_view (\&lt;br /&gt;
     -0.552325428,   -0.811329126,   -0.191545352,\&lt;br /&gt;
      0.833266199,   -0.543944836,   -0.098800458,\&lt;br /&gt;
     -0.024021570,   -0.214180335,    0.976500750,\&lt;br /&gt;
      0.001199273,   -0.000215724,  -52.703464508,\&lt;br /&gt;
      4.263263702,  -21.972831726,   57.798912048,\&lt;br /&gt;
     48.832965851,   56.566112518,  -20.000000000 )&lt;br /&gt;
 &lt;br /&gt;
 set ray_shadow, off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Acknowledgments==&lt;br /&gt;
Thanks to the Phenix and Pymol developers.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Screen3d&amp;diff=5490</id>
		<title>Screen3d</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Screen3d&amp;diff=5490"/>
		<updated>2013-05-06T23:33:30Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Sceen3d: Align ligands in 3D==&lt;br /&gt;
&lt;br /&gt;
This tool is useful if you want to align (superpose) conformations of a ligand (for example generated by OMEGA). Maybe you are interested to find out if a bioactive conformation of a ligand as represented in a crystal structure is actually generated by OMEGA.&lt;br /&gt;
&lt;br /&gt;
===1. Output OMEGA conformations (generated by dbgen.csh) into mol2 file===&lt;br /&gt;
&lt;br /&gt;
To output OMEGA conformations generated by dbgen.csh into mol2 file, run the following commands:&lt;br /&gt;
&lt;br /&gt;
 # tell dbgen.csh to skip file deletion:&lt;br /&gt;
 setenv DEBUG 1&lt;br /&gt;
 # run dbgen.csh on your xtal-ligand:&lt;br /&gt;
 dbgen.csh xtal-lig1-.ism&lt;br /&gt;
 # copy the mol2 file with all OMEGA conformations generated for your xtal-ligand:&lt;br /&gt;
 cp ref/TEMP00000001.mol2/3_1.1.save.mol2&lt;br /&gt;
 # count the number of conformations:&lt;br /&gt;
 grep -c TEMP00000001 3_1.1.save.mol2&lt;br /&gt;
&lt;br /&gt;
===2. Superpose OMEGA conformations on xtal-ligand===&lt;br /&gt;
&lt;br /&gt;
[[File:Dock4 noEstat.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3. |Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3.]] &lt;br /&gt;
&lt;br /&gt;
[[File:Omega1.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-30. |Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-32.]] &lt;br /&gt;
&lt;br /&gt;
Use screen3d (ChemAxon) to align the OMEGA conformations with your xtal-ligand: &amp;lt;br&amp;gt;&lt;br /&gt;
xtal-lig1-.ism: CCCCCCc1cccc(c1)NC(=O)[C@@H](CCP(=O)([O-])[OH])[NH3+] C38190873&lt;br /&gt;
&lt;br /&gt;
 # convert xtal-lig.pdb to mol2 format:&lt;br /&gt;
 convert.py --i=xtal-lig.pdb --o=xtal-lig.mol2 --add_hyd&lt;br /&gt;
 # in this case convert.py creates a double deprotonated phosphonate, &lt;br /&gt;
 # but it does not matter for this analysis, as screen3d will simply &lt;br /&gt;
 # ignore the one phosphonate hydrogen in 3_1.1.save.mol2&lt;br /&gt;
&lt;br /&gt;
 # create .ser file for xtal-ligand:&lt;br /&gt;
 screen3d g xtal-lig.mol2 -match&lt;br /&gt;
 # create .ser file for OMEGA conformations:&lt;br /&gt;
 screen3d g 3_1.1.save.mol2 -match&lt;br /&gt;
 # superpose OMEGA conformations on xtal-ligand:&lt;br /&gt;
 screen3d s -t 3_11save.ser -q xtal-lig.ser -match -oformat mol2&lt;br /&gt;
 # sort output file by 3D Tanimoto:&lt;br /&gt;
 sort -gk 3 3_11save_screenOut.txt&lt;br /&gt;
&lt;br /&gt;
Result: the highest 3D Tanimoto coefficient is 0.64.&lt;br /&gt;
&lt;br /&gt;
In the used example (xtal-lig.pdb is the co-crystallized antagonist of PDB coordinates 3V2Y), no OMEGA conformation exhibits the internal salt bridge between the amine and the phosphonate.&lt;br /&gt;
&lt;br /&gt;
However, changing OMEGA force field to mmff94s with electrostatics [setting omega.SetBuildForceField(&#039;mmff94s&#039;) and omega.SetSearchForceField(&#039;mmff94s&#039;) in omega.parm] will produce only 69 conformations, but all of them exhibit the internal salt bridge and one of them has a 3D Tanimoto coefficient of 0.80.&lt;br /&gt;
&lt;br /&gt;
==Acknowledgments==&lt;br /&gt;
Thanks to Nir for pointing me to this cool ChemAxon tool.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Omega.parm&amp;diff=5489</id>
		<title>Omega.parm</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Omega.parm&amp;diff=5489"/>
		<updated>2013-05-06T23:32:34Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: /* Acknowledgments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Changing settings for OMEGA (OpenEye)==&lt;br /&gt;
&lt;br /&gt;
You may be interested to change the default settings for OMEGA (defined in omega.py) when generating conformations for docking. Mabye you want to increase the number of conformations sampled per ligand, or the force field used.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The best way to change the settings for OMEGA is to copy a file called omega.parm into the directory where you want to generate ligand conformations using dbgen.csh. You should find a template in $DOCK_BASE/data/omega.parm&lt;br /&gt;
&lt;br /&gt;
1) Copy omega.parm in your working directory:&lt;br /&gt;
 cp $DOCK_BASE/data/omega.parm .&lt;br /&gt;
&lt;br /&gt;
(=&amp;gt; if your ligand has no rings, copy and edit omega_noring.parm ($DOCK_BASE/data/omega_noring.parm)&lt;br /&gt;
&lt;br /&gt;
2) Edit and save omega.parm (using the same name) in your favorite editor.&lt;br /&gt;
&lt;br /&gt;
3) Run dbgen.csh with altered settings in omega.parm (has to be in directory where you run dbgen.csh):&lt;br /&gt;
 dbgen.csh my_ligs.smi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Increase ligand conformation sampling or change the type of force field==&lt;br /&gt;
&lt;br /&gt;
An example of omega.parm is shown at the bottom of this page. Settings you may want to consider changing are: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     omega.SetEnergyWindow(12.5)&lt;br /&gt;
     omega.SetMaxConfs(600)&lt;br /&gt;
     omega.SetRMSThreshold(0.80)&lt;br /&gt;
     omega.SetBuildForceField(&#039;mmff94s_NoEstat&#039;) &lt;br /&gt;
     omega.SetSearchForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
&lt;br /&gt;
*you could increase the energy window: e.g. omega.SetEnergyWindow(25.0)&lt;br /&gt;
=&amp;gt; There is no benchmarking of this setting that I am aware of...&lt;br /&gt;
&lt;br /&gt;
*you could increase the number of output conformations: e.g. omega.SetMaxConfs(10000)&lt;br /&gt;
=&amp;gt; Molecules in ZINC have a cutoff at 600 conformations, which is certainly on the low side for flexible ligands&lt;br /&gt;
&lt;br /&gt;
*you could lower the RMS threshold between the confs: e.g. omega.SetRMSThreshold(0.40)&lt;br /&gt;
=&amp;gt; This results in finer sampling of conformational space&lt;br /&gt;
&lt;br /&gt;
*you could change the force field to included electrostatics: e.g. omega.SetBuildForceField(&#039;mmff94s&#039;) and omega.SetSearchForceField(&#039;mmff94s&#039;)&lt;br /&gt;
=&amp;gt; Internal benchmarkings on DUDE (by RGC) have shown that electrostatics improves enrichment for many targets. And for ligands exhibiting internal salt bridges, it may be essential to include electrostatics during conformation generation, as shown below in the example of re-docking the S1P1R ligand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example of omega.parm===&lt;br /&gt;
&lt;br /&gt;
[[File:Dock4 noEstat.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3. |Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3.]] &lt;br /&gt;
&lt;br /&gt;
[[File:Omega1.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-30. |Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-32.]] &lt;br /&gt;
&lt;br /&gt;
 # Example omega toolkit configuration file&lt;br /&gt;
 # File Parameters&lt;br /&gt;
 SetCommentEnergy(False)&lt;br /&gt;
 SetIncludeInput(False)&lt;br /&gt;
 SetRotorOffset(True)&lt;br /&gt;
 SetSDEnergy(False)&lt;br /&gt;
 SetWarts(True)&lt;br /&gt;
 # 3D Construction Parameters&lt;br /&gt;
 SetBuildForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
 SetCanonOrder(True)&lt;br /&gt;
 SetFixDeleteH(True)&lt;br /&gt;
 SetDielectric(1.0)&lt;br /&gt;
 SetExponent(1.0)&lt;br /&gt;
 SetFixRMS(0.15)&lt;br /&gt;
 SetFromCT(False)&lt;br /&gt;
 SetFixMaxMatch(1)&lt;br /&gt;
 SetFixUniqueMatch(True)&lt;br /&gt;
 # Structure Enumeration Parameters&lt;br /&gt;
 SetEnumNitrogen(False)&lt;br /&gt;
 SetEnumRing(False)&lt;br /&gt;
 # Torsion Driving Parameters&lt;br /&gt;
 SetEnergyWindow(12.5)&lt;br /&gt;
 SetMaxConfs(600)&lt;br /&gt;
 SetMaxRotors(-1)&lt;br /&gt;
 SetMaxSearchTime(120.0)&lt;br /&gt;
 SetRangeIncrement(5)&lt;br /&gt;
 SetRMSThreshold(0.80)&lt;br /&gt;
 SetSearchForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
 SetTorsionDrive(True)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example of omega_noring.parm===&lt;br /&gt;
&lt;br /&gt;
 # Omega file with special no ring conformation parameters&lt;br /&gt;
 SetMaxConfs(30)&lt;br /&gt;
&lt;br /&gt;
==Acknowledgments==&lt;br /&gt;
Thanks to MM and RGC.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Omega.parm&amp;diff=5488</id>
		<title>Omega.parm</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Omega.parm&amp;diff=5488"/>
		<updated>2013-05-06T23:32:12Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Changing settings for OMEGA (OpenEye)==&lt;br /&gt;
&lt;br /&gt;
You may be interested to change the default settings for OMEGA (defined in omega.py) when generating conformations for docking. Mabye you want to increase the number of conformations sampled per ligand, or the force field used.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The best way to change the settings for OMEGA is to copy a file called omega.parm into the directory where you want to generate ligand conformations using dbgen.csh. You should find a template in $DOCK_BASE/data/omega.parm&lt;br /&gt;
&lt;br /&gt;
1) Copy omega.parm in your working directory:&lt;br /&gt;
 cp $DOCK_BASE/data/omega.parm .&lt;br /&gt;
&lt;br /&gt;
(=&amp;gt; if your ligand has no rings, copy and edit omega_noring.parm ($DOCK_BASE/data/omega_noring.parm)&lt;br /&gt;
&lt;br /&gt;
2) Edit and save omega.parm (using the same name) in your favorite editor.&lt;br /&gt;
&lt;br /&gt;
3) Run dbgen.csh with altered settings in omega.parm (has to be in directory where you run dbgen.csh):&lt;br /&gt;
 dbgen.csh my_ligs.smi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Increase ligand conformation sampling or change the type of force field==&lt;br /&gt;
&lt;br /&gt;
An example of omega.parm is shown at the bottom of this page. Settings you may want to consider changing are: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     omega.SetEnergyWindow(12.5)&lt;br /&gt;
     omega.SetMaxConfs(600)&lt;br /&gt;
     omega.SetRMSThreshold(0.80)&lt;br /&gt;
     omega.SetBuildForceField(&#039;mmff94s_NoEstat&#039;) &lt;br /&gt;
     omega.SetSearchForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
&lt;br /&gt;
*you could increase the energy window: e.g. omega.SetEnergyWindow(25.0)&lt;br /&gt;
=&amp;gt; There is no benchmarking of this setting that I am aware of...&lt;br /&gt;
&lt;br /&gt;
*you could increase the number of output conformations: e.g. omega.SetMaxConfs(10000)&lt;br /&gt;
=&amp;gt; Molecules in ZINC have a cutoff at 600 conformations, which is certainly on the low side for flexible ligands&lt;br /&gt;
&lt;br /&gt;
*you could lower the RMS threshold between the confs: e.g. omega.SetRMSThreshold(0.40)&lt;br /&gt;
=&amp;gt; This results in finer sampling of conformational space&lt;br /&gt;
&lt;br /&gt;
*you could change the force field to included electrostatics: e.g. omega.SetBuildForceField(&#039;mmff94s&#039;) and omega.SetSearchForceField(&#039;mmff94s&#039;)&lt;br /&gt;
=&amp;gt; Internal benchmarkings on DUDE (by RGC) have shown that electrostatics improves enrichment for many targets. And for ligands exhibiting internal salt bridges, it may be essential to include electrostatics during conformation generation, as shown below in the example of re-docking the S1P1R ligand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example of omega.parm===&lt;br /&gt;
&lt;br /&gt;
[[File:Dock4 noEstat.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3. |Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3.]] &lt;br /&gt;
&lt;br /&gt;
[[File:Omega1.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-30. |Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-32.]] &lt;br /&gt;
&lt;br /&gt;
 # Example omega toolkit configuration file&lt;br /&gt;
 # File Parameters&lt;br /&gt;
 SetCommentEnergy(False)&lt;br /&gt;
 SetIncludeInput(False)&lt;br /&gt;
 SetRotorOffset(True)&lt;br /&gt;
 SetSDEnergy(False)&lt;br /&gt;
 SetWarts(True)&lt;br /&gt;
 # 3D Construction Parameters&lt;br /&gt;
 SetBuildForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
 SetCanonOrder(True)&lt;br /&gt;
 SetFixDeleteH(True)&lt;br /&gt;
 SetDielectric(1.0)&lt;br /&gt;
 SetExponent(1.0)&lt;br /&gt;
 SetFixRMS(0.15)&lt;br /&gt;
 SetFromCT(False)&lt;br /&gt;
 SetFixMaxMatch(1)&lt;br /&gt;
 SetFixUniqueMatch(True)&lt;br /&gt;
 # Structure Enumeration Parameters&lt;br /&gt;
 SetEnumNitrogen(False)&lt;br /&gt;
 SetEnumRing(False)&lt;br /&gt;
 # Torsion Driving Parameters&lt;br /&gt;
 SetEnergyWindow(12.5)&lt;br /&gt;
 SetMaxConfs(600)&lt;br /&gt;
 SetMaxRotors(-1)&lt;br /&gt;
 SetMaxSearchTime(120.0)&lt;br /&gt;
 SetRangeIncrement(5)&lt;br /&gt;
 SetRMSThreshold(0.80)&lt;br /&gt;
 SetSearchForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
 SetTorsionDrive(True)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example of omega_noring.parm===&lt;br /&gt;
&lt;br /&gt;
 # Omega file with special no ring conformation parameters&lt;br /&gt;
 SetMaxConfs(30)&lt;br /&gt;
&lt;br /&gt;
==Acknowledgments==&lt;br /&gt;
Thanks to Michael M. and RGC.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Plop&amp;diff=5487</id>
		<title>Plop</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Plop&amp;diff=5487"/>
		<updated>2013-05-06T23:31:31Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Energy minimization using Plop==&lt;br /&gt;
This page describes simple protocols for receptor/active site and ligand minimization using Plop.&amp;lt;br&amp;gt;&lt;br /&gt;
Check also the Plop manual on the Jacobson Wiki: http://wiki.jacobsonlab.org/index.php/Plop_manual &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The workflow consists of the following three steps:&lt;br /&gt;
#[http://wiki.uoft.bkslab.org/index.php/Plop#1._Add_hydrogens_to_your_ligand_and_convert_to_mol2_format Add hydrogens to your ligand and convert to mol2 format]&lt;br /&gt;
#[http://wiki.uoft.bkslab.org/index.php/Plop#2._Generate_ligand_template.2Fparameter_file_for_Plop Generate ligand parameters (template) for plop]&lt;br /&gt;
#[http://wiki.uoft.bkslab.org/index.php/Plop#3._Minimize_protein_and.2For_ligand_using_Plop Minimize protein and/or ligand]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===1. Add hydrogens to your ligand and convert to mol2 format===&lt;br /&gt;
To run plop with a ligand, you need a template/parameter file for your ligand. To generate a template (section 2), you need a mol2 file with hydrogens. There are dozen of ways to add hydrogens (mostly absent in crystal structures) to your ligand. Whatever method you use (eg. convert.py, Chimera or Maestro for example), please check that the hydrogens are added correctly! Also check in the output mol2 file if all atoms have the right atom types. Ligands in crystal structures often have subtly incorrect geometries, which may confuse programs. I found adding hydrogens and conversion to mol2 format most reliable done with Maestro, but in most cases, you may simply use the following command: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 convert.py --i=ML5.pdb --o=ML5.mol2 --add_hyd&lt;br /&gt;
&lt;br /&gt;
===2. Generate ligand template/parameter file for Plop===&lt;br /&gt;
Use plop_ff_params.csh to generate a template for Plop.&lt;br /&gt;
&lt;br /&gt;
 plop_ff_params.csh ML5.mol2&lt;br /&gt;
&lt;br /&gt;
plop_ff_params.csh:&lt;br /&gt;
 #!/bin/csh -f&lt;br /&gt;
 # Jens Carlsson 2010&lt;br /&gt;
 # Generates OPLSAA 2005 force field file for HETATM using Maestro&lt;br /&gt;
 set SCHRUTIL = /raid3/software/schrodinger/2010u1.1/utilities&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
 $SCHRUTIL/mol2convert -imol2 $1 -omae $1:r.mae&lt;br /&gt;
 $SCHRUTIL/hetgrp_ffgen 2005 $1:r.mae&lt;br /&gt;
 $SCHRUTIL/pdbconvert -imae $1:r.mae -opdb $1:r.pdb&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
 cp $1:r {$1:r}e&lt;br /&gt;
&lt;br /&gt;
This script generates three output files: ML5.mae, ml5 (template) and ML5.pdb &amp;lt;br&amp;gt;&lt;br /&gt;
Replace the ligand coordinates in your receptor with ML5.pdb and make sure that the template file (ml5) is the directory where you run plop. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===3. Minimize protein and/or ligand using Plop===&lt;br /&gt;
&lt;br /&gt;
Make a command file for plop (see example below) and run Plop: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 plop plop_side_4A_no_lig.com &amp;gt; plop_side_4A_no_lig.log&lt;br /&gt;
&lt;br /&gt;
[[File:Xtal.png|thumb|right|alt=Hydrogen bonding network around phosphonate in S1P1R crystal structure [PDB ID 3V2Y]. |Hydrogen bonding network around phosphonate in S1P1R crystal structure [PDB ID 3V2Y]]] &lt;br /&gt;
&lt;br /&gt;
[[File:Plop960.png|thumb|right|alt=Hydrogen bonding network around phosphonate in S1P1R binding site after energy minimization with Plop. Note how the carboxamide of Asn101 flipped by 90 degrees. |Hydrogen bonding network around phosphonate in S1P1R binding site after energy minimization with Plop. Note how the carboxamide of Asn101 flipped by 90 degrees.]] &lt;br /&gt;
&lt;br /&gt;
[[File:Map.png|thumb|right|alt=Electron density of S1P1R binding site shows that a 90 degree flipped Asn101 fits the density equally well as the deposited Asn101 rotamer. |Electron density of S1P1R binding site shows that a 90 degree flipped Asn101 fits the density equally well as the deposited Asn101 rotamer.]] &lt;br /&gt;
&lt;br /&gt;
An example of a Plop command file (plop_side_4A_no_lig.com) is shown below: In this example only selected sidechains within a 4A radius around the ligand (defined in 4A.list) are minimized, but not the ligand, because it was excluded from the list. Lines with a number sign (#) are commented out and are not executed, but you can change this script to do other things by simply removing the number (#) signs.&lt;br /&gt;
&lt;br /&gt;
 datadir /raid3/software/plop/data&lt;br /&gt;
 load pdb 3V2Y_for_plop.pdb &amp;amp;&lt;br /&gt;
   het yes &amp;amp;&lt;br /&gt;
   wat yes &amp;amp;&lt;br /&gt;
   template ML5 ml5 &lt;br /&gt;
 &lt;br /&gt;
 # Predict side chains within a 5 Angstroem radius around the ligand  &lt;br /&gt;
 #side pred within5.0 _:1 &amp;amp;&lt;br /&gt;
 #  rand yes&lt;br /&gt;
  &lt;br /&gt;
 # minimize only the ligand&lt;br /&gt;
 #minim res single _:1 &amp;amp;&lt;br /&gt;
 #  verbose yes&lt;br /&gt;
 &lt;br /&gt;
 # Minimize residues (sidechain+backbone) within a 4 Angstroem radius around the ligand   &lt;br /&gt;
 #minim res within4.0 _:1  &amp;amp;&lt;br /&gt;
 #  verbose yes&lt;br /&gt;
 &lt;br /&gt;
 # Minimize selected sidechains &lt;br /&gt;
 minim side file 4A.list &amp;amp;&lt;br /&gt;
   verbose yes&lt;br /&gt;
 &lt;br /&gt;
 # Minimize only ligand after minimizations above &lt;br /&gt;
 #minim res single _:1 &amp;amp;&lt;br /&gt;
 #  verbose yes&lt;br /&gt;
  &lt;br /&gt;
 energy calc &lt;br /&gt;
 eval steric&lt;br /&gt;
  &lt;br /&gt;
 write pdb 3V2Y_from_plop_4A_no_lig_minim.pdb&lt;br /&gt;
&lt;br /&gt;
The list file used in the above example (4A.list) looks like this:&lt;br /&gt;
&lt;br /&gt;
 A:29    &lt;br /&gt;
 A:34    &lt;br /&gt;
 A:98    &lt;br /&gt;
 A:101   &lt;br /&gt;
 A:105   &lt;br /&gt;
 A:109   &lt;br /&gt;
 A:117   &lt;br /&gt;
 A:120   &lt;br /&gt;
 A:121   &lt;br /&gt;
 A:124   &lt;br /&gt;
 A:125   &lt;br /&gt;
 A:128   &lt;br /&gt;
 A:194   &lt;br /&gt;
 A:195   &lt;br /&gt;
 A:196   &lt;br /&gt;
 A:203   &lt;br /&gt;
 A:206   &lt;br /&gt;
 A:207   &lt;br /&gt;
 A:210   &lt;br /&gt;
 A:269   &lt;br /&gt;
 A:272   &lt;br /&gt;
 A:273   &lt;br /&gt;
 A:276   &lt;br /&gt;
 A:294   &lt;br /&gt;
 A:297   &lt;br /&gt;
 A:300   &lt;br /&gt;
 A:301   &lt;br /&gt;
&lt;br /&gt;
===Acknowledgements===&lt;br /&gt;
Thanks to Jens, CK and Frank who introduced me to Plop. And to the Jacobson lab and Schroedinger.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Filter.py:&amp;diff=5486</id>
		<title>Filter.py:</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Filter.py:&amp;diff=5486"/>
		<updated>2013-05-06T23:30:36Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Filter.py: search a substructure in DOCK poses and calculate atom distances=&lt;br /&gt;
&lt;br /&gt;
[[File:Piperidine opioid coords.png|thumb|upright=1.35|right|alt=Opioid ligands exhibit a piperdine substructure and the charged nitrogen forms a salt bridge with Asp[3.32]. |Opioid ligands exhibit a piperdine substructure and the charged nitrogen forms a salt bridge with Asp[3.32].]] &lt;br /&gt;
&lt;br /&gt;
Sometimes it is interesting to search for a substructure in your DOCK output poses and calculate distances to a reference point. This is what filter.py (courtesy from Nir) can do for you. &amp;lt;br&amp;gt;&lt;br /&gt;
For example, lots of opioid ligands exhibit a piperidine ring. The charged nitrogen of the piperidine ring forms a salt bridge with the conserved Asp[3.32] in the delta, mu and nociceptin opioid receptor crystal structures, and you may be interested to interrogate how many of your docked opioid ligands place the piperidine nitrogen within salt bridge distance of the conserved Aspartate. &lt;br /&gt;
&lt;br /&gt;
==Edit filter.py==&lt;br /&gt;
Edit filter.py (see code below): &amp;lt;br&amp;gt;&lt;br /&gt;
1. Define a substructure for your ligand(s) by providing smiles or smarts for your substructure (variable ss); &amp;lt;br&amp;gt;&lt;br /&gt;
2. Define an atom within that substructure to calculate distance from a reference point (variable attack_site); the first atom in your smiles or smarts is 0, the second is 1, the third is 2, etc. &amp;lt;br&amp;gt;&lt;br /&gt;
3. Find the x,y,z coordinates of the reference point, e.g.: -36.457 9.996 6.888&lt;br /&gt;
&lt;br /&gt;
Then run filter.py providing pdb coordinates and coordinates of the reference point:&lt;br /&gt;
 filter.py topdock.pdb -36.457 9.996 6.888 &amp;gt; filter.log&lt;br /&gt;
&lt;br /&gt;
This outputs a line for each ligand that is within a the defined vicinity threshold t, which is 15.5 Angstrom in the example below. The last number in the output (filter.log) is the distance (4.59A below).&lt;br /&gt;
&lt;br /&gt;
Example output in filter.log:&lt;br /&gt;
 1       cmpd24  -55.98  -45.59  -29.67  24.45   -5.17 4.5911097889&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==filter.py code==&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/env python&lt;br /&gt;
 import os&lt;br /&gt;
 import sys&lt;br /&gt;
 import math&lt;br /&gt;
 &lt;br /&gt;
 from openeye.oechem import *&lt;br /&gt;
 from openeye.oeomega import *&lt;br /&gt;
 &lt;br /&gt;
 #usage ./filter.py topdock.pdb -36.457   9.996   6.888&lt;br /&gt;
 &lt;br /&gt;
 def calc_dist(p1,p2):&lt;br /&gt;
     return math.sqrt((p1[0]-p2[0])**2+(p1[1]-p2[1])**2+(p1[2]-p2[2])**2)&lt;br /&gt;
 &lt;br /&gt;
 #main program&lt;br /&gt;
 #input file is the first argument&lt;br /&gt;
 infile = sys.argv[1]&lt;br /&gt;
 #x y z coords of target cys are the next 3 args &lt;br /&gt;
 cov_xyz = [0,0,0]&lt;br /&gt;
 cov_xyz[0] = float(sys.argv[2])&lt;br /&gt;
 cov_xyz[1] = float(sys.argv[3])&lt;br /&gt;
 cov_xyz[2] = float(sys.argv[4])&lt;br /&gt;
 &lt;br /&gt;
 ifs = oemolistream(infile)&lt;br /&gt;
 mol = OEGraphMol()&lt;br /&gt;
 lig_xyz = OEDoubleArray(3)&lt;br /&gt;
 &lt;br /&gt;
 #define the vicinity threashold&lt;br /&gt;
 t = 15.5&lt;br /&gt;
 #define the reactive warhead and identify the attack site&lt;br /&gt;
 &lt;br /&gt;
 #piperidine smiles; distance to nitrogen measured&lt;br /&gt;
 ss = OESubSearch(&amp;quot;CN1CCCCC1&amp;quot;)&lt;br /&gt;
 attack_site = 1&lt;br /&gt;
 &lt;br /&gt;
 #amide smarts, distance to oxygen measured&lt;br /&gt;
 #ss = OESubSearch(&amp;quot;[NX3H1][CX3](=[OX1])[#6]&amp;quot;)&lt;br /&gt;
 #attack_site = 2&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 while OEReadMolecule(ifs, mol):&lt;br /&gt;
     for count,match in enumerate(ss.Match(mol,&amp;quot;true&amp;quot;)):&lt;br /&gt;
         for ma in match.GetAtoms():&lt;br /&gt;
             #starting count from zero and target carbon is 5&lt;br /&gt;
             if (ma.pattern.GetIdx()==attack_site): &lt;br /&gt;
                 mol.GetCoords(ma.target,lig_xyz)&lt;br /&gt;
                 #print mol.GetTitle(),calc_dist(lig_xyz,cov_xyz)&lt;br /&gt;
                 d=calc_dist(lig_xyz,cov_xyz)&lt;br /&gt;
                 if d&amp;lt;t:&lt;br /&gt;
                     print mol.GetTitle(),d&lt;br /&gt;
 ifs.close()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Acknowledgments==&lt;br /&gt;
Thanks to Nir for sharing this script and to OpenEye of course.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Filter.py:&amp;diff=5485</id>
		<title>Filter.py:</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Filter.py:&amp;diff=5485"/>
		<updated>2013-05-06T23:05:11Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Filter.py: search a substructure in DOCK poses and calculate atom distances=&lt;br /&gt;
&lt;br /&gt;
[[File:Piperidine opioid coords.png|thumb|upright=1.35|right|alt=Opioid ligands exhibit a piperdine substructure and the charged nitrogen forms a salt bridge with Asp[3.32]. |Opioid ligands exhibit a piperdine substructure and the charged nitrogen forms a salt bridge with Asp[3.32].]] &lt;br /&gt;
&lt;br /&gt;
Sometimes it is interesting to search for a substructure in your DOCK output poses and calculate distances to a reference point. This is what filter.py (courtesy from Nir) can do for you. &amp;lt;br&amp;gt;&lt;br /&gt;
For example, lots of opioid ligands exhibit a piperidine ring. The charged nitrogen of the piperidine ring forms a salt bridge with the conserved Asp[3.32] in the delta, mu and nociceptin opioid receptor crystal structures, and you may be interested to interrogate how many of your docked opioid ligands place the piperidine nitrogen within salt bridge distance of the conserved Aspartate. &lt;br /&gt;
&lt;br /&gt;
==Edit filter.py==&lt;br /&gt;
Edit filter.py (see code below): &amp;lt;br&amp;gt;&lt;br /&gt;
1. Define a substructure for your ligand(s) by providing smiles or smarts for your substructure (variable ss); &amp;lt;br&amp;gt;&lt;br /&gt;
2. Define an atom within that substructure to calculate distance from a reference point (variable attack_site); the first atom in your smiles or smarts is 0, the second is 1, the third is 2, etc. &amp;lt;br&amp;gt;&lt;br /&gt;
3. Find the x,y,z coordinates of the reference point, e.g.: -36.457 9.996 6.888&lt;br /&gt;
&lt;br /&gt;
Then run filter.py providing coordinates and coordinates of the reference point:&lt;br /&gt;
 filter.py topdock.pdb -36.457 9.996 6.888 &amp;gt; filter.log&lt;br /&gt;
&lt;br /&gt;
This outputs a line for each ligand that is within a the defined vicinity threshold t, which is 15.5 Angstrom in the example below. The last number in the output (filter.log) is the distance (4.59A below).&lt;br /&gt;
&lt;br /&gt;
Example output in filter.log:&lt;br /&gt;
 1       cmpd24  -55.98  -45.59  -29.67  24.45   -5.17 4.5911097889&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==filter.py code==&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/env python&lt;br /&gt;
 import os&lt;br /&gt;
 import sys&lt;br /&gt;
 import math&lt;br /&gt;
 &lt;br /&gt;
 from openeye.oechem import *&lt;br /&gt;
 from openeye.oeomega import *&lt;br /&gt;
 &lt;br /&gt;
 #usage ./filter.py topdock.pdb -36.457   9.996   6.888&lt;br /&gt;
 &lt;br /&gt;
 def calc_dist(p1,p2):&lt;br /&gt;
     return math.sqrt((p1[0]-p2[0])**2+(p1[1]-p2[1])**2+(p1[2]-p2[2])**2)&lt;br /&gt;
 &lt;br /&gt;
 #main program&lt;br /&gt;
 #input file is the first argument&lt;br /&gt;
 infile = sys.argv[1]&lt;br /&gt;
 #x y z coords of target cys are the next 3 args &lt;br /&gt;
 cov_xyz = [0,0,0]&lt;br /&gt;
 cov_xyz[0] = float(sys.argv[2])&lt;br /&gt;
 cov_xyz[1] = float(sys.argv[3])&lt;br /&gt;
 cov_xyz[2] = float(sys.argv[4])&lt;br /&gt;
 &lt;br /&gt;
 ifs = oemolistream(infile)&lt;br /&gt;
 mol = OEGraphMol()&lt;br /&gt;
 lig_xyz = OEDoubleArray(3)&lt;br /&gt;
 &lt;br /&gt;
 #define the vicinity threashold&lt;br /&gt;
 t = 15.5&lt;br /&gt;
 #define the reactive warhead and identify the attack site&lt;br /&gt;
 &lt;br /&gt;
 #piperidine smiles; distance to nitrogen measured&lt;br /&gt;
 ss = OESubSearch(&amp;quot;CN1CCCCC1&amp;quot;)&lt;br /&gt;
 attack_site = 1&lt;br /&gt;
 &lt;br /&gt;
 #amide smarts, distance to oxygen measured&lt;br /&gt;
 #ss = OESubSearch(&amp;quot;[NX3H1][CX3](=[OX1])[#6]&amp;quot;)&lt;br /&gt;
 #attack_site = 2&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 while OEReadMolecule(ifs, mol):&lt;br /&gt;
     for count,match in enumerate(ss.Match(mol,&amp;quot;true&amp;quot;)):&lt;br /&gt;
         for ma in match.GetAtoms():&lt;br /&gt;
             #starting count from zero and target carbon is 5&lt;br /&gt;
             if (ma.pattern.GetIdx()==attack_site): &lt;br /&gt;
                 mol.GetCoords(ma.target,lig_xyz)&lt;br /&gt;
                 #print mol.GetTitle(),calc_dist(lig_xyz,cov_xyz)&lt;br /&gt;
                 d=calc_dist(lig_xyz,cov_xyz)&lt;br /&gt;
                 if d&amp;lt;t:&lt;br /&gt;
                     print mol.GetTitle(),d&lt;br /&gt;
 ifs.close()&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=File:Piperidine_opioid_coords.png&amp;diff=5484</id>
		<title>File:Piperidine opioid coords.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=File:Piperidine_opioid_coords.png&amp;diff=5484"/>
		<updated>2013-05-06T22:58:45Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Filter.py:&amp;diff=5483</id>
		<title>Filter.py:</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Filter.py:&amp;diff=5483"/>
		<updated>2013-05-06T22:54:01Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: Created page with &amp;quot;=Filter.py: search a substructure in DOCK poses and calculate atom distances=  Sometimes it is interesting to search for a substructure in your DOCK output poses and calculate...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Filter.py: search a substructure in DOCK poses and calculate atom distances=&lt;br /&gt;
&lt;br /&gt;
Sometimes it is interesting to search for a substructure in your DOCK output poses and calculate distances to a reference point. This is what filter.py (courtesy from Nir) can do for you.&lt;br /&gt;
For example, lots of opioid ligands exhibit a piperidine ring. The charged nitrogen of the piperidine ring forms a salt bridge with the conserved Asp[3.32] in the delta, mu and kappa opioid receptor crystal structures, and you may be interested to interrogate how many of your docked opioid ligands place the piperidine nitrogen within salt bridge distance of the conserved Aspartate. &lt;br /&gt;
&lt;br /&gt;
==Edit filter.py==&lt;br /&gt;
Edit filter.py (see code below): &amp;lt;br&amp;gt;&lt;br /&gt;
1. Define a substructure for your ligand(s) by providing smiles or smarts for your substructure (variable ss); &amp;lt;br&amp;gt;&lt;br /&gt;
2. Define an atom within that substructure to calculate distance from a reference point (variable attack_site); the first atom in your smiles or smarts is 0, the second is 1, the third is 2, etc.&lt;br /&gt;
&lt;br /&gt;
Then run filter.py providing coordinates and coordinates of the reference point:&lt;br /&gt;
 filter.py topdock.pdb -36.457 9.996 6.888 &amp;gt; filter.log&lt;br /&gt;
&lt;br /&gt;
This outputs a line for each ligand that is within a the defined vicinity threshold t, which is 15.5 Angstrom in the example below. The last number in the output (filter.log) is the distance (4.59A below).&lt;br /&gt;
&lt;br /&gt;
Example output in filter.log:&lt;br /&gt;
 1       cmpd24  -55.98  -45.59  -29.67  24.45   -5.17 4.5911097889&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==filter.py code==&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/env python&lt;br /&gt;
 import os&lt;br /&gt;
 import sys&lt;br /&gt;
 import math&lt;br /&gt;
 &lt;br /&gt;
 from openeye.oechem import *&lt;br /&gt;
 from openeye.oeomega import *&lt;br /&gt;
 &lt;br /&gt;
 #usage ./filter.py topdock.pdb -36.457   9.996   6.888&lt;br /&gt;
 &lt;br /&gt;
 def calc_dist(p1,p2):&lt;br /&gt;
     return math.sqrt((p1[0]-p2[0])**2+(p1[1]-p2[1])**2+(p1[2]-p2[2])**2)&lt;br /&gt;
 &lt;br /&gt;
 #main program&lt;br /&gt;
 #input file is the first argument&lt;br /&gt;
 infile = sys.argv[1]&lt;br /&gt;
 #x y z coords of target cys are the next 3 args &lt;br /&gt;
 cov_xyz = [0,0,0]&lt;br /&gt;
 cov_xyz[0] = float(sys.argv[2])&lt;br /&gt;
 cov_xyz[1] = float(sys.argv[3])&lt;br /&gt;
 cov_xyz[2] = float(sys.argv[4])&lt;br /&gt;
 &lt;br /&gt;
 ifs = oemolistream(infile)&lt;br /&gt;
 mol = OEGraphMol()&lt;br /&gt;
 lig_xyz = OEDoubleArray(3)&lt;br /&gt;
 &lt;br /&gt;
 #define the vicinity threashold&lt;br /&gt;
 t = 15.5&lt;br /&gt;
 #define the reactive warhead and identify the attack site&lt;br /&gt;
 &lt;br /&gt;
 #piperidine smiles; distance to nitrogen measured&lt;br /&gt;
 ss = OESubSearch(&amp;quot;CN1CCCCC1&amp;quot;)&lt;br /&gt;
 attack_site = 1&lt;br /&gt;
 &lt;br /&gt;
 #amide smarts, distance to oxygen measured&lt;br /&gt;
 #ss = OESubSearch(&amp;quot;[NX3H1][CX3](=[OX1])[#6]&amp;quot;)&lt;br /&gt;
 #attack_site = 2&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 while OEReadMolecule(ifs, mol):&lt;br /&gt;
     for count,match in enumerate(ss.Match(mol,&amp;quot;true&amp;quot;)):&lt;br /&gt;
         for ma in match.GetAtoms():&lt;br /&gt;
             #starting count from zero and target carbon is 5&lt;br /&gt;
             if (ma.pattern.GetIdx()==attack_site): &lt;br /&gt;
                 mol.GetCoords(ma.target,lig_xyz)&lt;br /&gt;
                 #print mol.GetTitle(),calc_dist(lig_xyz,cov_xyz)&lt;br /&gt;
                 d=calc_dist(lig_xyz,cov_xyz)&lt;br /&gt;
                 if d&amp;lt;t:&lt;br /&gt;
                     print mol.GetTitle(),d&lt;br /&gt;
 ifs.close()&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Calculate_DOCK6_RMSD&amp;diff=5482</id>
		<title>Calculate DOCK6 RMSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Calculate_DOCK6_RMSD&amp;diff=5482"/>
		<updated>2013-05-06T22:03:17Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Calculate ligand RMSDs using DOCK6==&lt;br /&gt;
&lt;br /&gt;
Calculating ligand RMSDs is a tricky thing, but DOCK6 does this quite well. &lt;br /&gt;
All you need is two ligands in mol2 format (with the same number of atoms and same Sybil atom types) and a DOCK6 binary.&lt;br /&gt;
&lt;br /&gt;
Then you run the following command:&lt;br /&gt;
&lt;br /&gt;
 ~eidamo/work/scripts/calc_dock6_rmsd.csh xtal.mol2 dock.mol2&lt;br /&gt;
&lt;br /&gt;
calc_dock6_rmsd.csh (see code below) outputs three lines:&lt;br /&gt;
&lt;br /&gt;
HA_RMSDs:		4.2878 &amp;lt;br&amp;gt;&lt;br /&gt;
HA_RMSDh:		2.7406 &amp;lt;br&amp;gt;&lt;br /&gt;
HA_RMSDm:		0.9625&lt;br /&gt;
&lt;br /&gt;
The most meaningful line is the one in the middle (HA_RMSDh), which outputs the RMSD using the Hungarian Algorithm (for more information: http://dock.compbio.ucsf.edu/DOCK_6/dock6_manual.htm)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===calc_dock6_rmsd.csh===&lt;br /&gt;
&lt;br /&gt;
 #!/bin/csh -f&lt;br /&gt;
 if ($#argv != 2) then&lt;br /&gt;
         echo &amp;quot;Usage: $0 mol.mol2 ref.mol2&amp;quot;&lt;br /&gt;
         echo &amp;quot;calculates rmsd between 2 molecules using hungarian algorithm implemented in DOCK 6&amp;quot;&lt;br /&gt;
     endif&lt;br /&gt;
 &lt;br /&gt;
 setenv dock66_dir &amp;quot;/raid1/people/tbalius/zzz.programs/dock6_2012-10-09.stonybrook&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;ligand_atom_file                                             $1&amp;quot; &amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;limit_max_ligands                                            no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;skip_molecule                                                no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;read_mol_solvation                                           no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;calculate_rmsd                                               yes&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;use_rmsd_reference_mol                                       yes&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;rmsd_reference_filename                                      $2&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;use_database_filter                                          no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;orient_ligand                                                no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;use_internal_energy                                          no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;flexible_ligand                                              no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;bump_filter                                                  no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;score_molecules                                              no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;atom_model                                                   all&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;vdw_defn_file                                                $dock66_dir/parameters/vdw_AMBER_parm99.defn&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;flex_defn_file                                               $dock66_dir/parameters/flex.defn&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;flex_drive_file                                              $dock66_dir/parameters/flex_drive.tbl&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;ligand_outfile_prefix                                        output&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;write_orientations                                           no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;num_scored_conformers                                        1&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 echo &amp;quot;rank_ligands                                                 no&amp;quot; &amp;gt;&amp;gt; temp.in&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 $dock66_dir/bin/dock6 -i temp.in &amp;gt; dock6.log&lt;br /&gt;
 &lt;br /&gt;
 grep &amp;quot;HA_RMSD&amp;quot; output_scored.mol2&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Screen3d&amp;diff=5481</id>
		<title>Screen3d</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Screen3d&amp;diff=5481"/>
		<updated>2013-05-06T21:48:02Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Sceen3d: Align ligands in 3D==&lt;br /&gt;
&lt;br /&gt;
This tool is useful if you want to align (superpose) conformations of a ligand (for example generated by OMEGA). Maybe you are interested to find out if a bioactive conformation of a ligand as represented in a crystal structure is actually generated by OMEGA.&lt;br /&gt;
&lt;br /&gt;
===1. Output OMEGA conformations (generated by dbgen.csh) into mol2 file===&lt;br /&gt;
&lt;br /&gt;
To output OMEGA conformations generated by dbgen.csh into mol2 file, run the following commands:&lt;br /&gt;
&lt;br /&gt;
 # tell dbgen.csh to skip file deletion:&lt;br /&gt;
 setenv DEBUG 1&lt;br /&gt;
 # run dbgen.csh on your xtal-ligand:&lt;br /&gt;
 dbgen.csh xtal-lig1-.ism&lt;br /&gt;
 # copy the mol2 file with all OMEGA conformations generated for your xtal-ligand:&lt;br /&gt;
 cp ref/TEMP00000001.mol2/3_1.1.save.mol2&lt;br /&gt;
 # count the number of conformations:&lt;br /&gt;
 grep -c TEMP00000001 3_1.1.save.mol2&lt;br /&gt;
&lt;br /&gt;
===2. Superpose OMEGA conformations on xtal-ligand===&lt;br /&gt;
&lt;br /&gt;
[[File:Dock4 noEstat.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3. |Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3.]] &lt;br /&gt;
&lt;br /&gt;
[[File:Omega1.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-30. |Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-32.]] &lt;br /&gt;
&lt;br /&gt;
Use screen3d (ChemAxon) to align the OMEGA conformations with your xtal-ligand: &amp;lt;br&amp;gt;&lt;br /&gt;
xtal-lig1-.ism: CCCCCCc1cccc(c1)NC(=O)[C@@H](CCP(=O)([O-])[OH])[NH3+] C38190873&lt;br /&gt;
&lt;br /&gt;
 # convert xtal-lig.pdb to mol2 format:&lt;br /&gt;
 convert.py --i=xtal-lig.pdb --o=xtal-lig.mol2 --add_hyd&lt;br /&gt;
 # in this case convert.py creates a double deprotonated phosphonate, &lt;br /&gt;
 # but it does not matter for this analysis, as screen3d will simply &lt;br /&gt;
 # ignore the one phosphonate hydrogen in 3_1.1.save.mol2&lt;br /&gt;
&lt;br /&gt;
 # create .ser file for xtal-ligand:&lt;br /&gt;
 screen3d g xtal-lig.mol2 -match&lt;br /&gt;
 # create .ser file for OMEGA conformations:&lt;br /&gt;
 screen3d g 3_1.1.save.mol2 -match&lt;br /&gt;
 # superpose OMEGA conformations on xtal-ligand:&lt;br /&gt;
 screen3d s -t 3_11save.ser -q xtal-lig.ser -match -oformat mol2&lt;br /&gt;
 # sort output file by 3D Tanimoto:&lt;br /&gt;
 sort -gk 3 3_11save_screenOut.txt&lt;br /&gt;
&lt;br /&gt;
Result: the highest 3D Tanimoto coefficient is 0.64.&lt;br /&gt;
&lt;br /&gt;
In the used example (xtal-lig.pdb is the co-crystallized antagonist of PDB coordinates 3V2Y), no OMEGA conformation exhibits the internal salt bridge between the amine and the phosphonate.&lt;br /&gt;
&lt;br /&gt;
However, changing OMEGA force field to mmff94s with electrostatics [setting omega.SetBuildForceField(&#039;mmff94s&#039;) and omega.SetSearchForceField(&#039;mmff94s&#039;) in omega.parm] will produce only 69 conformations, but all of them exhibit the internal salt bridge and one of them has a 3D Tanimoto coefficient of 0.80.&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Omega.parm&amp;diff=5480</id>
		<title>Omega.parm</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Omega.parm&amp;diff=5480"/>
		<updated>2013-05-06T21:44:37Z</updated>

		<summary type="html">&lt;p&gt;Oliv Eidam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Changing settings for OMEGA (OpenEye)==&lt;br /&gt;
&lt;br /&gt;
You may be interested to change the default settings for OMEGA (defined in omega.py) when generating conformations for docking. Mabye you want to increase the number of conformations sampled per ligand, or the force field used.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The best way to change the settings for OMEGA is to copy a file called omega.parm into the directory where you want to generate ligand conformations using dbgen.csh. You should find a template in $DOCK_BASE/data/omega.parm&lt;br /&gt;
&lt;br /&gt;
1) Copy omega.parm in your working directory:&lt;br /&gt;
 cp $DOCK_BASE/data/omega.parm .&lt;br /&gt;
&lt;br /&gt;
(=&amp;gt; if your ligand has no rings, copy and edit omega_noring.parm ($DOCK_BASE/data/omega_noring.parm)&lt;br /&gt;
&lt;br /&gt;
2) Edit and save omega.parm (using the same name) in your favorite editor.&lt;br /&gt;
&lt;br /&gt;
3) Run dbgen.csh with altered settings in omega.parm (has to be in directory where you run dbgen.csh):&lt;br /&gt;
 dbgen.csh my_ligs.smi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Increase ligand conformation sampling or change the type of force field==&lt;br /&gt;
&lt;br /&gt;
An example of omega.parm is shown at the bottom of this page. Settings you may want to consider changing are: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     omega.SetEnergyWindow(12.5)&lt;br /&gt;
     omega.SetMaxConfs(600)&lt;br /&gt;
     omega.SetRMSThreshold(0.80)&lt;br /&gt;
     omega.SetBuildForceField(&#039;mmff94s_NoEstat&#039;) &lt;br /&gt;
     omega.SetSearchForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
&lt;br /&gt;
*you could increase the energy window: e.g. omega.SetEnergyWindow(25.0)&lt;br /&gt;
=&amp;gt; There is no benchmarking of this setting that I am aware of...&lt;br /&gt;
&lt;br /&gt;
*you could increase the number of output conformations: e.g. omega.SetMaxConfs(10000)&lt;br /&gt;
=&amp;gt; Molecules in ZINC have a cutoff at 600 conformations, which is certainly on the low side for flexible ligands&lt;br /&gt;
&lt;br /&gt;
*you could lower the RMS threshold between the confs: e.g. omega.SetRMSThreshold(0.40)&lt;br /&gt;
=&amp;gt; This results in finer sampling of conformational space&lt;br /&gt;
&lt;br /&gt;
*you could change the force field to included electrostatics: e.g. omega.SetBuildForceField(&#039;mmff94s&#039;) and omega.SetSearchForceField(&#039;mmff94s&#039;)&lt;br /&gt;
=&amp;gt; Internal benchmarkings on DUDE (by RGC) have shown that electrostatics improves enrichment for many targets. And for ligands exhibiting internal salt bridges, it may be essential to include electrostatics during conformation generation, as shown below in the example of re-docking the S1P1R ligand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example of omega.parm===&lt;br /&gt;
&lt;br /&gt;
[[File:Dock4 noEstat.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3. |Comparison of crystal pose (green) to docked S1P1R ligand (cyan) with electrostatics turned off during conformation generation. No salt bridge between phosphonate and amine, DOCK score=-3.]] &lt;br /&gt;
&lt;br /&gt;
[[File:Omega1.png|thumb|right|alt=Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-30. |Comparison of crystal pose (green) to docked S1P1R ligand (yellow) with electrostatics turned on during conformation generation. Nice salt bridge between phosphonate and amine, DOCK score=-32.]] &lt;br /&gt;
&lt;br /&gt;
 # Example omega toolkit configuration file&lt;br /&gt;
 # File Parameters&lt;br /&gt;
 SetCommentEnergy(False)&lt;br /&gt;
 SetIncludeInput(False)&lt;br /&gt;
 SetRotorOffset(True)&lt;br /&gt;
 SetSDEnergy(False)&lt;br /&gt;
 SetWarts(True)&lt;br /&gt;
 # 3D Construction Parameters&lt;br /&gt;
 SetBuildForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
 SetCanonOrder(True)&lt;br /&gt;
 SetFixDeleteH(True)&lt;br /&gt;
 SetDielectric(1.0)&lt;br /&gt;
 SetExponent(1.0)&lt;br /&gt;
 SetFixRMS(0.15)&lt;br /&gt;
 SetFromCT(False)&lt;br /&gt;
 SetFixMaxMatch(1)&lt;br /&gt;
 SetFixUniqueMatch(True)&lt;br /&gt;
 # Structure Enumeration Parameters&lt;br /&gt;
 SetEnumNitrogen(False)&lt;br /&gt;
 SetEnumRing(False)&lt;br /&gt;
 # Torsion Driving Parameters&lt;br /&gt;
 SetEnergyWindow(12.5)&lt;br /&gt;
 SetMaxConfs(600)&lt;br /&gt;
 SetMaxRotors(-1)&lt;br /&gt;
 SetMaxSearchTime(120.0)&lt;br /&gt;
 SetRangeIncrement(5)&lt;br /&gt;
 SetRMSThreshold(0.80)&lt;br /&gt;
 SetSearchForceField(&#039;mmff94s_NoEstat&#039;)&lt;br /&gt;
 SetTorsionDrive(True)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example of omega_noring.parm===&lt;br /&gt;
&lt;br /&gt;
 # Omega file with special no ring conformation parameters&lt;br /&gt;
 SetMaxConfs(30)&lt;/div&gt;</summary>
		<author><name>Oliv Eidam</name></author>
	</entry>
</feed>