|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava.bio.structure.io.PDBFileParser
public class PDBFileParser
This class implements the actual PDB file parsing. Do not access it directly, but via the PDBFileReader class.
setFileParsingParameters(FileParsingParameters) methods.
To provide excessive memory usage for large PDB files, there is the ATOM_CA_THRESHOLD. If more Atoms than this threshold are being parsed in a PDB file, the parser will automatically switch to a C-alpha only representation.
The result of the parsing of the PDB file is a new Structure object.
Q: How can I get a Structure object from a PDB file?
A:
publicStructureloadStructure(String pathToPDBFile){ // The PDBFileParser is wrapped by the PDBFileReaderPDBFileReaderpdbreader = newPDBFileReader();Structurestructure = null; try{ structure = pdbreader.getStructure(pathToPDBFile); System.out.println(structure); } catch (IOException e) { e.printStackTrace(); } return structure; }
| Field Summary | |
|---|---|
static java.lang.String |
HELIX
Helix secondary structure assignment. |
static java.lang.String |
PDB_AUTHOR_ASSIGNMENT
Secondary strucuture assigned by the PDB author/ |
static java.lang.String |
STRAND
Strand secondary structure assignment. |
static java.lang.String |
TURN
Turn secondary structure assignment. |
| Constructor Summary | |
|---|---|
PDBFileParser()
|
|
| Method Summary | |
|---|---|
FileParsingParameters |
getFileParsingParameters()
|
protected java.lang.String |
getTimeStamp()
Returns a time stamp. |
void |
linkChains2Compound(Structure s)
After the parsing of a PDB file the Chain and Compound
objects need to be linked to each other. |
Structure |
parsePDBFile(java.io.BufferedReader buf)
parse a PDB file and return a datastructure implementing PDBStructure interface. |
Structure |
parsePDBFile(java.io.InputStream inStream)
parse a PDB file and return a datastructure implementing PDBStructure interface. |
void |
setFileParsingParameters(FileParsingParameters params)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PDB_AUTHOR_ASSIGNMENT
public static final java.lang.String HELIX
public static final java.lang.String STRAND
public static final java.lang.String TURN
| Constructor Detail |
|---|
public PDBFileParser()
| Method Detail |
|---|
protected java.lang.String getTimeStamp()
public Structure parsePDBFile(java.io.InputStream inStream)
throws java.io.IOException
inStream - an InputStream object
java.io.IOException
public Structure parsePDBFile(java.io.BufferedReader buf)
throws java.io.IOException
buf - a BufferedReader object
java.io.IOException - ...public void linkChains2Compound(Structure s)
Chain and Compound
objects need to be linked to each other.
s - the structurepublic void setFileParsingParameters(FileParsingParameters params)
public FileParsingParameters getFileParsingParameters()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||