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 Modifier and Type Field Description Stringurl-
Fields inherited from class org.biojava.nbio.structure.domain.SerializableCache
cacheFileName, serializedCache
-
-
Constructor Summary
Constructors Constructor Description RemoteDomainProvider()RemoteDomainProvider(boolean cache)initialize this provider with caching enabled
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCache()SortedSet<String>getDomainNames(String name)Get a list of constituent domain identifiersSortedSet<String>getRepresentativeDomains()Get the full list of representative domains for the PDB.static voidmain(String[] args)-
Methods inherited from class org.biojava.nbio.structure.domain.SerializableCache
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFile
-
-
-
-
Constructor Detail
-
RemoteDomainProvider
public RemoteDomainProvider()
-
RemoteDomainProvider
public RemoteDomainProvider(boolean cache) throws IOException
initialize this provider with caching enabled- Parameters:
cache-- Throws:
IOException
-
-
Method Detail
-
getDomainNames
public SortedSet<String> getDomainNames(String name) throws IOException, StructureException
Description copied from interface:DomainProviderGet a list of constituent domain identifiers- Specified by:
getDomainNamesin 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
public static void main(String[] args) throws IOException, StructureException
- Throws:
IOExceptionStructureException
-
flushCache
public void flushCache()
- Overrides:
flushCachein classSerializableCache<String,SortedSet<String>>
-
getRepresentativeDomains
public SortedSet<String> getRepresentativeDomains() throws IOException
Description copied from interface:DomainProviderGet 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:
getRepresentativeDomainsin interfaceDomainProvider- Returns:
- A full list of all representative domains recognized by this provider
- Throws:
IOException- For IO errors getting the representatives
-
-