Skip to content

Commit 583044e

Browse files
author
Andreas Prlic
committed
details
1 parent 2cd22ed commit 583044e

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

structure/mmcif.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ If you already have a local PDB installation, you can configure where BioJava sh
4040

4141
## From PDB to mmCIF
4242

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.
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](externaldb.md)) installations.
4444

4545
```java
4646
AtomCache cache = new AtomCache();
@@ -89,9 +89,9 @@ If you want to learn how to use the BioJava mmCIF parser to populate your own da
8989
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.
9090

9191
To re-use the parser for your own datamodel, just implement the [MMcifConsumer](http://www.biojava.org/docs/api/org/biojava/bio/structure/io/mmcif/MMcifConsumer.html) interface and add it to the [SimpleMMcifParser](http://www.biojava.org/docs/api/org/biojava/bio/structure/io/mmcif/SimpleMMcifParser.html).
92-
<pre>
92+
```java
9393
parser.addMMcifConsumer(myOwnConsumerImplementation);
94-
</pre>
94+
```
9595

9696
## I loaded a Structure object, what now?
9797

@@ -107,7 +107,6 @@ BioJava provides a number of algorithms and visualisation tools that you can use
107107
See the [http://mmcif.rcsb.org/](http://mmcif.rcsb.org/) site for more documentation on mmcif.
108108

109109

110-
111110
<!-- References -->
112111

113112

structure/structure-data-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Structure
2828
All structure objects contain one or more "models". That means also X-ray structures contain a "virtual" model which serves as a container for the chains. The most common way to access chains will be via
2929

3030
```java
31-
List < Chain > chains = structure.getChains();
31+
List <Chain> chains = structure.getChains();
3232
```
3333

3434
This works for both NMR and X-ray based structures and by default the first model is getting accessed.

0 commit comments

Comments
 (0)