Package org.biojava.nbio.structure.ecod
Class EcodDomain
java.lang.Object
org.biojava.nbio.structure.ecod.EcodDomain
- All Implemented Interfaces:
Serializable,Cloneable,StructureIdentifier
An EcodDomain contains all the information of the ECOD database: id,
classification groups (from higher to lower in the tree: X,H,T,F), PDB code,
chain, residue ranges and status (manual or automatic classification).
For detailed explanation about the ECOD information see the original article at: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4256011.
Cheng H, Schaeffer RD, Liao Y, et al. ECOD: An Evolutionary Classification of Protein Domains. Elofsson A, ed. PLoS Computational Biology. 2014;10(12):e1003926.
- Author:
- Spencer Bliven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor with all null propertiesEcodDomain(Long uid, String domainId, Boolean manual, Integer xGroup, Integer hGroup, Integer tGroup, Integer fGroup, String pdbId, String chainId, String range, String architectureName, String xGroupName, String hGroupName, String tGroupName, String fGroupName, Long assemblyId, Set<String> ligands) EcodDomain(Long uid, String domainId, Boolean manual, Integer xGroup, Integer hGroup, Integer tGroup, Integer fGroup, String pdbId, String chainId, String range, String seqId, String architectureName, String xGroupName, String hGroupName, String tGroupName, String fGroupName, Long assemblyId, Set<String> ligands) EcodDomain(String domainId) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()booleanGet the String form of this identifier.getPdbId()getRange()Get the range of this domain, in PDB residue numbers (mmCif's _pdbx_poly_seq_scheme.pdb_seq_num and pdb_ins_code).Get the range of this domain, in 1-based residue indices (mmCif's _pdbx_poly_seq_scheme.seq_id) Note thatgetRange()is used when constructing the domain.getUid()inthashCode()loadStructure(AtomCache cache) Loads a structure encompassing the structure identified.Takes a complete structure as input and reduces it to the substructure represented by this StructureIdentifier.voidsetArchitectureName(String architectureName) voidsetAssemblyId(Long assemblyId) voidsetChainId(String chainId) voidsetDomainId(String domainId) voidvoidsetFGroupName(String fGroupName) voidsetGroupName(String tGroupName) voidvoidsetHGroupName(String hGroupName) voidsetLigands(Set<String> ligands) voidvoidvoidvoidvoidsetSeqIdRange(String seqIdRange) voidvoidvoidvoidsetXGroupName(String xGroupName) Convert to a canonical SubstructureIdentifier.toString()
-
Constructor Details
-
EcodDomain
public EcodDomain()Default constructor with all null properties -
EcodDomain
public EcodDomain(Long uid, String domainId, Boolean manual, Integer xGroup, Integer hGroup, Integer tGroup, Integer fGroup, String pdbId, String chainId, String range, String architectureName, String xGroupName, String hGroupName, String tGroupName, String fGroupName, Long assemblyId, Set<String> ligands) -
EcodDomain
public EcodDomain(Long uid, String domainId, Boolean manual, Integer xGroup, Integer hGroup, Integer tGroup, Integer fGroup, String pdbId, String chainId, String range, String seqId, String architectureName, String xGroupName, String hGroupName, String tGroupName, String fGroupName, Long assemblyId, Set<String> ligands) -
EcodDomain
-
EcodDomain
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getUid
-
setUid
-
getDomainId
-
setDomainId
-
getManual
-
setManual
-
getXGroup
-
setXGroup
-
getHGroup
-
setHGroup
-
getTGroup
-
setTGroup
-
getFGroup
-
setFGroup
-
setPdbId
-
getPdbId
- Returns:
- the
PdbIdobject associated with this domain. - Since:
- 6.0.0
-
setPdbId
- Parameters:
pdbId-- Since:
- 6.0.0
-
getChainId
-
setChainId
-
getRange
Get the range of this domain, in PDB residue numbers (mmCif's _pdbx_poly_seq_scheme.pdb_seq_num and pdb_ins_code).- Returns:
- The chain and residue range, e.g. "A:1-100"
-
setRange
-
getSeqIdRange
Get the range of this domain, in 1-based residue indices (mmCif's _pdbx_poly_seq_scheme.seq_id) Note thatgetRange()is used when constructing the domain.- Returns:
- The chain and residue range, e.g. "A:1-100"
-
setSeqIdRange
-
getArchitectureName
-
setArchitectureName
-
getXGroupName
-
setXGroupName
-
getHGroupName
-
setHGroupName
-
getTGroupName
-
setGroupName
-
getFGroupName
-
setFGroupName
-
getAssemblyId
- Returns:
- The assembly ID, or the DomainId if not in an assembly, or null if unknown.
-
setAssemblyId
-
getLigands
-
setLigands
-
toString
-
hashCode
-
equals
-
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
-
getResidueRanges
-
toCanonical
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
-
reduce
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
-
loadStructure
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- Parameters:
cache- A potential sources of structures- 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
-