public class BioAssemblyIdentifier extends Object implements StructureIdentifier
Modifier and Type | Field and Description |
---|---|
static Pattern |
BIO_NAME_PATTERN |
Constructor and Description |
---|
BioAssemblyIdentifier(String name) |
BioAssemblyIdentifier(String pdbCode,
int biolNr) |
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 |
toString() |
public static final Pattern BIO_NAME_PATTERN
public BioAssemblyIdentifier(String name)
public BioAssemblyIdentifier(String pdbCode, int biolNr)
public String getIdentifier()
StructureIdentifier
#toString()
method also return the
identifier, for consistency during serialization.getIdentifier
in interface StructureIdentifier
public Structure loadStructure(AtomCache cache) throws StructureException, IOException
StructureIdentifier
StructureIdentifier.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.loadStructure
in interface StructureIdentifier
StructureException
- For errors loading and parsing the structureIOException
- Errors reading the structure from diskpublic SubstructureIdentifier toCanonical() throws StructureException
StructureIdentifier
This allows all domains to be converted to a standard format String.
toCanonical
in interface StructureIdentifier
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.public Structure reduce(Structure input) throws StructureException
StructureIdentifier
The returned structure may be a shallow copy of the input, with shared Chains, Residues, etc.
reduce
in interface StructureIdentifier
input
- A full structure, e.g. as loaded from the PDB. The structure
ID should match that returned by getPdbId(), if applicable.StructureException
StructureTools.getReducedStructure(Structure, String)
Copyright © 2000–2019 BioJava. All rights reserved.