You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -42,7 +42,7 @@ If you already have a local PDB installation, you can configure where BioJava sh
42
42
43
43
By default BioJava is using the PDB file format for parsing data. In order to switch it to use mmCIF, we can take control over the underlying [AtomCache](http://www.biojava.org/docs/api/org/biojava/bio/structure/align/util/AtomCache.html) which manages your PDB (and btw. also SCOP, CATH) installations.
44
44
45
-
<pre>
45
+
```java
46
46
AtomCache cache =newAtomCache();
47
47
48
48
cache.setUseMmCif(true);
@@ -57,15 +57,15 @@ By default BioJava is using the PDB file format for parsing data. In order to sw
57
57
58
58
// and let's count how many chains are in this structure.
59
59
System.out.println(structure.getChains().size());
60
-
</pre>
60
+
```
61
61
62
62
As you can see, the AtomCache will again download the missing mmCIF file for 4HHB in the background.
63
63
64
64
## Low level access
65
65
66
66
If you want to learn how to use the BioJava mmCIF parser to populate your own data structure, let's first take a look this lower-level code:
@@ -84,7 +84,7 @@ If you want to learn how to use the BioJava mmCIF parser to populate your own da
84
84
85
85
// now get the protein structure.
86
86
Structure cifStructure = consumer.getStructure();
87
-
</pre>
87
+
```
88
88
89
89
The parser operates similar to a XML parser by triggering "events". The [SimpleMMcifConsumer](http://www.biojava.org/docs/api/org/biojava/bio/structure/io/mmcif/SimpleMMcifConsumer.html) listens to new categories being read from the file and then builds up the BioJava data model.
0 commit comments