Package org.biojava.nbio.structure
Class PDBHeader
java.lang.Object
org.biojava.nbio.structure.PDBHeader
- All Implemented Interfaces:
Serializable,PDBRecord
A class that contains PDB Header information.
- Since:
- 1.6
- Author:
- Andreas Prlic
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare two PDBHeader objectsReturn the names of the authors as listed in the AUTHORS section of a PDB file.Return the map of biological assemblies.Return the deposition date of the structure in the PDB.Return the Set of ExperimentalTechniques, usually the set is of size 1 except for hybrid experimental techniques when the Set will contain 2 or more valuesgetId()Get the ID used by Hibernate.The PDB code for this protein structure.Get the associated publication as defined by the JRNL records in a PDB file.Return the latest modification date of the structure.intGet the number of biological assemblies available in the PDB headerReturn the release date of the structure in the PDB.floatfloatgetRfree()floatgetRwork()getTitle()booleanReturn whether or not the entry has an associated journal article or publication.voidsetAuthors(String authors) voidsetBioAssemblies(Map<Integer, BioAssemblyInfo> bioAssemblies) voidsetClassification(String classification) voidsetCrystallographicInfo(PDBCrystallographicInfo crystallographicInfo) voidsetDepDate(Date depDate) The deposition date of the structure in the PDBvoidsetDescription(String description) booleansetExperimentalTechnique(String techniqueStr) Adds the experimental technique to the set of experimental techniques of this header.voidThe PDB code for this protein structure.voidsetJournalArticle(JournalArticle journalArticle) Set the associated publication as defined by the JRNL records in a PDB file.voidsetModDate(Date modDate) The latest modification date of the structure.voidsetRelDate(Date relDate) The release date of the structure in the PDB.voidsetResolution(float resolution) voidsetRevisionRecords(List<DatabasePdbrevRecord> revisionRecords) voidsetRfree(float rFree) voidsetRwork(float rWork) voidtoPDB()Return a PDB representation of the PDB HeadervoidtoPDB(StringBuffer buf) Appends a PDB representation of the PDB header to the provided StringBuffertoString()String representation
-
Field Details
-
DEFAULT_RESOLUTION
public static final float DEFAULT_RESOLUTION- See Also:
-
DEFAULT_RFREE
public static final float DEFAULT_RFREE- See Also:
-
newline
-
-
Constructor Details
-
PDBHeader
public PDBHeader()
-
-
Method Details
-
toString
String representation -
toPDB
Return a PDB representation of the PDB Header -
toPDB
Appends a PDB representation of the PDB header to the provided StringBuffer -
getId
Get the ID used by Hibernate.- Returns:
- the ID used by Hibernate
- See Also:
-
setId(Long)
-
equals
Compare two PDBHeader objects- Parameters:
other- a PDBHeader object to compare this one to.- Returns:
- true if they are equal or false if they are not.
-
getIdCode
The PDB code for this protein structure.- Returns:
- the PDB identifier
- See Also:
-
setIdCode
The PDB code for this protein structure.- Parameters:
idCode- the PDB identifier- See Also:
-
getClassification
-
setClassification
-
getDepDate
Return the deposition date of the structure in the PDB.- Returns:
- the deposition date
-
setDepDate
The deposition date of the structure in the PDB- Parameters:
depDate- the deposition date
-
getExperimentalTechniques
Return the Set of ExperimentalTechniques, usually the set is of size 1 except for hybrid experimental techniques when the Set will contain 2 or more values- Returns:
- the Set of ExperimentalTechniques or null if not set
-
setExperimentalTechnique
Adds the experimental technique to the set of experimental techniques of this header. Note that if input is not a recognised technique string then no errors will be produced but false will be returned- Parameters:
techniqueStr-- Returns:
- true if the input corresponds to a recognised technique string (see
ExperimentalTechnique) and it was not already present in the current set of ExperimentalTechniques
-
getCrystallographicInfo
-
setCrystallographicInfo
-
getResolution
public float getResolution() -
setResolution
public void setResolution(float resolution) -
getRfree
public float getRfree() -
setRfree
public void setRfree(float rFree) -
getModDate
Return the latest modification date of the structure.- Returns:
- the latest modification date
-
setModDate
The latest modification date of the structure.- Parameters:
modDate- the latest modification date
-
getRelDate
Return the release date of the structure in the PDB.- Returns:
- the release date
-
setRelDate
The release date of the structure in the PDB.- Parameters:
relDate- the release date
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getAuthors
Return the names of the authors as listed in the AUTHORS section of a PDB file. Not necessarily the same authors as listed in the AUTH section of the primary citation!- Returns:
- Authors as a string
-
setAuthors
-
hasJournalArticle
public boolean hasJournalArticle()Return whether or not the entry has an associated journal article or publication. The JRNL section is not mandatory and thus may not be present.- Returns:
- flag if a JournalArticle could be found.
-
getJournalArticle
Get the associated publication as defined by the JRNL records in a PDB file.- Returns:
- a JournalArticle
-
setJournalArticle
Set the associated publication as defined by the JRNL records in a PDB file.- Parameters:
journalArticle- the article
-
getBioAssemblies
Return the map of biological assemblies. The keys are the biological assembly identifiers (starting at 1). Non-numerical identifiers such as PAU or XAU are not supported.- Returns:
-
setBioAssemblies
-
getNrBioAssemblies
public int getNrBioAssemblies()Get the number of biological assemblies available in the PDB header- Returns:
-
getRevisionRecords
-
setRevisionRecords
-
getRwork
public float getRwork()- Returns:
- the R-work for this structure.
-
setRwork
public void setRwork(float rWork) - Parameters:
rWork- the R-work for this structure.
-