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(" Chain: " + c.getChainID() + " # groups with atoms: " + c.getAtomGroups().size());
93
+
83
94
for (Group g: c.getAtomGroups()){
84
95
85
96
if ( g.getPDBName().equalsIgnoreCase("HEM")) {
86
97
87
-
System.out.println(g);
98
+
System.out.println(" " + g);
88
99
89
100
for (Atom a: g.getAtoms()) {
90
101
91
-
System.out.println(a);
102
+
System.out.println(" " + a);
92
103
93
104
}
94
105
}
95
106
}
96
107
}
97
108
</pre>
98
109
99
-
This will display
100
-
101
-
<pre>
102
-
# of compounds (entities) 2
103
-
Compound: 1 HEMOGLOBIN (DEOXY) (ALPHA CHAIN) Engineered: YES OrganismScientific: HOMO SAPIENS OrganismTaxId: 9606 OrganismCommon: HUMAN Chains: ChainId: A C
104
-
Compound: 2 HEMOGLOBIN (DEOXY) (BETA CHAIN) Engineered: YES OrganismScientific: HOMO SAPIENS OrganismTaxId: 9606 OrganismCommon: HUMAN Chains: ChainId: B D
105
-
# chains: 4
106
-
Chain: A
107
-
Hetatom 142 HEM true atoms: 43
108
-
CHA (CHA) C 4389 8.585 7.902 -18.282
109
-
CHB (CHB) C 4390 10.355 9.805 -14.208
110
-
...
111
-
Chain: B
112
-
Hetatom 148 HEM true atoms: 43
113
-
CHA (CHA) C 4433 9.659 -10.155 20.773
114
-
CHB (CHB) C 4434 11.121 -12.19 16.575
115
-
...
116
-
Chain: C
117
-
Hetatom 142 HEM true atoms: 43
118
-
CHA (CHA) C 4476 -8.63 7.776 18.352
119
-
CHB (CHB) C 4477 -10.32 10.048 14.384
120
-
...
121
-
Chain: D
122
-
Hetatom 148 HEM true atoms: 43
123
-
CHA (CHA) C 4520 -9.813 -9.884 -20.599
124
-
CHB (CHB) C 4521 -11.252 -11.989 -16.61
125
-
...
126
-
</pre>
127
-
128
-
129
110
## Working with groups
130
111
131
112
The [Group](http://www.biojava.org/docs/api/org/biojava/bio/structure/Group.html) interface defines all methods common to a group of atoms. There are 3 types of Groups:
0 commit comments