Merge lp:~pierrepo/ptools/bug539468 into lp:ptools
- bug539468
- Merge into trunk
Proposed by
Pierre Poulain
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Adrien Saladin | ||||
Approved revision: | 439 | ||||
Merged at revision: | 438 | ||||
Proposed branch: | lp:~pierrepo/ptools/bug539468 | ||||
Merge into: | lp:ptools | ||||
Diff against target: |
368 lines (+103/-82) 2 files modified
PyAttract/attract.py (+53/-42) Tutorial/doc/tutorial.tex (+50/-40) |
||||
To merge this branch: | bzr merge lp:~pierrepo/ptools/bug539468 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adrien Saladin | Approve | ||
Review via email: mp+26727@code.launchpad.net |
Commit message
Description of the change
- fix bug 53946: add options to attract.py
- nicer timing message
- updated tutorial
To post a comment you must log in.
Revision history for this message
Adrien Saladin (adrien-saladin) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'PyAttract/attract.py' | |||
2 | --- PyAttract/attract.py 2010-03-29 07:43:24 +0000 | |||
3 | +++ PyAttract/attract.py 2010-06-03 17:08:23 +0000 | |||
4 | @@ -3,7 +3,7 @@ | |||
5 | 3 | from ptools import * | 3 | from ptools import * |
6 | 4 | import sys | 4 | import sys |
7 | 5 | import os | 5 | import os |
9 | 6 | import time | 6 | #import time |
10 | 7 | import datetime | 7 | import datetime |
11 | 8 | import math | 8 | import math |
12 | 9 | import string | 9 | import string |
13 | @@ -168,70 +168,80 @@ | |||
14 | 168 | 168 | ||
15 | 169 | # check if a required file is found | 169 | # check if a required file is found |
16 | 170 | def checkFile(name, comment): | 170 | def checkFile(name, comment): |
22 | 171 | flag = os.path.exists(name) | 171 | flag = os.path.exists(name) |
23 | 172 | if not flag : | 172 | if not flag : |
24 | 173 | print "ERROR: file %s is missing" %(name) | 173 | msg = "ERROR: file %s not found\n" %(name) |
25 | 174 | print "ERROR: %s" %(comment) | 174 | if comment != "": |
26 | 175 | exit(2) | 175 | msg += "ERROR: %s" %(comment) |
27 | 176 | sys.exit(msg) | ||
28 | 176 | 177 | ||
29 | 177 | 178 | ||
30 | 178 | ########################### | 179 | ########################### |
31 | 179 | ## MAIN ATTRACT PROGRAM # | 180 | ## MAIN ATTRACT PROGRAM # |
32 | 180 | ########################### | 181 | ########################### |
33 | 181 | from optparse import OptionParser | 182 | from optparse import OptionParser |
36 | 182 | parser = OptionParser() | 183 | parser = OptionParser(usage="%prog -r receptor_file -l ligand_file [-h] [-s] [-t] [--ref]") |
37 | 183 | parser.add_option("-s", "--single", action="store_true", dest="single",default=False,help="single minimization mode") | 184 | parser.add_option("-r", "--receptor", action="store", type="string", dest="receptor_name", help="name of the receptor file") |
38 | 185 | parser.add_option("-l", "--ligand", action="store", type="string", dest="ligand_name", help="name of the ligand file") | ||
39 | 186 | parser.add_option("-s", "--single", action="store_true", dest="single", default=False, help="single minimization mode") | ||
40 | 184 | parser.add_option("--ref", action="store", type="string", dest="reffile", help="reference ligand for rmsd" ) | 187 | parser.add_option("--ref", action="store", type="string", dest="reffile", help="reference ligand for rmsd" ) |
41 | 185 | parser.add_option("-t", "--translation", action="store", type="int", dest="transnb", help="translation number (distributed mode) starting from 0 for the first one!") | 188 | parser.add_option("-t", "--translation", action="store", type="int", dest="transnb", help="translation number (distributed mode) starting from 0 for the first one!") |
42 | 186 | (options, args) = parser.parse_args() | 189 | (options, args) = parser.parse_args() |
43 | 187 | 190 | ||
46 | 188 | receptor_name=args[0] | 191 | |
47 | 189 | ligand_name=args[1] | 192 | #receptor_name=args[0] |
48 | 193 | #ligand_name=args[1] | ||
49 | 190 | 194 | ||
50 | 191 | print """ | 195 | print """ |
51 | 192 | ********************************************************************** | 196 | ********************************************************************** |
52 | 197 | ** ** | ||
53 | 193 | ** ATTRACT (Python edition) ** | 198 | ** ATTRACT (Python edition) ** |
56 | 194 | ** version: this is a development version, ** | 199 | ** based on the PTools library ** |
57 | 195 | ** see below for details ** | 200 | ** ** |
58 | 196 | ********************************************************************** | 201 | ********************************************************************** |
61 | 197 | Attract.py | 202 | PTools revision %s |
62 | 198 | using PTools revision %s, from branch %s, unique id %s | 203 | from branch %s |
63 | 204 | unique id %s | ||
64 | 199 | """%(Version().revstr, Version().branchnick, Version().revid) | 205 | """%(Version().revstr, Version().branchnick, Version().revid) |
65 | 200 | 206 | ||
66 | 201 | |||
67 | 202 | |||
68 | 203 | import locale | 207 | import locale |
69 | 204 | import datetime | ||
70 | 205 | |||
71 | 206 | 208 | ||
72 | 207 | #locale.setlocale(locale.LC_ALL, 'fr_FR') | 209 | #locale.setlocale(locale.LC_ALL, 'fr_FR') |
75 | 208 | now = datetime.datetime.now() | 210 | time_start = datetime.datetime.now() |
76 | 209 | print now,"(",now.strftime("%A %B %d %Y, %H:%M"),")" | 211 | #print now,"(",now.strftime("%A %B %d %Y, %H:%M"),")" |
77 | 212 | print "Start time:", time_start | ||
78 | 210 | 213 | ||
79 | 211 | #========================== | 214 | #========================== |
80 | 212 | # check required files | 215 | # check required files |
81 | 213 | #========================== | 216 | #========================== |
82 | 214 | # receptor | 217 | # receptor |
84 | 215 | checkFile(receptor_name, "A receptor file is needed.") | 218 | if not options.receptor_name: |
85 | 219 | parser.print_help() | ||
86 | 220 | parser.error("option -r is mandatory") | ||
87 | 221 | checkFile(options.receptor_name, "") | ||
88 | 216 | # ligand | 222 | # ligand |
90 | 217 | checkFile(ligand_name, "A ligand file is needed.") | 223 | if not options.ligand_name: |
91 | 224 | parser.print_help() | ||
92 | 225 | parser.error("option -l is mandatory") | ||
93 | 226 | checkFile(options.ligand_name, "") | ||
94 | 218 | # attract.inp | 227 | # attract.inp |
96 | 219 | checkFile("attract.inp", "A parameters file is needed.") | 228 | checkFile("attract.inp", "parameters file is required.") |
97 | 220 | # aminon.par | 229 | # aminon.par |
99 | 221 | checkFile("aminon.par", "A forcefield file is needed.") | 230 | checkFile("aminon.par", "forcefield file is required.") |
100 | 222 | 231 | ||
101 | 223 | #========================== | 232 | #========================== |
102 | 224 | # read parameter file | 233 | # read parameter file |
103 | 225 | #========================== | 234 | #========================== |
104 | 226 | 235 | ||
105 | 236 | print "Reading parameters file: attract.inp" | ||
106 | 227 | (nbminim,lignames,minimlist,rstk) = readParams("attract.inp") | 237 | (nbminim,lignames,minimlist,rstk) = readParams("attract.inp") |
107 | 228 | print "rstk = ",rstk | 238 | print "rstk = ",rstk |
110 | 229 | rec=Rigidbody(receptor_name) | 239 | rec=Rigidbody(options.receptor_name) |
111 | 230 | lig=Rigidbody(ligand_name) | 240 | lig=Rigidbody(options.ligand_name) |
112 | 231 | rec=AttractRigidbody(rec) | 241 | rec=AttractRigidbody(rec) |
113 | 232 | lig=AttractRigidbody(lig) | 242 | lig=AttractRigidbody(lig) |
116 | 233 | print "Receptor (fixed) %s has %d particules" %(receptor_name,rec.Size()) | 243 | print "Reading receptor (fixed): %s with %d particules" %( options.receptor_name, rec.Size() ) |
117 | 234 | print "Ligand (mobile) %s has %d particules" %(ligand_name,lig.Size()) | 244 | print "Reading ligand (mobile): %s with %d particules" %( options.ligand_name, lig.Size() ) |
118 | 235 | 245 | ||
119 | 236 | if (options.single and options.transnb): | 246 | if (options.single and options.transnb): |
120 | 237 | parser.error("options -s and -t are mutually exclusive") | 247 | parser.error("options -s and -t are mutually exclusive") |
121 | @@ -242,28 +252,28 @@ | |||
122 | 242 | ftraj = open(trjname, "w") | 252 | ftraj = open(trjname, "w") |
123 | 243 | 253 | ||
124 | 244 | if (options.reffile): | 254 | if (options.reffile): |
126 | 245 | print "using reference file: %s"%options.reffile | 255 | checkFile(options.reffile, "") |
127 | 246 | ref=Rigidbody(options.reffile) | 256 | ref=Rigidbody(options.reffile) |
128 | 257 | print "Reading reference file: %s with %d particules" %( options.reffile, ref.Size() ) | ||
129 | 247 | refca = ref.CA() | 258 | refca = ref.CA() |
130 | 248 | if refca.Size() == 0: #No C alpha atom, ligand is probably a dna | 259 | if refca.Size() == 0: #No C alpha atom, ligand is probably a dna |
131 | 249 | Rmsd_alias = Rmsd | 260 | Rmsd_alias = Rmsd |
133 | 250 | print "No Calpha atom found for ligand (dna ?), I will calculate rmsd on all grains" | 261 | print "No Calpha atom found for ligand (DNA?). RMSD will be calculated on all grains" |
134 | 251 | else: | 262 | else: |
135 | 252 | Rmsd_alias = rmsdca | 263 | Rmsd_alias = rmsdca |
136 | 253 | 264 | ||
137 | 254 | |||
138 | 255 | if (not options.single): | 265 | if (not options.single): |
139 | 256 | #systematic docking with default translations and rotations | 266 | #systematic docking with default translations and rotations |
140 | 257 | # check for rotation.dat and translation.dat | 267 | # check for rotation.dat and translation.dat |
143 | 258 | checkFile("rotation.dat", "A rotation file is needed.") | 268 | checkFile("rotation.dat", "rotation file is required.") |
144 | 259 | checkFile("translation.dat", "A translation file is needed.\nFormer users may rename translat.dat into translation.dat.") | 269 | checkFile("translation.dat", "translation file is required.\nFormer users can rename translat.dat into translation.dat.") |
145 | 260 | translations=Translation() | 270 | translations=Translation() |
146 | 261 | rotations=Rotation() | 271 | rotations=Rotation() |
147 | 262 | else: #(single mode) | 272 | else: #(single mode) |
148 | 263 | #creates dummy translation and rotation | 273 | #creates dummy translation and rotation |
149 | 264 | translations=[[1,lig.FindCenter()]] | 274 | translations=[[1,lig.FindCenter()]] |
150 | 265 | rotations=[(0,0,0)] | 275 | rotations=[(0,0,0)] |
152 | 266 | print "Single mode" | 276 | print "Single mode simulation" |
153 | 267 | 277 | ||
154 | 268 | 278 | ||
155 | 269 | 279 | ||
156 | @@ -272,8 +282,8 @@ | |||
157 | 272 | transnb=0 | 282 | transnb=0 |
158 | 273 | if (options.transnb!=None): | 283 | if (options.transnb!=None): |
159 | 274 | # check for rotation.dat and translation.dat | 284 | # check for rotation.dat and translation.dat |
162 | 275 | checkFile("rotation.dat", "A rotation file is needed.") | 285 | checkFile("rotation.dat", "rotation file is required.") |
163 | 276 | checkFile("translation.dat", "A translation file is needed.\nFormer users may rename translat.dat into translation.dat.") | 286 | checkFile("translation.dat", "translation file is required.\nFormer users may rename translat.dat into translation.dat.") |
164 | 277 | trans=Rigidbody("translation.dat") | 287 | trans=Rigidbody("translation.dat") |
165 | 278 | co=trans.GetCoords(options.transnb) | 288 | co=trans.GetCoords(options.transnb) |
166 | 279 | translations=[[options.transnb+1,co]] | 289 | translations=[[options.transnb+1,co]] |
167 | @@ -356,8 +366,8 @@ | |||
168 | 356 | 366 | ||
169 | 357 | #output compressed ligand and receptor: | 367 | #output compressed ligand and receptor: |
170 | 358 | if ( not options.single and printFiles==True): | 368 | if ( not options.single and printFiles==True): |
173 | 359 | print compress_file(receptor_name) | 369 | print compress_file(options.receptor_name) |
174 | 360 | print compress_file(ligand_name) | 370 | print compress_file(options.ligand_name) |
175 | 361 | print compress_file("aminon.par") | 371 | print compress_file("aminon.par") |
176 | 362 | print compress_file("translation.dat") | 372 | print compress_file("translation.dat") |
177 | 363 | print compress_file("rotation.dat") | 373 | print compress_file("rotation.dat") |
178 | @@ -368,8 +378,9 @@ | |||
179 | 368 | ftraj.close() | 378 | ftraj.close() |
180 | 369 | print "Saved all minimization variables (translations/rotations) in %s" %(trjname) | 379 | print "Saved all minimization variables (translations/rotations) in %s" %(trjname) |
181 | 370 | 380 | ||
186 | 371 | 381 | # print end and elapsed time | |
187 | 372 | now = datetime.datetime.now() | 382 | time_end = datetime.datetime.now() |
188 | 373 | print "Finished at: ",now.strftime("%A %B %d %Y, %H:%M") | 383 | #print "Finished at: ",now.strftime("%A %B %d %Y, %H:%M") |
189 | 374 | 384 | print "End time:", time_end | |
190 | 385 | print "Elapsed time:", time_end - time_start | ||
191 | 375 | 386 | ||
192 | 376 | 387 | ||
193 | === modified file 'Tutorial/doc/tutorial.tex' | |||
194 | --- Tutorial/doc/tutorial.tex 2010-04-23 07:33:13 +0000 | |||
195 | +++ Tutorial/doc/tutorial.tex 2010-06-03 17:08:23 +0000 | |||
196 | @@ -90,7 +90,7 @@ | |||
197 | 90 | \subsubsection{On Debian or Debian-like systems (Ubuntu)} | 90 | \subsubsection{On Debian or Debian-like systems (Ubuntu)} |
198 | 91 | 91 | ||
199 | 92 | \begin{verbatim} | 92 | \begin{verbatim} |
201 | 93 | apt-get install scons libboost-dev libbost-python-dev gccxml | 93 | apt-get install scons libboost-dev libboost-python-dev gccxml |
202 | 94 | \end{verbatim} | 94 | \end{verbatim} |
203 | 95 | % | 95 | % |
204 | 96 | See \ref{pyplusplus} for installing necessary tools for building python bindings. | 96 | See \ref{pyplusplus} for installing necessary tools for building python bindings. |
205 | @@ -720,17 +720,20 @@ | |||
206 | 720 | \item docking parameters ({\tt attract.inp}) | 720 | \item docking parameters ({\tt attract.inp}) |
207 | 721 | \end{itemize} | 721 | \end{itemize} |
208 | 722 | 722 | ||
210 | 723 | ATTRACT can be used with different options: | 723 | ATTRACT can be used with different options. |
211 | 724 | \begin{itemize} | 724 | \begin{itemize} |
213 | 725 | \item {\tt -s}, performs one single serie of minimisations with the ligand in its initial position. | 725 | \item \verb@-r@ or \verb@--receptor@ (mandatory): defines the receptor file. |
214 | 726 | \item \verb@-l@ or \verb@--ligand@ (mandatory): defines the ligand file. | ||
215 | 727 | \item \verb@ -s@ (optional): performs one single serie of minimisations with the ligand in its initial position. | ||
216 | 726 | \item \verb@--ref@, (optional) provides a ligand PDB file as a reference (reduced). After each docking, the RMSD is calculated between this reference structure and the simulated ligand. | 728 | \item \verb@--ref@, (optional) provides a ligand PDB file as a reference (reduced). After each docking, the RMSD is calculated between this reference structure and the simulated ligand. |
218 | 727 | \item \verb!--t transnb!, loads only the translation number {\tt transnb} (and all its associated rotations). This option is very usefull for dispatching a simulation over a cluster of computers. | 729 | \item \verb@--t transnb@ (optional): loads only the translation number {\tt transnb} (and all its associated rotations). This option is very usefull for dispatching a simulation over a cluster of computers. |
219 | 730 | \item \verb@-h@ or \verb@--help@ (optional): reminds possible options. | ||
220 | 728 | \end{itemize} | 731 | \end{itemize} |
221 | 729 | 732 | ||
222 | 730 | 733 | ||
223 | 731 | A single ATTRACT simulation (optimization) may thus be obtained by: | 734 | A single ATTRACT simulation (optimization) may thus be obtained by: |
224 | 732 | \begin{verbatim} | 735 | \begin{verbatim} |
226 | 733 | attract.py receptor.red ligand.red --ref=ligand.red -s > single.att | 736 | attract.py -r receptor.red -l ligand.red --ref=ligand.red -s > single.att |
227 | 734 | \end{verbatim} | 737 | \end{verbatim} |
228 | 735 | 738 | ||
229 | 736 | The first PDB file provided must be the receptor file (and the second the ligand). | 739 | The first PDB file provided must be the receptor file (and the second the ligand). |
230 | @@ -739,72 +742,79 @@ | |||
231 | 739 | \newpage | 742 | \newpage |
232 | 740 | \linenumbers* | 743 | \linenumbers* |
233 | 741 | \begin{verbatim} | 744 | \begin{verbatim} |
234 | 742 | |||
235 | 743 | ********************************************************************** | 745 | ********************************************************************** |
236 | 746 | ** ** | ||
237 | 744 | ** ATTRACT (Python edition) ** | 747 | ** ATTRACT (Python edition) ** |
239 | 745 | ** version: 0.3 ** | 748 | ** based on the PTools library ** |
240 | 749 | ** ** | ||
241 | 746 | ********************************************************************** | 750 | ********************************************************************** |
244 | 747 | Attract.py: $Id: Attract.py 616 2008-11-25 12:42:39Z asaladin $ | 751 | PTools revision 437 |
245 | 748 | using PTools: 614 | 752 | from branch bug539468 |
246 | 753 | unique id pierre_poulain-20100603130128-awuyfelj7avtls54 | ||
247 | 749 | 754 | ||
249 | 750 | 2008-12-11 00:08:18.212859 ( Thursday December 11 2008, 00:08 ) | 755 | Start time: 2010-06-03 18:50:57.506277 |
250 | 756 | Reading parameters file: attract.inp | ||
251 | 751 | 6 series of minimizations | 757 | 6 series of minimizations |
252 | 752 | rstk = 0.0005 | 758 | rstk = 0.0005 |
257 | 753 | Receptor (fixed) receptor.red has 522 particules | 759 | Reading receptor (fixed): receptor.red with 246 particules |
258 | 754 | Ligand (mobile) ligand.red has 126 particules | 760 | Reading ligand (mobile): ligand.red with 162 particules |
259 | 755 | using reference file: ligand.red | 761 | Reading reference file: ligand.red with 162 particules |
260 | 756 | Single mode | 762 | Single mode simulation |
261 | 757 | @@@@@@@ Translation nb 1 @@@@@@@ | 763 | @@@@@@@ Translation nb 1 @@@@@@@ |
262 | 758 | ----- Rotation nb 1 ----- | 764 | ----- Rotation nb 1 ----- |
263 | 759 | {{ minimization nb 1 of 6 ; cutoff= 99.50 (A) ; maxiter= 100 | 765 | {{ minimization nb 1 of 6 ; cutoff= 99.50 (A) ; maxiter= 100 |
264 | 760 | number of free variables for the minimizer: 6 | 766 | number of free variables for the minimizer: 6 |
266 | 761 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 72 iterations | 767 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 69 iterations |
267 | 762 | {{ minimization nb 2 of 6 ; cutoff= 38.73 (A) ; maxiter= 100 | 768 | {{ minimization nb 2 of 6 ; cutoff= 38.73 (A) ; maxiter= 100 |
268 | 763 | number of free variables for the minimizer: 6 | 769 | number of free variables for the minimizer: 6 |
270 | 764 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 2 iterations | 770 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 9 iterations |
271 | 765 | {{ minimization nb 3 of 6 ; cutoff= 31.62 (A) ; maxiter= 100 | 771 | {{ minimization nb 3 of 6 ; cutoff= 31.62 (A) ; maxiter= 100 |
272 | 766 | number of free variables for the minimizer: 6 | 772 | number of free variables for the minimizer: 6 |
274 | 767 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 3 iterations | 773 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 13 iterations |
275 | 768 | {{ minimization nb 4 of 6 ; cutoff= 22.36 (A) ; maxiter= 50 | 774 | {{ minimization nb 4 of 6 ; cutoff= 22.36 (A) ; maxiter= 50 |
276 | 769 | number of free variables for the minimizer: 6 | 775 | number of free variables for the minimizer: 6 |
278 | 770 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 10 iterations | 776 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 11 iterations |
279 | 771 | {{ minimization nb 5 of 6 ; cutoff= 22.36 (A) ; maxiter= 50 | 777 | {{ minimization nb 5 of 6 ; cutoff= 22.36 (A) ; maxiter= 50 |
280 | 772 | number of free variables for the minimizer: 6 | 778 | number of free variables for the minimizer: 6 |
282 | 773 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 1 iterations | 779 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 3 iterations |
283 | 774 | {{ minimization nb 6 of 6 ; cutoff= 22.36 (A) ; maxiter= 50 | 780 | {{ minimization nb 6 of 6 ; cutoff= 22.36 (A) ; maxiter= 50 |
284 | 775 | number of free variables for the minimizer: 6 | 781 | number of free variables for the minimizer: 6 |
285 | 776 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 1 iterations | 782 | CONVERGENCE: REL_REDUCTION_OF_F <= FACTR*EPSMCH | 1 iterations |
286 | 777 | Trans Rot Ener RmsdCA_ref | 783 | Trans Rot Ener RmsdCA_ref |
288 | 778 | == 1 1 -58.3541422 1.19455904733 | 784 | == 1 1 -58.4463779 1.23525236672 |
289 | 779 | ### MAT BEGIN | 785 | ### MAT BEGIN |
293 | 780 | MAT 0.9973001 0.0414787 -0.0605965 0.4545131 | 786 | MAT 0.9941915 -0.0969983 0.0466331 0.4410928 |
294 | 781 | MAT -0.0430245 0.9987753 -0.0244310 1.9814388 | 787 | MAT 0.0984211 0.9947151 -0.0292441 -1.1030090 |
295 | 782 | MAT 0.0595089 0.0269722 0.9978633 -2.8603610 | 788 | MAT -0.0435501 0.0336639 0.9984839 0.5793707 |
296 | 783 | MAT 0.0000000 0.0000000 0.0000000 1.0000000 | 789 | MAT 0.0000000 0.0000000 0.0000000 1.0000000 |
297 | 784 | ### MAT END | 790 | ### MAT END |
298 | 785 | 791 | ||
301 | 786 | Finished at: Thursday December 11 2008, 00:08 | 792 | Saved all minimization variables (translations/rotations) in minimization.trj |
302 | 787 | 793 | End time: 2010-06-03 18:50:58.031199 | |
303 | 794 | Elapsed time: 0:00:00.524922 | ||
304 | 788 | \end{verbatim} | 795 | \end{verbatim} |
305 | 789 | \nolinenumbers | 796 | \nolinenumbers |
306 | 790 | 797 | ||
307 | 791 | \begin{itemize} | 798 | \begin{itemize} |
312 | 792 | \item{\bf line 9:} starting date and time of the simulation | 799 | \item{\bf lines 1--6:} header |
313 | 793 | \item{\bf lines 18--20:} minimization 1. Minimization index, cutoff | 800 | \item{\bf lines 7--9:} PTools library revision, branch and unique id |
314 | 794 | in \AA\ and maximum number of iterations (line~18). | 801 | \item{\bf line 11:} starting date and time of the simulation |
315 | 795 | Number of variables (line~19). End of minimization (line~20), either | 802 | \item{\bf lines 21--23:} minimization 1. Minimization index, cutoff |
316 | 803 | in \AA\ and maximum number of iterations (line~21). | ||
317 | 804 | Number of variables (line~22). End of minimization (line~23), either | ||
318 | 796 | convergence is achieved (the number of performed iterations is specified), | 805 | convergence is achieved (the number of performed iterations is specified), |
319 | 797 | either maximum number of steps is reached. | 806 | either maximum number of steps is reached. |
326 | 798 | \item{\bf lines 21--23:} minimization 2. | 807 | \item{\bf lines 24--26:} minimization 2. |
327 | 799 | \item{\bf lines 24--26:} minimization 3. | 808 | \item{\bf lines 27--29:} minimization 3. |
328 | 800 | \item{\bf lines 27--29:} minimization 4. | 809 | \item{\bf lines 30--32:} minimization 4. |
329 | 801 | \item{\bf lines 30--32:} minimization 5. | 810 | \item{\bf lines 33--35:} minimization 5. |
330 | 802 | \item{\bf lines 33--35:} minimization 6. | 811 | \item{\bf lines 36--38:} minimization 6. |
331 | 803 | \item{\bf lines 36--37:} final result after the 6 minimizations. With a single series of minimization, the default translation ({\tt Trans}) is 1 and the default rotation ({\tt Rot}) is 1. | 812 | \item{\bf lines 39--40:} final result after the 6 minimizations. With a single series of minimization, the default translation ({\tt Trans}) is 1 and the default rotation ({\tt Rot}) is 1. |
332 | 804 | Energy ({\tt Ener}) is given in RT unit and the C$_{\alpha}$-RMSD | 813 | Energy ({\tt Ener}) is given in RT unit and the C$_{\alpha}$-RMSD |
333 | 805 | ({\tt RmsdCA\_ref}) in \AA\ if the \verb@--ref@ option is specified. | 814 | ({\tt RmsdCA\_ref}) in \AA\ if the \verb@--ref@ option is specified. |
336 | 806 | \item{\bf lines 38--43:} rotation/translation matrix of the ligand compared to its initial position. | 815 | \item{\bf lines 41--46:} rotation/translation matrix of the ligand compared to its initial position. |
337 | 807 | \item{\bf line 45:} end date and time of the simulation. | 816 | \item{\bf line 49:} end date and time of the simulation. |
338 | 817 | \item{\bf line 50:} elapsed time for the simulation | ||
339 | 808 | \end{itemize} | 818 | \end{itemize} |
340 | 809 | 819 | ||
341 | 810 | Here, the final energy is -58.4~RT unit and the RMSD is 1.2~\AA, which is pretty close from the initial position. (In a \emph{perfect} simulation, RMSD would be, of course, 0.0~\AA). | 820 | Here, the final energy is -58.4~RT unit and the RMSD is 1.2~\AA, which is pretty close from the initial position. (In a \emph{perfect} simulation, RMSD would be, of course, 0.0~\AA). |
342 | @@ -813,7 +823,7 @@ | |||
343 | 813 | 823 | ||
344 | 814 | For a full systematic docking in the translational and rotational space (using both {\tt translation.dat} and {\tt rotation.dat} files), the command line is: | 824 | For a full systematic docking in the translational and rotational space (using both {\tt translation.dat} and {\tt rotation.dat} files), the command line is: |
345 | 815 | \begin{verbatim} | 825 | \begin{verbatim} |
347 | 816 | attract.py receptor.red ligand.red --ref=ligand.red > docking.att & | 826 | attract.py -r receptor.red -l ligand.red --ref=ligand.red > docking.att & |
348 | 817 | \end{verbatim} | 827 | \end{verbatim} |
349 | 818 | 828 | ||
350 | 819 | The output file {\tt docking.att} contains all informations on the docking simulation. | 829 | The output file {\tt docking.att} contains all informations on the docking simulation. |
351 | @@ -1074,7 +1084,7 @@ | |||
352 | 1074 | 1084 | ||
353 | 1075 | An ATTRACT optimization is done with: | 1085 | An ATTRACT optimization is done with: |
354 | 1076 | \begin{verbatim} | 1086 | \begin{verbatim} |
356 | 1077 | attract.py receptor.red ligand.red --ref=ligand.red -s > single.att | 1087 | attract.py -r receptor.red -l ligand.red --ref=ligand.red -s > single.att |
357 | 1078 | \end{verbatim} | 1088 | \end{verbatim} |
358 | 1079 | 1089 | ||
359 | 1080 | Here, the final energy is -38.4~RT unit and the RMSD is 1.3~\AA\ which is very close | 1090 | Here, the final energy is -38.4~RT unit and the RMSD is 1.3~\AA\ which is very close |
360 | @@ -1087,7 +1097,7 @@ | |||
361 | 1087 | 1097 | ||
362 | 1088 | A systematic docking simulation is then: | 1098 | A systematic docking simulation is then: |
363 | 1089 | \begin{verbatim} | 1099 | \begin{verbatim} |
365 | 1090 | attract.py receptor.red ligand.red --ref=ligand.red > docking.att & | 1100 | attract.py -r receptor.red -l ligand.red --ref=ligand.red > docking.att & |
366 | 1091 | \end{verbatim} | 1101 | \end{verbatim} |
367 | 1092 | 1102 | ||
368 | 1093 | The output file {\tt docking.att} contains all informations on the docking | 1103 | The output file {\tt docking.att} contains all informations on the docking |