UNRES-Dock restart
[django_unres.git] / django_simple / todo / templates / details1.html
index 9bb24f7..27b5a1f 100644 (file)
@@ -43,7 +43,7 @@ Created {{ task.created_date  }}
                                <div class="col-md-8">
                                        {% if task.done %}
                                                <span class="fa fa-check-square-o"></span>
-                                           {% if task.type == "md" or task.type == "remd" %}
+                                           {% if task.type == "md" or task.type == "remd" or task.type == "dock" %}
                                              <form action="restart/"
                                                method="get"
                                                style="text-align;float:right;">
@@ -225,7 +225,7 @@ Created {{ task.created_date  }}
                        
         {% endif %}
 
-        {% if task.type == "remd" %}
+        {% if task.type == "remd" or task.type == "dock" %}
 
                        <li class="list-group-item task-item">
                            <div class="col-md-6"> nrep </div>
@@ -244,6 +244,21 @@ Created {{ task.created_date  }}
                            <div class="col-md-6"> pdb code</div>
                            <div class="col-md-6">{{ task.pdbcode }}</div>
                        </li>           
+                       {% if task.type == "dock" %}
+                       <li class="list-group-item task-item">
+                           <div class="col-md-6"> input pdb2 </div>
+                           <div class="col-md-6">{{ task.myfile2 }}</div>
+                       </li>           
+                       <li class="list-group-item task-item">
+                           <div class="col-md-6"> pdb code2</div>
+                           <div class="col-md-6">{{ task.pdbcode2 }}</div>
+                       </li>           
+                       <li class="list-group-item task-item">
+                           <div class="col-md-6"> dock_peptide</div>
+                           <div class="col-md-6">{{ task.dock_peptide }}</div>
+                       </li>           
+                       
+                       {% endif %}
                        <li class="list-group-item task-item">
                            <div class="col-md-6"> seed </div>
                            <div class="col-md-6">{{ task.md_seed}}</div>
@@ -358,6 +373,12 @@ Created {{ task.created_date  }}
                            <a href="/myfiles/list/{{task.jobdirname}}/">
                            {{ task.jobdirname }}
                            </a>
+                           {% if task.done %}
+                           &nbsp;
+                           <a class="btn btn-default"
+                            href="/{{task.id}}/all.zip">
+                            Download as zip</a>
+                            {% endif %}
                            </div>
                        </li>           
 
@@ -455,7 +476,7 @@ Created {{ task.created_date  }}
                        </li>
                         <li class="list-group-item task-item">
                <div class="col-md-6">
-<input id="clipRange" type="range" value=0 min=0 max= {% widthratio task.md_total_steps task.md_ntwx 1 %} step=1 ></input><span id="clipRange_val">0</span> frame
+<input id="clipRange" type="range" value=1 min=1 max= {% widthratio task.md_total_steps task.md_ntwx 1 %} step=1 ></input><span id="clipRange_val">1</span> frame
 </div>
 <div class="col-md-6">
 <button id="toggleRunMDs">run/pause MD</button>  
@@ -477,7 +498,7 @@ Created {{ task.created_date  }}
                
                           {% if task.md_pdbref %}
                        <li class="list-group-item task-item">
-                         <div class="col-md-2"> RMSD </div>
+                         <div class="col-md-2"> C<sup>&alpha;</sup> RMSD </div>
                          <div class="col-md-10"> <img 
                          src="/myfiles/download-file/{{task.jobdirname}}/md_rms.png"
                          width="500"> </div>
@@ -527,7 +548,7 @@ Created {{ task.created_date  }}
 
                        {% endif %}
                        
-                       {% if task.type == "remd" %}
+                       {% if task.type == "remd" or task.type == "dock" %}
                        
                        <li class="list-group-item task-item">
                          <div class="col-md-2"> Energy histogram </div>
@@ -553,21 +574,22 @@ Created {{ task.created_date  }}
                           {% if task.md_pdbref %}
 
                        <li class="list-group-item task-item">
-                         <div class="col-md-2"> Average RMSD vs. temperature </div>
+                         <div class="col-md-2"> Average C<sup>&alpha;</sup> RMSD vs. temperature </div>
                          <div class="col-md-10"> <img 
                          src="/myfiles/download-file/{{task.jobdirname}}/remd_rmsd.png"
                          width="500"> </div>
                        </li>
 
                        <li class="list-group-item task-item">
-                         <div class="col-md-2"> potential energy vs. RMSD</div>
+                         <div class="col-md-2"> potential energy vs.
+                         C<sup>&alpha;</sup> RMSD</div>
                          <div class="col-md-10"> <img 
                          src="/myfiles/download-file/{{task.jobdirname}}/remd_ene_rms.png"
                          width="500"> </div>
                        </li>
 
                         <li class="list-group-item task-item">
-                         <div class="col-md-2"> RMSD vs. step*replica
+                         <div class="col-md-2"> C<sup>&alpha;</sup> RMSD vs. step*replica
                          colored by bath temperature</div>
                          <div class="col-md-10"> <img 
                          src="/myfiles/download-file/{{task.jobdirname}}/remd_step_rms.png"
@@ -812,7 +834,7 @@ $('.majorpointslegend').click(function(){
 });
 </script>
 
-{% if task.type == "remd" %}
+{% if task.type == "remd" or task.type == "dock" %}
 <script>
 function display_model(numstr){
 
@@ -1208,6 +1230,7 @@ window.addEventListener("resize",
         o.addRepresentation( "licorice",{ color:
        "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"]
         });        
+        o.setPosition([0, 0, 100]);
         o.autoView();
         o.addTrajectory();
       });
@@ -1233,7 +1256,7 @@ window.addEventListener("resize",
                                        isRunning = true;
 
                     trajComp.signals.frameChanged.add(function(){
-                      var fnum=trajComp.trajectory.currentFrame;                   
+                      var fnum=trajComp.trajectory.currentFrame+1;                   
                       clipRange.value = fnum;
                       clipRange_val.innerHTML = numberWithCommas(parseInt(clipRange.value*1));
                     });
@@ -1248,7 +1271,7 @@ window.addEventListener("resize",
       var clipRange_val = document.getElementById( "clipRange_val" );
       clipRange.oninput = function( e ){
                 var trajComp = stage.getComponentsByName("unres_md").list[0].trajList[0];
-                trajComp.setFrame(e.target.value)
+                trajComp.setFrame(e.target.value-1)
                 clipRange_val.innerHTML = numberWithCommas(parseInt(e.target.value*1));
       };