User:Angel Herraez/Sandbox 8

From Proteopedia

< User:Angel Herraez(Difference between revisions)
Jump to: navigation, search
Current revision (20:11, 30 September 2019) (edit) (undo)
(tests for tags of the JmolExtension)
 
(8 intermediate revisions not shown.)
Line 1: Line 1:
-
==Dihedral angles (&#x03D5; and &#x03C8;) in proteins and Ramachandran plot==
+
== Test the extension ==
-
<table>
+
...This uses the inlineContents tag:
-
<tr>
+
-
<th>Structure
+
-
</th>
+
-
<th style="text-align:left;"><span style="width:380px; text-align:center; display:inline-block;">Ramachandran plot</span>
+
-
</th>
+
-
</tr>
+
-
<tr>
+
-
<td style="padding-right:1ex; vertical-align:top;">
+
<jmol>
<jmol>
 +
<size>220</size>
 +
<color>#EEEEFF</color>
<jmolApplet>
<jmolApplet>
-
<size>450</size>
+
<inlineContents>
-
<color>white</color>
+
Menthol
-
<uploadedFileContents>1iy4_34-36.pdb</uploadedFileContents>
+
OpenBabel02151916433D
-
<script>
+
 
-
r_k = 35;
+
31 31 0 0 0 0 0 0 0 0999 V2000
-
moveto 0 {426 -575 698 151.19} 85 0 0 {109.5 -2.1 -4.584} 7.74 {0 0 0} 0 0 0 3 0 0;
+
0.6797 1.2651 -0.2387 C 0 0 0 0 0 0 0 0 0 0 0 0
-
define r_m resNo=@{r_k-1}; define r_n resNo=@{r_k}; define r_o resNo=@{r_k+1};
+
1.3944 -0.0096 0.2024 C 0 0 0 0 0 0 0 0 0 0 0 0
-
define r_nN r_n and *.N; define r_nC r_n and *.C; define r_nO r_n and *.O;
+
0.6695 -1.3027 -0.2371 C 0 0 2 0 0 0 0 0 0 0 0 0
-
define r_nH r_n and *.H; define r_nCA r_n and *.CA;
+
-0.8129 -1.2397 0.2137 C 0 0 1 0 0 0 0 0 0 0 0 0
-
</script>
+
-1.5089 0.0539 -0.2208 C 0 0 0 0 0 0 0 0 0 0 0 0
-
<!--script>
+
-0.7680 1.3033 0.2480 C 0 0 2 0 0 0 0 0 0 0 0 0
-
set echo values 50 100%; echo φ= @{format("%0.0f",{r_n}.phi)} |ψ= @{format("%0.0f",{r_n}.psi)}; refresh;
+
-1.4711 2.5652 -0.2509 C 0 0 0 0 0 0 0 0 0 0 0 0
-
function toPhi(n) {
+
-1.5752 -2.3115 -0.3340 O 0 0 0 0 0 0 0 0 0 0 0 0
-
define tmp selected;
+
1.4325 -2.5688 0.2868 C 0 0 0 0 0 0 0 0 0 0 0 0
-
select r_m, r_nN, r_nH;
+
0.7873 -3.8964 -0.1292 C 0 0 0 0 0 0 0 0 0 0 0 0
-
rotateSelected {r_nCA} {r_nN} @{n - {r_n}.phi}; calculate structure;
+
2.8961 -2.5942 -0.1835 C 0 0 0 0 0 0 0 0 0 0 0 0
-
select tmp;
+
1.2254 2.1343 0.1484 H 0 0 0 0 0 0 0 0 0 0 0 0
-
};
+
0.7117 1.3341 -1.3336 H 0 0 0 0 0 0 0 0 0 0 0 0
-
function toPsi(n) {
+
2.4050 0.0252 -0.2178 H 0 0 0 0 0 0 0 0 0 0 0 0
-
define tmp selected;
+
1.5013 -0.0027 1.2947 H 0 0 0 0 0 0 0 0 0 0 0 0
-
select r_nC, r_nO, r_o;
+
-1.6086 0.0630 -1.3151 H 0 0 0 0 0 0 0 0 0 0 0 0
-
rotateSelected {r_nCA} {r_nC} @{n - {r_n}.psi}; calculate structure;
+
-2.5371 0.0569 0.1639 H 0 0 0 0 0 0 0 0 0 0 0 0
-
select tmp;
+
0.6850 -1.3476 -1.3355 H 0 0 0 0 0 0 0 0 0 0 0 0
-
};
+
-0.8654 -1.3281 1.3056 H 0 0 0 0 0 0 0 0 0 0 0 0
-
javascript fromStructToRama(true);
+
-0.7714 1.3230 1.3457 H 0 0 0 0 0 0 0 0 0 0 0 0
-
</script-->
+
-1.4921 2.6034 -1.3455 H 0 0 0 0 0 0 0 0 0 0 0 0
-
</jmolApplet>
+
-0.9581 3.4631 0.1088 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
-2.5048 2.6021 0.1085 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
-1.4957 -2.2720 -1.3025 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
1.4411 -2.5381 1.3844 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
0.5863 -3.9212 -1.2054 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
-0.1467 -4.0734 0.4111 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
1.4390 -4.7445 0.1088 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
2.9614 -2.5170 -1.2741 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
3.3900 -3.5247 0.1184 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
3.4778 -1.7803 0.2581 H 0 0 0 0 0 0 0 0 0 0 0 0
 +
1 2 1 0 0 0 0
 +
1 12 1 0 0 0 0
 +
1 13 1 0 0 0 0
 +
2 3 1 0 0 0 0
 +
2 14 1 0 0 0 0
 +
2 15 1 0 0 0 0
 +
3 4 1 1 0 0 0
 +
3 9 1 0 0 0 0
 +
3 18 1 0 0 0 0
 +
4 5 1 0 0 0 0
 +
4 8 1 0 0 0 0
 +
4 19 1 1 0 0 0
 +
5 6 1 0 0 0 0
 +
5 16 1 0 0 0 0
 +
5 17 1 0 0 0 0
 +
6 1 1 0 0 0 0
 +
6 7 1 0 0 0 0
 +
6 20 1 1 0 0 0
 +
7 21 1 0 0 0 0
 +
7 22 1 0 0 0 0
 +
7 23 1 0 0 0 0
 +
8 24 1 0 0 0 0
 +
9 10 1 0 0 0 0
 +
9 11 1 0 0 0 0
 +
9 25 1 0 0 0 0
 +
10 26 1 0 0 0 0
 +
10 27 1 0 0 0 0
 +
10 28 1 0 0 0 0
 +
11 29 1 0 0 0 0
 +
11 30 1 0 0 0 0
 +
11 31 1 0 0 0 0
 +
M END
 +
</inlineContents>
 +
</jmolApplet>
</jmol>
</jmol>
-
</td>
+
...end
-
<td>
+
-
<div style="float:left; margin-right:1ex;">
+
-
<div style="width:380px; text-align:center; font-size:0.9em; padding:0 0 4px 0;">(drag the purple point around)
+
-
</div>
+
-
<div id="rama" style="width:380px; height:380px; position:relative; border:1px solid gray;">
+
-
<div id="hCont"></div>
+
-
<div id="vCont"></div>
+
-
<div id="axisY"></div>
+
-
<div id="axisX"></div>
+
-
<div id="axisXlabel">&#x03D5;</div>
+
-
<div id="axisYlabel">&#x03C8;</div>
+
-
<div id="ramaPoint" class="draggable" data-x="180" data-y="180"></div>
+
-
</div>
+
-
</div>
+
-
<p><span class="greek">&#x03D5;</span> = phi ;
+
-
<span class="greek">&#x03C8;</span> = psi
+
-
</p>
+
-
<div class="sideOpts">
+
-
While dragging in the plot, restrict to:<br>
+
-
<span><input type="radio" name="fixAng" onClick="fix_a(0)" id="freeA" checked>none </span>
+
-
<span><input type="radio" name="fixAng" onClick="fix_a('phi')">constant phi </span>
+
-
<span><input type="radio" name="fixAng" onClick="fix_a('psi')">constant psi </span>
+
-
</div>
+
-
<div class="sideOpts">Or enter values:<br>
+
-
<span style="padding-right:1ex;"><span class="greek">&#x03D5;</span> =
+
-
<input type="text" id="phi_V" style="width:4.5ex;"></span>
+
-
<span><span class="greek">&#x03C8;</span> =
+
-
<input type="text" id="psi_V" style="width:4.5ex;"></span>
+
-
<span><input type="button" value="apply" onClick="setStruct()"></span>
+
-
</div>
+
-
<div class="sideOpts">
+
-
Structure rotation changing one angle:<br>
+
-
<button onClick="rotate('phi');return false;"><span class="greek">&#x03D5;</span> play/pause</button>
+
-
<button onClick="rotate('psi');return false;"><span class="greek">&#x03C8;</span> play/pause</button>
+
-
</div>
+
-
<div class="sideOpts">
+
-
<input type="checkbox" id="bumps">
+
-
<span style="border-bottom:3px solid magenta;border-top:3px solid magenta;">Highlight</span> collisions or clashes <br>
+
-
(steric hindrance) <div class="Estilo1">(does not work during rotation)</div>
+
-
</div>
+
-
<div id="ramaLegend" style="clear:both; padding-top:0.3em;">
+
...This uses the wikiPageContents tag:
-
<p>Legend for Ramachandran plot:
+
<jmol>
-
</p>
+
<size>220</size>
-
<ul>
+
<color>#EEEEFF</color>
-
<li><span class="line" style="border-style:solid;"></span> boundary of rather stable conformations (favoured) </li>
+
<jmolApplet>
-
<li><span class="line" style="border-style:dashed;"></span> boundary of moderately stable conformations (allowed) </li>
+
<wikiPageContents>Menthol</wikiPageContents>
-
<li><b><span class="greek">&alpha;</span></b> alpha helix (right-handed, the usual one)</li>
+
</jmolApplet>
-
<li><b>L<span class="greek">&alpha;</span></b> left-handed alpha helix (less common)</li>
+
</jmol>
-
<li><b>3<sub>10</sub></b> 3_10 helix</li>
+
...end
-
<li><b>&beta;</b> beta strand, beta sheet</li>
+
-
<li><b>poly P</b> polyproline helix (also collagen)</li>
+
-
</ul>
+
-
</div>
+
-
</td>
+
-
</tr>
+
-
</table>
+
-
 
+
...This uses the uploadedFileContents tag:
-
<p style="font-size:0.8em; color:gray;">
+
<jmol>
-
Image of Ramachandran plot areas modified from &#8220;[https://commons.wikimedia.org/wiki/File%3ARamachandran_plot_original_outlines.jpg|Ramachandran_plot_original_outlines]&#8221; by Dcrjsr [CC-BY license]
+
<size>220</size>
-
</p>
+
<color>#EEEEFF</color>
 +
<jmolApplet>
 +
<uploadedFileContents>Menthol.mol</uploadedFileContents>
 +
</jmolApplet>
 +
</jmol>
 +
...end

Current revision

Test the extension

...This uses the inlineContents tag:

Drag the structure with the mouse to rotate

...end

...This uses the wikiPageContents tag:

Drag the structure with the mouse to rotate

...end

...This uses the uploadedFileContents tag:

Drag the structure with the mouse to rotate

...end

Proteopedia Page Contributors and Editors (what is this?)

Angel Herraez

Personal tools