Class PDBBioUnitDataProvider
java.lang.Object
org.biojava.nbio.structure.quaternary.io.PDBBioUnitDataProvider
- All Implemented Interfaces:
BioUnitDataProvider
A BioUnitDataProvider that extracts the necessary info from PDB files
- Author:
- Andreas Prlic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAsymUnit
(String pdbId) load the asym unit, but set the info how to re-create the bio unit in the PdbHeader objectgetBioUnitTransformationList
(String pdbId, int biolAssemblyNr) get the data for a particular assembly, counting starts at 1...int
getNrBiolAssemblies
(String pdbId) Returns the number of available biological assemblies.boolean
hasBiolAssembly
(String pdbId) Does the PDB ID have biological assembly information?void
void
setAtomCache
(AtomCache cache) Set an AtomCache to use when fetching asymmetric units.
-
Constructor Details
-
PDBBioUnitDataProvider
public PDBBioUnitDataProvider()
-
-
Method Details
-
loadPDB
-
getAsymUnit
Description copied from interface:BioUnitDataProvider
load the asym unit, but set the info how to re-create the bio unit in the PdbHeader object- Specified by:
getAsymUnit
in interfaceBioUnitDataProvider
- Returns:
-
setAsymUnit
- Specified by:
setAsymUnit
in interfaceBioUnitDataProvider
-
getBioUnitTransformationList
public List<BiologicalAssemblyTransformation> getBioUnitTransformationList(String pdbId, int biolAssemblyNr) Description copied from interface:BioUnitDataProvider
get the data for a particular assembly, counting starts at 1...- Specified by:
getBioUnitTransformationList
in interfaceBioUnitDataProvider
- Parameters:
pdbId
- the PDB ID. E.g. 1STPbiolAssemblyNr
- the number of the assembly, the first one is nr 1. 0 refers to the asym unit- Returns:
- list of transformations.
-
getNrBiolAssemblies
Description copied from interface:BioUnitDataProvider
Returns the number of available biological assemblies.- Specified by:
getNrBiolAssemblies
in interfaceBioUnitDataProvider
- Parameters:
pdbId
- the PDB ID. E.g. 1STP- Returns:
- nr of available assemblies.
-
hasBiolAssembly
Description copied from interface:BioUnitDataProvider
Does the PDB ID have biological assembly information?- Specified by:
hasBiolAssembly
in interfaceBioUnitDataProvider
- Parameters:
pdbId
- the PDB ID. E.g. 1STP- Returns:
- boolean flag
-
setAtomCache
Description copied from interface:BioUnitDataProvider
Set an AtomCache to use when fetching asymmetric units. If null, a new cache will be created with default parameters.- Specified by:
setAtomCache
in interfaceBioUnitDataProvider
-
getAtomCache
- Specified by:
getAtomCache
in interfaceBioUnitDataProvider
- Returns:
- The current cache, or null if no cache has been initialized
-