Class RemoteDomainProvider
java.lang.Object
org.biojava.nbio.structure.domain.SerializableCache<String,SortedSet<String>>
org.biojava.nbio.structure.domain.RemoteDomainProvider
- All Implemented Interfaces:
DomainProvider
public class RemoteDomainProvider
extends SerializableCache<String,SortedSet<String>>
implements DomainProvider
A DomainProvider that uses a mixture of SCOP and PDP domains.
SCOP domains are preferred, with PDP providing a backup for structures where
SCOP has not been assigned.
As of 2015, this class is equivalent to the method used by RCSB to define
representatives for structural similarity comparisons.
-
Field Summary
Fields inherited from class org.biojava.nbio.structure.domain.SerializableCache
cacheFileName, serializedCache
-
Constructor Summary
ConstructorDescriptionRemoteDomainProvider
(boolean cache) initialize this provider with caching enabled -
Method Summary
Modifier and TypeMethodDescriptionvoid
getDomainNames
(String name) Get a list of constituent domain identifiersGet the full list of representative domains for the PDB.static void
Methods inherited from class org.biojava.nbio.structure.domain.SerializableCache
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFile
-
Field Details
-
url
-
-
Constructor Details
-
RemoteDomainProvider
public RemoteDomainProvider() -
RemoteDomainProvider
initialize this provider with caching enabled- Parameters:
cache
-- Throws:
IOException
-
-
Method Details
-
getDomainNames
Description copied from interface:DomainProvider
Get a list of constituent domain identifiers- Specified by:
getDomainNames
in interfaceDomainProvider
- Parameters:
name
- a structure identifier- Returns:
- A list of domain names
- Throws:
IOException
- For IO errors getting the domainsStructureException
- For errors converting name to a valid identifier
-
main
- Throws:
IOException
StructureException
-
flushCache
public void flushCache()- Overrides:
flushCache
in classSerializableCache<String,
SortedSet<String>>
-
getRepresentativeDomains
Description copied from interface:DomainProvider
Get the full list of representative domains for the PDB. The exact definition representatives is implementation-specific, but should cover as many structures as possible.- Specified by:
getRepresentativeDomains
in interfaceDomainProvider
- Returns:
- A full list of all representative domains recognized by this provider
- Throws:
IOException
- For IO errors getting the representatives
-