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/structure-data-model.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Structure
28
28
All `Structure` objects contain one or more `Models`. That means also X-ray structures contain a "virtual" model which serves as a container for the chains. This allows to represent multi-model X-ray structures, e.g. from time-series analysis. The most common way to access chains is via:
29
29
30
30
```java
31
-
List<Chain> chains = structure.getChains();
31
+
List<Chain> chains = structure.getChains();
32
32
```
33
33
34
34
This works for both NMR and X-ray based structures and by default the first `Model` is getting accessed.
@@ -58,7 +58,7 @@ Here an example that loops over the whole data model and prints out the HEM grou
58
58
59
59
for (Chain c : chains) {
60
60
61
-
System.out.println(" Chain: "+ c.getChainID() +" # groups with atoms: "+ c.getAtomGroups().size());
61
+
System.out.println(" Chain: "+ c.getId() +" # groups with atoms: "+ c.getAtomGroups().size());
62
62
63
63
for (Group g: c.getAtomGroups()){
64
64
@@ -87,35 +87,35 @@ The [Group](http://www.biojava.org/docs/api/org/biojava/nbio/structure/Group.htm
87
87
In order to get all amino acids that have been observed in a PDB chain, you can use the following utility method:
88
88
89
89
```java
90
-
Chain chain =s.getChainByPDB("A");
91
-
List<Group> groups = chain.getAtomGroups("amino");
90
+
Chain chain =structure.getPolyChainByPDB("A");
91
+
List<Group> groups = chain.getAtomGroups(GroupType.AMINOACID);
0 commit comments