11package demo ;
22
3-
43import org .biojava .bio .structure .Structure ;
54import org .biojava .bio .structure .align .gui .jmol .StructureAlignmentJmol ;
5+ import org .biojava .bio .structure .quaternary .io .BioUnitDataProviderFactory ;
66
77import org .biojava3 .structure .StructureIO ;
88
99public 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