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
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
-
79
49
## Loop over all the data
80
50
81
51
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
156
126
157
127
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.
158
128
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
0 commit comments