|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.structure.io.PDBStructureReader
public class PDBStructureReader
This concrete implementation of interface StructureReader reads a
protein structure entry from a '.pdb' file formated according to the
PDB Contents Guide (Version 2.2, 20 Dec 1996) and creates a
Structure.
The first line of the file must start with 'HEADER' to indicate a PDB
header record, and a complete list of the record types that need to be
recognized are specified in the RecordEnum enumeration of package
io.enums. A PDBLineParser is used to assist the readFile() method.
Currently, PDBStructureReader only reads protein (amino acids and
heterogens). It does not read DNA, but that capability will be added
at a later time (beyond the scope of this thesis).
| Field Summary | |
|---|---|
static int |
MIN_CHAR_IN_HEADER
The minimum number of columns in a HEADER record. |
| Constructor Summary | |
|---|---|
PDBStructureReader()
Creates a PDBStructureReader. |
|
| Method Summary | |
|---|---|
List<String> |
getBadLines()
Returns a list with any bad lines that were found the last time readStructure() was called. |
Structure |
readStructure(File file)
Reads a protein structure from a ".pdb" file and returns a Structure object. |
Structure |
readStructure(String filename)
Reads a protein structure from a ".pdb" file and returns a Structure object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN_CHAR_IN_HEADER
| Constructor Detail |
|---|
public PDBStructureReader()
| Method Detail |
|---|
public Structure readStructure(String filename)
throws StructureReaderException
readStructure in interface StructureReaderfilename - the name of the PDB formatted file to read.
StructureReaderException - if a serious error occurs while
parsing the PDB file.
public Structure readStructure(File file)
throws StructureReaderException
readStructure in interface StructureReaderfile - the PDB formatted file to read.
StructureReaderException - if a serious error occurs while
parsing the PDB file.public List<String> getBadLines()
getBadLines in interface StructureReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||