Class RemoteBioUnitDataProvider
- java.lang.Object
-
- org.biojava.nbio.structure.quaternary.io.RemoteBioUnitDataProvider
-
- All Implemented Interfaces:
BioUnitDataProvider
public class RemoteBioUnitDataProvider extends java.lang.Object implements BioUnitDataProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBIO_ASSEMBLYstatic java.lang.StringDEFAULT_SERVERNAMEstatic java.lang.StringNR_BIOL_APPEND
-
Constructor Summary
Constructors Constructor Description RemoteBioUnitDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuregetAsymUnit(java.lang.String pdbId)load the asym unit, but set the info how to re-create the bio unit in the PdbHeader objectAtomCachegetAtomCache()java.util.List<BiologicalAssemblyTransformation>getBioUnitTransformationList(java.lang.String pdbId, int biolAssemblyNr)get the data for a particular assembly, counting starts at 1...intgetNrBiolAssemblies(java.lang.String pdbId)Returns the number of available biological assemblies.booleanhasBiolAssembly(java.lang.String pdbId)Does the PDB ID have biological assembly information?voidsetAsymUnit(Structure s)voidsetAtomCache(AtomCache cache)Set an AtomCache to use when fetching asymmetric units.
-
-
-
Field Detail
-
DEFAULT_SERVERNAME
public static final java.lang.String DEFAULT_SERVERNAME
- See Also:
- Constant Field Values
-
NR_BIOL_APPEND
public static final java.lang.String NR_BIOL_APPEND
- See Also:
- Constant Field Values
-
BIO_ASSEMBLY
public static final java.lang.String BIO_ASSEMBLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBioUnitTransformationList
public java.util.List<BiologicalAssemblyTransformation> getBioUnitTransformationList(java.lang.String pdbId, int biolAssemblyNr)
Description copied from interface:BioUnitDataProviderget the data for a particular assembly, counting starts at 1...- Specified by:
getBioUnitTransformationListin 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
public int getNrBiolAssemblies(java.lang.String pdbId)
Description copied from interface:BioUnitDataProviderReturns the number of available biological assemblies.- Specified by:
getNrBiolAssembliesin interfaceBioUnitDataProvider- Parameters:
pdbId- the PDB ID. E.g. 1STP- Returns:
- nr of available assemblies.
-
hasBiolAssembly
public boolean hasBiolAssembly(java.lang.String pdbId)
Description copied from interface:BioUnitDataProviderDoes the PDB ID have biological assembly information?- Specified by:
hasBiolAssemblyin interfaceBioUnitDataProvider- Parameters:
pdbId- the PDB ID. E.g. 1STP- Returns:
- boolean flag
-
getAsymUnit
public Structure getAsymUnit(java.lang.String pdbId)
Description copied from interface:BioUnitDataProviderload the asym unit, but set the info how to re-create the bio unit in the PdbHeader object- Specified by:
getAsymUnitin interfaceBioUnitDataProvider- Returns:
-
setAsymUnit
public void setAsymUnit(Structure s)
- Specified by:
setAsymUnitin interfaceBioUnitDataProvider
-
setAtomCache
public void setAtomCache(AtomCache cache)
Description copied from interface:BioUnitDataProviderSet an AtomCache to use when fetching asymmetric units. If null, a new cache will be created with default parameters.- Specified by:
setAtomCachein interfaceBioUnitDataProvider
-
getAtomCache
public AtomCache getAtomCache()
- Specified by:
getAtomCachein interfaceBioUnitDataProvider- Returns:
- The current cache, or null if no cache has been initialized
-
-