Skip to content

Commit ae8e8b6

Browse files
author
Andreas Prlic
committed
working on tutorial
1 parent 9212746 commit ae8e8b6

4 files changed

Lines changed: 37 additions & 51 deletions

File tree

structure/README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,28 @@ A tutorial for the protein structure modules of BioJava
55

66
## Index
77

8-
98
This tutorial is split into several chapters.
109

11-
Chapter 1 - The [BioJava data model](structure-data-model.md) for the representation of macromolecular structures.
10+
Chapter 1 - Quick [Installation](installation.md)
11+
12+
Chapter 2 - First Steps
13+
14+
Chapter 3 - The [data model](structure-data-model.md) for the representation of macromolecular structures.
15+
16+
Chapter 4 - Local installations of PDB
17+
18+
Chapter 5 - The [Chemical Component Dictionary](chemcomp.md)
19+
20+
Chapter 6 - How to [work with mmCIF/PDBx files](mmcif.md)
21+
22+
Chapter 7 - SEQRES and ATOM records
23+
24+
Chapter 8 - Protein Structure Alignments
25+
26+
Chapter 9 - Biological Assemblies
27+
28+
Chapter 10 - Protein Symmetry
29+
1230

13-
Chapter 2 - The [Chemical Component Dictionary](chemcomp.md)
1431

15-
Chapter X - How to [work with mmCIF/PDBx files](mmcif.md).
1632

structure/chemcomp.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@ The [Chemical Components Dictionary](http://www.wwpdb.org/ccd.html) is an extern
77

88
BioJava utilizes the Chem. Comp. Dictionary to achieve a chemically correct representation of each group. To make it clear how this can work, let's take a look at how [Selenomethionine](http://en.wikipedia.org/wiki/Selenomethionine) and water is dealt with:
99

10-
<table>
11-
<tr><td>
12-
13-
![Selenomethionine is a naturally occurring amino acid containing selenium](img/143px-Selenomethionine-from-xtal-3D-balls.png?raw=true "Selenomethionine is a naturally occurring amino acid containing selenium source: wikipedia")
14-
15-
</td>
16-
<td>Selenomethionine is a naturally occurring amino acid containing selenium source: wikipedia
17-
</td>
18-
</tr>
19-
</table>
20-
21-
2210
<pre>
2311
Structure structure = StructureIO.getStructure("1A62");
2412

@@ -45,6 +33,22 @@ HOH is a group of type hetatm
4533

4634
As you can see, although MSE is flaged as HETATM in the PDB file, BioJava still represents it correctly as an amino acid. They key is that the [definition file for MSE](http://www.rcsb.org/pdb/files/ligand/MSE.cif) flags it as "L-PEPTIDE LINKING", which is being used by BioJava.
4735

36+
<table>
37+
<tr><td>
38+
39+
<img src="img/143px-Selenomethionine-from-xtal-3D-balls.png?raw=true" alt="Selenomethionine is a naturally occurring amino acid containing selenium" />
40+
41+
42+
</td>
43+
<td>
44+
45+
Selenomethionine is a naturally occurring amino acid containing selenium. It has the ID <a href="http://www.rcsb.org/pdb/files/ligand/MSE.cif">MSE</a> in the Chemical Component Dictionary. (image source: <a href="http://en.wikipedia.org/wiki/File:Selenomethionine-from-xtal-3D-balls.png">wikipedia</a>)
46+
47+
48+
</td>
49+
</tr>
50+
</table>
51+
4852

4953
### How to access Chemical Component definitions
5054
Bye default BioJava ships with a minimal representation of standard amino acids, however if you want to parse the whole PDB archive, it is good to tell the library to either

structure/mmcif.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,6 @@ The mmCIF file format has been around for some time (see [Westbrook 2000][] and
1414

1515
BioJava provides you with both a mmCIF parser and a data model that reads PDB and mmCIF files into a biological and chemically meaningful data model (BioJava supports the [Chemical Components Dictionary](http://www.wwpdb.org/ccd.html)). If you don't want to use that data model, you can still use BioJava's file parsers, and more on that later, let's start first with the most basic way of loading a protein structure.
1616

17-
## Quick Installation
18-
19-
Before we start, just one quick paragraph of how to get access to BioJava.
20-
21-
BioJava is open source and you can get the code from [Github](https://github.com/biojava/biojava), however it might be easier this way:
22-
23-
BioJava uses [Maven](http://maven.apache.org/) as a build and distribution system. If you are new to Maven, take a look at the [Getting Started with Maven](http://maven.apache.org/guides/getting-started/index.html) guide.
24-
25-
We are providing a BioJava specific Maven repository at (http://biojava.org/download/maven/) .
26-
27-
You can add the BioJava repository by adding the following XML to your project pom.xml file:
28-
```xml
29-
<repositories>
30-
...
31-
<repository>
32-
<id>biojava-maven-repo</id>
33-
<name>BioJava repository</name>
34-
<url>http://www.biojava.org/download/maven/</url>
35-
</repository>
36-
</repositories>
37-
<dependencies>
38-
...
39-
<dependency>
40-
<!-- This imports the latest SNAPSHOT builds from the protein structure modules of BioJava
41-
-->
42-
<groupId>org.biojava</groupId>
43-
<artifactId>biojava3-structure</artifactId>
44-
<version>3.0.7-SNAPSHOT</version>
45-
</dependency>
46-
<!-- other biojava jars as needed -->
47-
</dependencies>
48-
```
49-
50-
If you run 'mvn package' on your project, the BioJava dependencies will be automatically downloaded and installed for you.
5117

5218
## First steps
5319

structure/structure-data-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Structure
2828
All structure objects contain one or more "models". That means also X-ray structures contain an "virtual" model which serves as a container for the chains. The most common way to access chains will be via
2929

3030
<pre>
31-
List<Chain>chains = structure.getChains();
31+
List < Chain > chains = structure.getChains();
3232
</pre>
3333

3434
This works for both NMR and X-ray based structures and by default the first model is getting accessed.

0 commit comments

Comments
 (0)