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
Copy file name to clipboardExpand all lines: structure/chemcomp.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,20 @@ The Chemical Component Dictionary
3
3
4
4
The [Chemical Component Dictionary](http://www.wwpdb.org/ccd.html) is an external reference file describing all residue and small molecule components found in PDB entries. This dictionary contains detailed chemical descriptions for standard and modified amino acids/nucleotides, small molecule ligands, and solvent molecules.
5
5
6
-
### How does BioJava decide what groups are amino acids?
6
+
### How Does BioJava Decide what Groups Are Amino Acids?
7
7
8
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:
if ( group.getPDBName().equals("MSE") || group.getPDBName().equals("HOH")){
16
+
System.out.println(group.getPDBName() +" is a group of type "+ group.getType());
17
+
}
18
+
}
19
+
}
20
20
```
21
21
22
22
This will give this output:
@@ -50,18 +50,19 @@ As you can see, although MSE is flaged as HETATM in the PDB file, BioJava still
50
50
</table>
51
51
52
52
53
-
### How to access Chemical Component definitions
53
+
### How to Access Chemical Component Definitions
54
+
54
55
By default BioJava ships with a minimal representation of standard amino acids, which is useful when you just want to work with atoms and a basic data representation. However if you want to work with a correct representation (e.g. distinguish ligands from the polypeptide chain, correctly resolve chemically modified residues), it is good to tell the library to either
55
56
56
-
1.fetch missing Chemical Component definitions on the fly (small download and parsing delays every time a new chemical compound is found), or
57
-
2. Load all definitions at startup (slow startup, but then no further delays later on, requires more memory)
57
+
1.Fetch missing **Chemical Component Definitions** on the fly (small download and parsing delays every time a new chemical compound is found), or
58
+
2. Load all **Chemical Component Definitions** at startup (slow startup, but then no further delays later on, requires more memory)
58
59
59
60
You can enable the first behaviour by doing using the [FileParsingParameters](http://www.biojava.org/docs/api/org/biojava/nbio/structure/io/FileParsingParameters.html) class:
60
61
61
62
```java
62
63
AtomCache cache =newAtomCache();
63
64
64
-
// by default all files are stored at a temporary location.
65
+
// by default all files are stored at a temporary location.
65
66
// you can set this either via at startup with -DPDB_DIR=/path/to/files/
66
67
// or hard code it this way:
67
68
cache.setPath("/tmp/");
@@ -88,9 +89,9 @@ If you want to enable the second behaviour (slow loading of all chem comps at st
88
89
89
90
Navigation:
90
91
[Home](../README.md)
91
-
| [Book 3: The Protein Structure modules](README.md)
92
+
| [Book 3: The Structure modules](README.md)
92
93
| Chapter 5 : Chemical Component Dictionary
93
94
94
95
Prev: [Chapter 4 : Local installations](caching.md)
95
96
96
-
Next: [Chapter 6 : work with mmCIF/PDBx files](mmcif.md)
97
+
Next: [Chapter 6 : Work with mmCIF/PDBx Files](mmcif.md)
0 commit comments