Skip to content

Commit 9212746

Browse files
author
Andreas Prlic
committed
trying to correctly display image in table
1 parent ba746f4 commit 9212746

2 files changed

Lines changed: 82 additions & 9 deletions

File tree

README.md

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,85 @@
1-
biojava3-tutorial
1+
BioJava 3 tutorial
22
=================
33

4-
A tutorial for BioJava 3.
4+
A brief introduction into BioJava 3.
55

66
==
77

8-
The goal of this tutorial is to provide an educational introduction into
9-
some of the features that are provided by BioJava. Please check also the [BioJava Cookbook](http://biojava.org/wiki/BioJava:CookBook3.0) for a
10-
collection of many examples of what is possible and how to do things.
8+
The goal of this tutorial is to provide an educational introduction into some of the features that are provided by BioJava.
119

10+
At the moment this tutorial is still under development. Please check the [BioJava Cookbook](http://biojava.org/wiki/BioJava:CookBook3.0) for a more comprehensive collection of many examples of what is possible with BioJava and how to do things.
11+
12+
## Index
13+
14+
Book 1: [The Protein Structure modules](structure/README.md)
15+
16+
17+
<script type="text/javascript" src="JSmol.min.js"></script>
18+
19+
<script type="text/javascript">
20+
21+
// 1/21/2013 10:54:15 PM -- adds image handling
22+
23+
var jmolApplet0; // set up in HTML table, below
24+
25+
// logic is set by indicating order of USE -- default is HTML5 for this test page, though
26+
var use = "HTML5" // JAVA HTML5 WEBGL IMAGE are all otions
27+
var s = document.location.search;
28+
29+
30+
// Developers: The debugCode flag is checked in j2s/core/core.z.js,
31+
// and, if TRUE, skips loading the core methods, forcing those
32+
// to be read from their individual directories. Set this
33+
// true if you want to do some code debugging by inserting
34+
// System.out.println, document.title, or alert commands
35+
// anywhere in the Java or Jmol code.
36+
37+
Jmol.debugCode = (s.indexOf("debugcode") >= 0);
38+
39+
jmol_isReady = function(applet) {
40+
Jmol._getElement(applet, "appletdiv").style.border="1px solid blue"
41+
}
42+
43+
var xxxx = document.location.search
44+
if (xxxx.length == 5 || xxxx.length == 0) {
45+
xxxx = (xxxx + "?1crn").substring(1,5)
46+
script = 'h2oOn=true;set animframecallback "jmolscript:if (!selectionHalos) {select model=_modelNumber}";'
47+
+'set errorCallback "myCallback";'
48+
+'set defaultloadscript "isDssp = false;set defaultVDW babel;if(!h2oOn){display !water}";'
49+
+'set zoomlarge false;set echo top left;echo loading XXXX...;refresh;'
50+
+'load "http://www.rcsb.org/pdb/files/XXXX.pdb";set echo top center;echo XXXX;'
51+
+'spacefill off;wireframe off;cartoons on;color structure;'
52+
script = script.replace(/XXXX/g, xxxx)
53+
} else {
54+
script = unescape(xxxx.substring(1))
55+
}
56+
57+
58+
var Info = {
59+
width: 450,
60+
height: 450,
61+
debug: false,
62+
color: "white",
63+
addSelectionOptions: false,
64+
serverURL: "http://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php",
65+
use: "HTML5",
66+
j2sPath: "j2s",
67+
readyFunction: jmol_isReady,
68+
script: script,
69+
//jarPath: "java",
70+
//jarFile: (useSignedApplet ? "JmolAppletSigned.jar" : "JmolApplet.jar"),
71+
//isSigned: useSignedApplet,
72+
//disableJ2SLoadMonitor: true,
73+
disableInitialConsole: true
74+
//defaultModel: "$dopamine",
75+
//console: "none", // default will be jmolApplet0_infodiv
76+
}
77+
78+
</script>
79+
80+
81+
<script type="text/javascript">
82+
83+
jmolApplet0 = Jmol.getApplet("jmolApplet0", Info)
84+
85+
</script>

structure/chemcomp.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ The [Chemical Components Dictionary](http://www.wwpdb.org/ccd.html) is an extern
55

66
### How does BioJava decide what groups are amino acids?
77

8+
BioJava utilizes the Chem. Comp. Dictionary to achieve a chemically correct representation of each group. To make it clear how this can work, let's take a look at how [Selenomethionine](http://en.wikipedia.org/wiki/Selenomethionine) and water is dealt with:
9+
810
<table>
911
<tr><td>
1012

11-
![Selenomethionine is a naturally occurring amino acid containing selenium](img/143px-Selenomethionine-from-xtal-3D-balls.png "Selenomethionine is a naturally occurring amino acid containing selenium source: wikipedia")
13+
![Selenomethionine is a naturally occurring amino acid containing selenium](img/143px-Selenomethionine-from-xtal-3D-balls.png?raw=true "Selenomethionine is a naturally occurring amino acid containing selenium source: wikipedia")
1214

1315
</td>
1416
<td>Selenomethionine is a naturally occurring amino acid containing selenium source: wikipedia
1517
</td>
1618
</tr>
1719
</table>
18-
BioJava utilizes the Chem. Comp. Dictionary to achieve a chemically correct representation of each group. To make it clear how this can work, let's take a look at how [Selenomethionine](http://en.wikipedia.org/wiki/Selenomethionine) and water is dealt with:
19-
20-
2120

2221

2322
<pre>

0 commit comments

Comments
 (0)