org.biojava.bio.structure.io
Class PDBMSDReader
java.lang.Object
org.biojava.bio.structure.io.PDBMSDReader
- All Implemented Interfaces:
- StructureIO
public class PDBMSDReader
- extends Object
- implements StructureIO
retreive a structure from an installation of the MSD - search
database ( http://www.ebi.ac.uk/msd/index.html ,
http://www.ebi.ac.uk/msd-srv/docs/dbdoc/ )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSource
protected DataSource dataSource
PDBMSDReader
public PDBMSDReader()
setDBConnection
public void setDBConnection(String dbDriver,
String dbUrl,
String dbUsername,
String dbPassword)
throws SQLException
- open a database conenction to the MSD search database
- Parameters:
dbDriver
- specified which JDBC driver to use e.g.dbUrl
- connection stringdbUsername
- the username in the dbdbPassword
- password to use
- Throws:
SQLException
getStructureById
public Structure getStructureById(String pdbId)
throws IOException
- Get a structure by providing a PDB code.
expects connections parameters to be set a system properties.
- Specified by:
getStructureById
in interface StructureIO
- Parameters:
pdbId
- a String specifying the id value (PDB code)
- Returns:
- a Structure object, or null if no structure with matching PDB code has been found
- Throws:
IOException
- ...