Skip to content

Commit 31d5153

Browse files
committed
/* How do I read a .mmcif file? */
1 parent 43b4e57 commit 31d5153

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

_wikis/BioJava:CookBook:PDB:mmcif.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ title: BioJava:CookBook:PDB:mmcif
66

77
[mmcif](http://ndbserver.rutgers.edu/mmcif/index.html) is an alternative
88
file format to PDB files (
9-
[1](#westbrook2000 "wikilink"),[2](#westbrook2003 "wikilink") ). It is
10-
not entirely easy to write a parser for it, as such BioJava solves this
11-
problem for you. The mmcif files are parsed into the same BioJava data
12-
structure as the [PDB files](BioJava:CookBook:PDB:read "wikilink"). The
13-
example below demonstrates how to load the content into the BioJava data
14-
model for protein structures. The design of the source code allows you
15-
to also hook in your own data model. For this you will require to
16-
implement the [MMcifConsumer
17-
interface](http://www.spice-3d.org/public-files/javadoc/biojava/org/biojava/bio/structure/io/mmcif/MMcifConsumer.html).
9+
[1](#westbrook2000 "wikilink"),[2](#westbrook2003 "wikilink") ). The
10+
mmcif files are parsed into the same BioJava data structure as the [PDB
11+
files](BioJava:CookBook:PDB:read "wikilink"). The example below
12+
demonstrates how to load the content into the BioJava data model for
13+
protein structures.
1814

1915
The mmcif parsing code will be released with the next biojava release in
2016
April 2009. To use it at the moment you will require a [recent build
@@ -36,11 +32,15 @@ To parse an mmCif file do the following: <java> @since 1.7
3632

3733
</java>
3834

39-
The parser is contains a built-in event model. If you want you can use
40-
it to load mmCif data also in alternative data models (i.e. not the
41-
BioJava one). For this you would need to provide your own implementation
42-
of the MMcifConsumer interface. If you don;t have that, just use the
43-
SimpleMMcifConsumer, which provides this for you:
35+
Parse into custom data structures
36+
---------------------------------
37+
38+
By default the file content will be loaded into the BioJava data
39+
structures. The parser is contains a built-in event model, which allows
40+
to load your own, custom data structures. For this you will require to
41+
implement the [MMcifConsumer
42+
interface](http://www.spice-3d.org/public-files/javadoc/biojava/org/biojava/bio/structure/io/mmcif/MMcifConsumer.html)
43+
If you don;t have that, just use the SimpleMMcifConsumer
4444

4545
<java> @since 1.7
4646

_wikis/BioJava:CookBook:PDB:mmcif.mediawiki

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== How do I read a .mmcif file? ===
22

33
[http://ndbserver.rutgers.edu/mmcif/index.html mmcif] is an alternative file format to PDB files ( [[#westbrook2000|1]],[[#westbrook2003|2]] ).
4-
It is not entirely easy to write a parser for it, as such BioJava solves this problem for you. The mmcif files are parsed into the same BioJava data structure as the [[BioJava:CookBook:PDB:read|PDB files]]. The example below demonstrates how to load the content into the BioJava data model for protein structures. The design of the source code allows you to also hook in your own data model. For this you will require to implement the [http://www.spice-3d.org/public-files/javadoc/biojava/org/biojava/bio/structure/io/mmcif/MMcifConsumer.html MMcifConsumer interface].
4+
The mmcif files are parsed into the same BioJava data structure as the [[BioJava:CookBook:PDB:read|PDB files]]. The example below demonstrates how to load the content into the BioJava data model for protein structures.
55

66
The mmcif parsing code will be released with the next biojava release in April 2009. To use it at the moment you will require a [[Autobuild_events|recent build from SVN]].
77

@@ -21,8 +21,9 @@ To parse an mmCif file do the following:
2121
}
2222
</java>
2323

24+
== Parse into custom data structures ==
2425

25-
The parser is contains a built-in event model. If you want you can use it to load mmCif data also in alternative data models (i.e. not the BioJava one). For this you would need to provide your own implementation of the MMcifConsumer interface. If you don;t have that, just use the SimpleMMcifConsumer, which provides this for you:
26+
By default the file content will be loaded into the BioJava data structures. The parser is contains a built-in event model, which allows to load your own, custom data structures. For this you will require to implement the [http://www.spice-3d.org/public-files/javadoc/biojava/org/biojava/bio/structure/io/mmcif/MMcifConsumer.html MMcifConsumer interface] If you don;t have that, just use the SimpleMMcifConsumer
2627

2728
<java>
2829
@since 1.7

0 commit comments

Comments
 (0)