Skip to content

Commit a5d9b0b

Browse files
committed
more docu and nice example
git-svn-id: http://code.open-bio.org/repos/biojava/biojava-live/trunk@9901 7c6358e6-4a41-0410-a743-a5b2a554c398
1 parent 825e4f9 commit a5d9b0b

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

biojava3-structure-gui/src/main/java/demo/DemoShowBiolAssembly.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
package demo;
22

3-
43
import org.biojava.bio.structure.Structure;
54
import org.biojava.bio.structure.align.gui.jmol.StructureAlignmentJmol;
5+
import org.biojava.bio.structure.quaternary.io.BioUnitDataProviderFactory;
66

77
import org.biojava3.structure.StructureIO;
88

99
public class DemoShowBiolAssembly {
1010

1111
public static void main(String[] args){
1212

13-
14-
1513
try{
1614
// see also: http://www.pdb.org/pdb/101/static101.do?p=education_discussion/Looking-at-Structures/bioassembly_tutorial.html
1715
// good examples: 1stp 1gav 1hv4 1hho 7dfr 3fad 1qqp
1816

1917
// assembly 0 ... asym Unit
2018
// assembly 1 ... the first bio assembly
19+
// example 1fah has 2 assemblies (two copies of the assembly in asymmetric unit)
20+
2121

2222
// Various interesting symmetries: (see Lawson, 2008)
2323
// Circular - 1TJA
2424
// Dihedral - 1ei7
2525
// Icosahedral - 1a34
2626
// Helical - 1cgm
2727

28-
Structure bioAssembly = StructureIO.getBiologicalAssembly("1stp",1);
29-
System.out.println(bioAssembly);
3028

31-
29+
// DNA 173D .. 2
30+
31+
BioUnitDataProviderFactory.setBioUnitDataProvider(BioUnitDataProviderFactory.pdbProviderClassName);
32+
//Structure bioAssembly = StructureIO.getBiologicalAssembly("4A1I",2);
33+
34+
Structure bioAssembly = StructureIO.getBiologicalAssembly("1ei7",1);
35+
3236
StructureAlignmentJmol jmolPanel = new StructureAlignmentJmol();
3337
//jmolPanel.evalString("set autobond=false");
3438
jmolPanel.setStructure(bioAssembly);
@@ -37,8 +41,6 @@ public static void main(String[] args){
3741
jmolPanel.evalString("select * ; color structure ; spacefill off; wireframe off; backbone off; cartoon on; select ligands ; spacefill 0.4; color cpk;");
3842

3943
System.out.println("done!");
40-
//quaternaryBuilder.getBioUnitTransformationList()
41-
4244

4345
} catch (Exception e) {
4446
e.printStackTrace();

0 commit comments

Comments
 (0)