org.strbio.util.db
Class PDBInfo

java.lang.Object
  extended by org.strbio.util.db.Info
      extended by org.strbio.util.db.ProteinInfo
          extended by org.strbio.util.db.ProteinStructureInfo
              extended by org.strbio.util.db.PDBInfo

public class PDBInfo
extends ProteinStructureInfo

This is a class containing info that is found in PDB files, and links to related info. This should save all info found in the PDB headers, but currently doesn't come close.

  Version 1.1, 7/28/99 - made compound, title, source into arrays
    of Strings, one per PDB line 
  Version 1.0, 7/21/99 - original version.
  

Version:
1.1, 7/28/99
Author:
JMC

Field Summary
 java.lang.String code
          PDB code for the file; i.e. 1abc.
 java.lang.String[] compound
          Information from the PDB's COMPND records, one string per line (edges stripped off).
 java.lang.String[] source
          Source, from the PDB's SOURCE records.
 java.lang.String[] title
          Title, from the PDB's TITLE records.
 
Fields inherited from class org.strbio.util.db.ProteinInfo
protein
 
Fields inherited from class org.strbio.util.db.Info
related
 
Constructor Summary
PDBInfo()
           
 
Method Summary
 void addCompound(java.lang.String x)
          add a String to the compound records.
 void addSource(java.lang.String x)
          add a String to the source records.
 void addTitle(java.lang.String x)
          add a String to the title records.
 void processYAPF(java.lang.String buffer)
          Initialize this Info from a line in a YAPF file, if applicable.
 void writeYAPF(Printf outfile)
          write this info to a single line of a file, so it can be read later.
 
Methods inherited from class org.strbio.util.db.Info
getClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

public java.lang.String code
PDB code for the file; i.e. 1abc.


compound

public java.lang.String[] compound
Information from the PDB's COMPND records, one string per line (edges stripped off). null if unavailable.


title

public java.lang.String[] title
Title, from the PDB's TITLE records. null if unavailable.


source

public java.lang.String[] source
Source, from the PDB's SOURCE records. null if unavailable.

Constructor Detail

PDBInfo

public PDBInfo()
Method Detail

writeYAPF

public void writeYAPF(Printf outfile)
               throws java.io.IOException
write this info to a single line of a file, so it can be read later.

Overrides:
writeYAPF in class Info
Throws:
java.io.IOException

addSource

public void addSource(java.lang.String x)
add a String to the source records.


addTitle

public void addTitle(java.lang.String x)
add a String to the title records.


addCompound

public void addCompound(java.lang.String x)
add a String to the compound records.


processYAPF

public void processYAPF(java.lang.String buffer)
Initialize this Info from a line in a YAPF file, if applicable.

Overrides:
processYAPF in class Info