public interface StructureIdentifier
Structure or
arbitrary substructure. Common examples would be reducing a structure to a
single chain, domain, or residue range.
StructureIdentifiers are represented by unique strings. The getId() and fromId()
methods convert to and from the string representation.
Implementations should provide a constructor which takes a String. A static
fromId(String) method is also recommended.| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier()
Get the String form of this identifier.
|
Structure |
loadStructure(AtomCache cache)
Loads a structure encompassing the structure identified.
|
Structure |
reduce(Structure input)
Takes a complete structure as input and reduces it to the substructure
represented by this StructureIdentifier.
|
SubstructureIdentifier |
toCanonical()
Convert to a canonical SubstructureIdentifier.
|
String getIdentifier()
#toString() method also return the
identifier, for consistency during serialization.Structure loadStructure(AtomCache cache) throws StructureException, IOException
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.AtomCache - A potential sources of structuresStructureException - For errors loading and parsing the structureIOException - Errors reading the structure from diskSubstructureIdentifier toCanonical() throws StructureException
This allows all domains to be converted to a standard format String.
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.Structure reduce(Structure input) throws StructureException
The returned structure may be a shallow copy of the input, with shared Chains, Residues, etc.
input - A full structure, e.g. as loaded from the PDB. The structure
ID should match that returned by getPdbId(), if applicable.StructureExceptionStructureTools.getReducedStructure(Structure, String)Copyright © 2000–2016 BioJava. All rights reserved.