Package org.biojava.nbio.structure.cath
Class CathDomain
- java.lang.Object
-
- org.biojava.nbio.structure.cath.CathDomain
-
- All Implemented Interfaces:
Serializable,StructureIdentifier
public class CathDomain extends Object implements Serializable, StructureIdentifier
A class which represents a single CATH domain.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CathDomain()
-
Method Summary
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CathDomain
public CathDomain()
-
-
Method Detail
-
getDomainName
public String getDomainName()
-
setDomainName
public void setDomainName(String domainName)
-
getThePdbId
public String getThePdbId()
Returns the PDB ID.
-
getPdbIdAndChain
public String getPdbIdAndChain()
Returns a string of the formPDBID.CHAIN. For example:1hiv.A.
-
getDomainId
public Integer getDomainId()
-
getClassId
public Integer getClassId()
-
setClassId
public void setClassId(Integer classId)
-
getArchitectureId
public Integer getArchitectureId()
-
setArchitectureId
public void setArchitectureId(Integer architectureId)
-
getTopologyId
public Integer getTopologyId()
-
setTopologyId
public void setTopologyId(Integer topologyId)
-
getHomologyId
public Integer getHomologyId()
-
setHomologyId
public void setHomologyId(Integer homologyId)
-
getSequenceFamilyId
public Integer getSequenceFamilyId()
-
setSequenceFamilyId
public void setSequenceFamilyId(Integer sequenceFamilyId)
-
getOrthologousSequenceFamilyId
public Integer getOrthologousSequenceFamilyId()
-
setOrthologousSequenceFamilyId
public void setOrthologousSequenceFamilyId(Integer orthologousSequenceFamilyId)
-
getLikeSequenceFamilyId
public Integer getLikeSequenceFamilyId()
-
setLikeSequenceFamilyId
public void setLikeSequenceFamilyId(Integer likeSequenceFamilyId)
-
getIdenticalSequenceFamilyId
public Integer getIdenticalSequenceFamilyId()
-
setIdenticalSequenceFamilyId
public void setIdenticalSequenceFamilyId(Integer identicalSequenceFamilyId)
-
getDomainCounter
public Integer getDomainCounter()
-
setDomainCounter
public void setDomainCounter(Integer domainCounter)
-
getResolution
public Double getResolution()
-
setResolution
public void setResolution(Double resolution)
-
getClassificationId
public Integer getClassificationId(CathCategory cathCategory)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getSequenceHeader
public String getSequenceHeader()
-
setSequenceHeader
public void setSequenceHeader(String sequenceHeader)
-
getSequence
public String getSequence()
-
setSequence
public void setSequence(String sequence)
-
getSegments
public List<CathSegment> getSegments()
-
setSegments
public void setSegments(List<CathSegment> segments)
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
getChains
public Set<String> getChains() throws StructureException
Returns the chains this domain is defined over; contains more than 1 element only if this domains is a multi-chain domain.- Throws:
StructureException
-
getIdentifier
public String getIdentifier()
Description copied from interface:StructureIdentifierGet the String form of this identifier. It is recommended that the#toString()method also return the identifier, for consistency during serialization.- Specified by:
getIdentifierin interfaceStructureIdentifier- Returns:
- The String form of this identifier
-
toCanonical
public SubstructureIdentifier toCanonical() throws StructureException
Description copied from interface:StructureIdentifierConvert to a canonical SubstructureIdentifier.This allows all domains to be converted to a standard format String.
- Specified by:
toCanonicalin interfaceStructureIdentifier- Returns:
- A SubstructureIdentifier equivalent to this
- Throws:
StructureException- Wraps exceptions that may be thrown by individual implementations. For example, a SCOP identifier may require that the domain definitions be available for download.
-
reduce
public Structure reduce(Structure input) throws StructureException
Description copied from interface:StructureIdentifierTakes a complete structure as input and reduces it to the substructure represented by this StructureIdentifier.The returned structure may be a shallow copy of the input, with shared Chains, Residues, etc.
- Specified by:
reducein interfaceStructureIdentifier- Parameters:
input- A full structure, e.g. as loaded from the PDB. The structure ID should match that returned by getPdbId(), if applicable.- Returns:
- Throws:
StructureException- See Also:
StructureTools#getReducedStructure(Structure, String)
-
loadStructure
public Structure loadStructure(AtomCache cache) throws StructureException, IOException
Description copied from interface:StructureIdentifierLoads a structure encompassing the structure identified. The Structure returned should be suitable for passing as the input toStructureIdentifier.reduce(Structure). It is recommended that the most complete structure available be returned (e.g. the full PDB) to allow processing of unselected portions where appropriate.- Specified by:
loadStructurein interfaceStructureIdentifier- Returns:
- A Structure containing at least the atoms identified by this, or null if Structures are not applicable.
- Throws:
StructureException- For errors loading and parsing the structureIOException- Errors reading the structure from disk
-
-