X Tutup
Skip to content

Commit 9b36978

Browse files
committed
Update structure-data-model.md
1 parent a12f4a0 commit 9b36978

File tree

1 file changed

+28
-30
lines changed

1 file changed

+28
-30
lines changed

structure/structure-data-model.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -46,36 +46,6 @@ If you want to directly access an array of [Atoms](http://www.biojava.org/docs/a
4646

4747
Alternatively you can access atoms also by their parent-group.
4848

49-
## Entities and Chains
50-
51-
Entities (in the BioJava API called compounds) are the distinct chemical components of structures in the PDB.
52-
Unlike chains, entities do not include duplicate copies and each entity is different from every other
53-
entity in the structure. There are different types of entities. Polymer entities include Protein, DNA,
54-
and RNA. Ligands are smaller chemical components that are not part of a polymer entity.
55-
56-
<pre>
57-
Structure -> Entity -> Chain
58-
</pre>
59-
60-
To explain this with an example, hemoglobin (e.g. PDB ID 4HHB) has two components, alpha
61-
and beta. Each of the entities has two copies (= chains) in the structure. IN 4HHB, alpha
62-
has the two chains with the IDs A, and C and beta the chains B, and D. In total, hemoglobin is
63-
built up out of four chains.
64-
65-
This prints all the compounds/entities in a structure
66-
<pre>
67-
Structure structure = StructureIO.getStructure("4hhb");
68-
69-
System.out.println(structure);
70-
71-
System.out.println(" # of compounds (entities) " + structure.getCompounds().size());
72-
73-
for ( Compound entity: structure.getCompounds()) {
74-
System.out.println(" " + entity);
75-
}
76-
</pre>
77-
78-
7949
## Loop over all the data
8050

8151
Here an example that loops over the whole data model and prints out the HEM groups of hemoglobin:
@@ -156,6 +126,34 @@ Since all 3 types of groups are implementing the Group interface, you can also i
156126

157127
The detection of the groups works really well in connection with the [Chemical Component Dictionary](checmcomp.md), as we will discuss in the next section. Without this dictionary, there can be inconsistencies in particular with chemically modified residues.
158128

129+
## Entities and Chains
130+
131+
Entities (in the BioJava API called compounds) are the distinct chemical components of structures in the PDB.
132+
Unlike chains, entities do not include duplicate copies and each entity is different from every other
133+
entity in the structure. There are different types of entities. Polymer entities include Protein, DNA,
134+
and RNA. Ligands are smaller chemical components that are not part of a polymer entity.
135+
136+
<pre>
137+
Structure -> Entity -> Chain
138+
</pre>
139+
140+
To explain this with an example, hemoglobin (e.g. PDB ID 4HHB) has two components, alpha
141+
and beta. Each of the entities has two copies (= chains) in the structure. IN 4HHB, alpha
142+
has the two chains with the IDs A, and C and beta the chains B, and D. In total, hemoglobin is
143+
built up out of four chains.
144+
145+
This prints all the compounds/entities in a structure
146+
<pre>
147+
Structure structure = StructureIO.getStructure("4hhb");
148+
149+
System.out.println(structure);
150+
151+
System.out.println(" # of compounds (entities) " + structure.getCompounds().size());
152+
153+
for ( Compound entity: structure.getCompounds()) {
154+
System.out.println(" " + entity);
155+
}
156+
</pre>
159157

160158

161159

0 commit comments

Comments
 (0)
X Tutup