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
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# The BioJava-structure data model
1
+
# The BioJava-Structure Data Model
2
2
3
3
A biologically and chemically meaningful data representation of PDB/mmCIF.
4
4
5
-
## The basics
5
+
## The Basics
6
6
7
-
BioJava at its core is a collection of file parsers and (in some cases) data models to represent frequently used biological data. The protein-structure modules represent macromolecular data in a way that should make it easy to work with. The representation is essentially independ of the underlying file format and the user can chose to work with either PDB or mmCIF files and still get an almost identical data representation. (There can be subtile differences between PDB and mmCIF data, for example the atom indices in a few entries are not 100% identical)
7
+
BioJava at its core is a collection of file parsers and (in some cases) data models to represent frequently used biological data. The protein-structure modules represent macromolecular data in a way that should make it easy to work with. The representation is essentially independent of the underlying file format and the user can chose to work with either PDB or mmCIF files and still get an almost identical data representation. (There can be subtile differences between PDB and mmCIF data, for example the atom indices in a few entries are not 100% identical)
8
8
9
-
## The main hierarchy
9
+
## The Main Hierarchy
10
10
11
11
BioJava provides a flexible data structure for managing protein structural data. The
12
-
[http://www.biojava.org/docs/api/org/biojava/nbio/structure/Structure.html Structure] class is the main container.
12
+
[Structure](http://www.biojava.org/docs/api/org/biojava/nbio/structure/Structure.html) class is the main container.
13
13
14
-
A Structure has a hierarchy of sub-objects:
14
+
A `Structure` has a hierarchy of sub-objects:
15
15
16
16
<pre>
17
17
Structure
@@ -25,28 +25,27 @@ Structure
25
25
Atom(s)
26
26
</pre>
27
27
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. The most common way to access chains will be via
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. The most common way to access chains is via:
29
29
30
30
```java
31
31
List<Chain> chains = structure.getChains();
32
32
```
33
33
34
-
This works for both NMR and X-ray based structures and by default the first model is getting accessed.
34
+
This works for both NMR and X-ray based structures and by default the first `Model` is getting accessed.
35
35
36
-
37
-
## Working with atoms
36
+
## Working with Atoms
38
37
39
38
Different ways are provided how to access the data contained in a [Structure](http://www.biojava.org/docs/api/org/biojava/nbio/structure/Structure.html).
40
-
If you want to directly access an array of [Atoms](http://www.biojava.org/docs/api/org/biojava/nbio/structure/Atom.html) you can use the utility class called [StructureTools](http://www.biojava.org/docs/api/org/biojava/nbio/structure/StructureTools.html)
39
+
If you want to directly access an array of representative [Atoms](http://www.biojava.org/docs/api/org/biojava/nbio/structure/Atom.html)(CA for proteins, P in nucleotides),you can use the utility class called [StructureTools](http://www.biojava.org/docs/api/org/biojava/nbio/structure/StructureTools.html)
Alternatively you can access atoms also by their parent-group.
48
47
49
-
## Loop over all the data
48
+
## Loop over All the Data
50
49
51
50
Here an example that loops over the whole data model and prints out the HEM groups of hemoglobin:
52
51
@@ -77,7 +76,7 @@ Here an example that loops over the whole data model and prints out the HEM grou
77
76
}
78
77
```
79
78
80
-
## Working with groups
79
+
## Working with Groups
81
80
82
81
The [Group](http://www.biojava.org/docs/api/org/biojava/nbio/structure/Group.html) interface defines all methods common to a group of atoms. There are 3 types of Groups:
83
82
@@ -98,7 +97,6 @@ In order to get all amino acids that have been observed in a PDB chain, you can
98
97
}
99
98
```
100
99
101
-
102
100
In a similar way you can access all nucleotide groups by
103
101
```java
104
102
chain.getAtomGroups("nucleotide");
@@ -167,8 +165,8 @@ This prints all the compounds/entities in a structure
167
165
168
166
Navigation:
169
167
[Home](../README.md)
170
-
| [Book 3: The Protein Structure modules](README.md)
0 commit comments