Good morning all<br><br>I am about to commit some important changes to owl. Basically the main way of loading PDB data is changing to make things more consistent. Together with that I've done some refactoring hoping to aid consistency again.<br>

<br>We used to load PDB data one chain at a time with this kind of construction:<br><br>- for pdb file<br><br>Pdb pdb = new PdbfilePdb("/path/mypdbfile.pdb");<br>pdb.load("A");<br><br>- for cif file<br>


<br>
Pdb pdb = new CiffilePdb("/path/myciffile.cif");<br>
pdb.load("A");<br>
<br>- for pdbase<br><br>Pdb pdb = new PdbasePdb("1abc",new MySQLConnection(),"pdbase");<br>pdb.load("A");<br><br><br>Now this changes to a hopefully less cumbersome approach. The recently added PdbAsymUnit class will be able to load full PDBs at once with all their chains. One can then use that or simply take a chain from it. At the same time Pdb is now called PdbChain. So this is how you would do the above now:<br>

<br>- for pdb file or cif file<br><br>PdbAsymUnit pdb = new PdbAsymUnit("/path/myfile.pdb-or-.cif");<br>PdbChain chain = pdb.getChain("A");<br><br>- for pdbase<br><br>PdbAsymUnit pdb = new PdbAsymUnit("1abc",new MySQLConnection(),"pdbase");<br>


PdbChain chain = pdb.getChain("A");<br>
<br>With this the PdbfilePdb, CiffilePdb and PdbasePdb classes that were subclasses of Pdb are now standalone parser classes and are hidden from the user. One needs to use only PdbAsymUnit for a whole asymmetric unit (i.e. a whole PDB structure) and then PdbChain for single chains within it.<br>

<br>Hope this makes things easier. All code we had in owl and cmview has been changed accordingly. If you want to access the code before this change then you'll need to check out the last tag owl-1.9.3 instead of the trunk.<br>

<br>Cheers<br><br>Jose<br><br>