Package org.biojava.nbio.structure.scop
Class ScopDomain
- java.lang.Object
 - 
- org.biojava.nbio.structure.scop.ScopDomain
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,StructureIdentifier
public class ScopDomain extends Object implements Serializable, Cloneable, StructureIdentifier
Container for the information for a domain. Contains a line in the file dir.cla.scop.txt_1.75 e.g d1dlwa_ 1dlw A: a.1.1.1 14982 cl=46456,cf=46457,sf=46458,fa=46459,dm=46460,sp=46461,px=14982 Instantiated usingScopDatabase.getDomainByScopID(String)- Author:
 - Andreas Prlic
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ScopDomain() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectclone()Set<String>getChains()Returns the chains this domain is defined over; contains more than 1 element only if this domains is a multi-chain domain.intgetClassId()StringgetClassificationId()intgetDomainId()intgetFamilyId()intgetFoldId()StringgetIdentifier()Get the String form of this identifier.StringgetPdbId()intgetPx()List<String>getRanges()List<ResidueRange>getResidueRanges()StringgetScopId()intgetSpeciesId()IntegergetSunid()intgetSuperfamilyId()StructureloadStructure(AtomCache cache)Loads a structure encompassing the structure identified.Structurereduce(Structure input)Takes a complete structure as input and reduces it to the substructure represented by this StructureIdentifier.voidsetClassId(int classId)voidsetClassificationId(String classificationId)voidsetDomainId(int domainId)voidsetFamilyId(int familyId)voidsetFoldId(int foldId)voidsetPdbId(String pdbId)voidsetPx(int px)voidsetRanges(List<String> ranges)voidsetScopId(String scopId)voidsetSpeciesId(int speciesId)voidsetSunid(Integer sunid)voidsetSuperfamilyId(int superfamilyId)SubstructureIdentifiertoCanonical()Convert to a canonical SubstructureIdentifier.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ScopDomain
public ScopDomain()
 
 - 
 
- 
Method Detail
- 
getClassificationId
public String getClassificationId()
 
- 
setClassificationId
public void setClassificationId(String classificationId)
 
- 
getClassId
public int getClassId()
 
- 
setClassId
public void setClassId(int classId)
 
- 
getFoldId
public int getFoldId()
 
- 
setFoldId
public void setFoldId(int foldId)
 
- 
getSuperfamilyId
public int getSuperfamilyId()
 
- 
setSuperfamilyId
public void setSuperfamilyId(int superfamilyId)
 
- 
getFamilyId
public int getFamilyId()
 
- 
setFamilyId
public void setFamilyId(int familyId)
 
- 
getDomainId
public int getDomainId()
 
- 
setDomainId
public void setDomainId(int domainId)
 
- 
getSpeciesId
public int getSpeciesId()
 
- 
setSpeciesId
public void setSpeciesId(int speciesId)
 
- 
getPx
public int getPx()
 
- 
setPx
public void setPx(int px)
 
- 
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
 clonein classObject- Throws:
 CloneNotSupportedException
 
- 
getChains
public Set<String> getChains()
Returns the chains this domain is defined over; contains more than 1 element only if this domains is a multi-chain domain. 
- 
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
 
 
- 
getResidueRanges
public List<ResidueRange> getResidueRanges()
 
- 
toCanonical
public SubstructureIdentifier 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
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
 
 - 
 
 -