|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.structure.io.PDBHelixFieldExtractor
public class PDBHelixFieldExtractor
Extracts fields from a PDB HELIX record.
The line must be a PDB HELIX record as specified in the
the
PDB Contents Guide (Version 2.2, 20 Dec 1996).
The column numbers specified in the PDB guide start at 1 rather than
at 0, so a field written as (helixID field: 12-14) would be in columns
11-13 in a String.
| Constructor Summary | |
|---|---|
PDBHelixFieldExtractor()
Constructs a PDBHelixFieldExtractor. |
|
| Method Summary | |
|---|---|
String |
extractChainID(String line)
Obtains the chainID from (initChainID field: 20). |
String |
extractEndResidueID(String line)
Obtains the endResidueID by combining (endResName field: 28-30), (endSeqNum field: 34-37), and the optional (endICode field: 38). |
String |
extractHelixID(String line)
Obtains the helixID from (helixID field: 12-14). |
String |
extractSerialNo(String line)
Obtains the helix serial number from (serial field: 8-10). |
String |
extractStartResidueID(String line)
Obtains the startResidueID by combining (initResName field: 16-18), (initSeqNum field: 22-25), and the optional (initICode field: 26). |
HelixEnum |
extractType(String line)
Extracts the helix type from (helixClass field: 39-40). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDBHelixFieldExtractor()
| Method Detail |
|---|
public String extractSerialNo(String line)
throws PDBFieldExtractorException
line - a HELIX record at least 80 characters in length.
PDBFieldExtractorException - if the helix serial number
field cannot be converted
to an integer.
public String extractHelixID(String line)
throws PDBFieldExtractorException
line - a HELIX record at least 80 characters in length.
PDBFieldExtractorException - if a helixID cannot be
obtained.
public String extractChainID(String line)
throws PDBFieldExtractorException
line - a HELIX record at least 80 characters in length.
PDBFieldExtractorException - if a chainID cannot be
obtained.
public String extractStartResidueID(String line)
throws PDBFieldExtractorException
line - a HELIX record at least 80 characters in length.
PDBFieldExtractorException - if the line is too short or
either the initResName field
or the initSeqNum field is
blank.
public String extractEndResidueID(String line)
throws PDBFieldExtractorException
line - a HELIX record at least 80 characters in length.
PDBFieldExtractorException - if the line is too short or
either the endResName field or
the endSeqNum field is blank.
public HelixEnum extractType(String line)
throws PDBFieldExtractorException
line - a HELIX record at least 80 characters in length.
PDBFieldExtractorException - if the char in the helixClass
field cannot be matched to a
known type or if the record is
too short.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||