Skip to content

Commit 4ccebed

Browse files
committed
Update chemcomp.md
1 parent 1480a69 commit 4ccebed

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

structure/chemcomp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The [Chemical Component Dictionary](http://www.wwpdb.org/ccd.html) is an externa
77

88
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:
99

10-
<pre>
10+
```java
1111
Structure structure = StructureIO.getStructure("1A62");
1212

1313
for (Chain chain : structure.getChains()){
@@ -17,7 +17,7 @@ BioJava utilizes the Chem. Comp. Dictionary to achieve a chemically correct repr
1717
}
1818
}
1919
}
20-
</pre>
20+
```
2121

2222
This will give this output:
2323

@@ -58,7 +58,7 @@ By default BioJava ships with a minimal representation of standard amino acids,
5858

5959
You can enable the first behaviour by doing using the [FileParsingParameters](http://www.biojava.org/docs/api/org/biojava/bio/structure/io/FileParsingParameters.html) class:
6060

61-
<pre>
61+
```java
6262
AtomCache cache = new AtomCache();
6363

6464
// by default all files are stored at a temporary location.
@@ -74,10 +74,10 @@ You can enable the first behaviour by doing using the [FileParsingParameters](ht
7474
StructureIO.setAtomCache(cache);
7575

7676
Structure structure = StructureIO.getStructure(...);
77-
</pre>
77+
```
7878

7979
If you want to enable the second behaviour (slow loading of all chem comps at startup, but no further small delays later on) you can use the same code but change the behaviour by switching the [ChemCompProvider](http://www.biojava.org/docs/api/org/biojava/bio/structure/io/mmcif/ChemCompProvider.html) implementation in the [ChemCompGroupFactory](http://www.biojava.org/docs/api/org/biojava/bio/structure/io/mmcif/ChemCompGroupFactory.html)
8080

81-
<pre>
81+
```java
8282
ChemCompGroupFactory.setChemCompProvider(new AllChemCompProvider());
83-
</pre>
83+
```

0 commit comments

Comments
 (0)