X Tutup
Skip to content

Commit 62a70b6

Browse files
committed
use java syntax highlighting
1 parent 3980c5d commit 62a70b6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

structure/caching.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ The main class that provides this functionality is the [AtomCache](http://www.bi
88

99
It is hidden inside the StructureIO class, that we already encountered earlier.
1010

11-
<pre>
11+
```java
1212
Structure structure = StructureIO.getStructure("4hhb");
13-
</pre>
13+
```
1414

1515
is the same as
1616

17-
<pre>
17+
```java
1818
AtomCache cache = new AtomCache();
1919
cache.getStructure("4hhb");
20-
</pre>
20+
```
2121

2222

2323
## Where are the files getting written to?
@@ -33,11 +33,11 @@ you can configure the AtomCache by setting the PDB_DIR system property
3333

3434
An alternative is to hard-code the path in this way (but setting it as a property is better style)
3535

36-
<pre>
36+
```java
3737
AtomCache cache = new AtomCache();
3838

3939
cache.setPath("/path/to/pdb/files/");
40-
</pre>
40+
```
4141

4242
## File Parsing Parameters
4343

@@ -47,7 +47,7 @@ class is the main place to influence the level of detail and as a consequence th
4747

4848
This example turns on the use of chemical components when loading a structure. (See also the [next chapter](chemcomp.md))
4949

50-
<pre>
50+
```java
5151
AtomCache cache = new AtomCache();
5252

5353
cache.setPath("/tmp/");
@@ -60,20 +60,20 @@ This example turns on the use of chemical components when loading a structure. (
6060

6161
Structure structure = StructureIO.getStructure("4hhb");
6262

63-
</pre>
63+
```
6464

6565
## Caching of other SCOP, CATH
6666

6767
The AtomCache not only provides access to PDB, it can also fetch Structure representations of protein domains, as defined by SCOP and CATH.
6868

69-
<pre>
69+
```java
7070
// uses a SCOP domain definition
7171
Structure domain1 = StructureIO.getStructure("d4hhba_");
7272

7373
// Get a specific protein chain, note: chain IDs are case sensitive, PDB IDs are not.
7474
Structure chain1 = StructureIO.getStructure("4HHB.A");
7575

76-
</pre>
76+
```
7777

7878
There are quite a number of external database IDs that are supported here. See the
7979
<a href="http://www.biojava.org/docs/api/org/biojava/bio/structure/align/util/AtomCache.html#getStructure(java.lang.String)">AtomCache documentation</a> for more details on the supported options.

0 commit comments

Comments
 (0)
X Tutup