public class CachedRemoteScopInstallation extends SerializableCache<java.lang.String,ScopDomain> implements ScopDatabase
cacheFileName, serializedCache| Constructor and Description |
|---|
CachedRemoteScopInstallation() |
CachedRemoteScopInstallation(boolean useCache) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ScopDescription> |
filterByClassificationId(java.lang.String query)
Get all scop descriptions that start with a classification ID, e.g.
|
java.util.List<ScopDescription> |
filterByDescription(java.lang.String query)
Get all scop descriptions that start with a certain name.
|
java.util.List<ScopDomain> |
filterByDomainName(java.lang.String query)
search through SCOP and filter based on domain name
|
void |
flushCache() |
java.util.List<ScopDescription> |
getByCategory(ScopCategory category)
Get all records of a particular classification.
|
java.util.List<java.lang.String> |
getComments(int sunid)
Get comments about a SCOP domain by its sunid
|
ScopDomain |
getDomainByScopID(java.lang.String scopId)
get a ScopDomain by its SCOP ID (warning, they are not stable between releases!)
|
java.util.List<ScopDomain> |
getDomainsForPDB(java.lang.String pdbId)
Get a list of ScopDomains that have been assigned to a PDB ID
|
ScopDescription |
getScopDescriptionBySunid(int sunid)
Return the SCOP description for a node in the hierarchy by its "sunid" id.
|
java.util.List<ScopDomain> |
getScopDomainsBySunid(java.lang.Integer sunid)
Get a SCOP domain by its sunid
|
ScopNode |
getScopNode(int sunid)
Access a particular ScopNode.
|
java.lang.String |
getScopVersion()
Returns the SCOP version
|
java.util.List<ScopNode> |
getTree(ScopDomain domain)
get the SCOP sub-tree for a particular domain.
|
void |
setScopVersion(java.lang.String version)
Sets the scop version used.
|
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFilepublic CachedRemoteScopInstallation()
throws java.io.IOException
java.io.IOExceptionpublic CachedRemoteScopInstallation(boolean useCache)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<ScopDescription> getByCategory(ScopCategory category)
ScopDatabasegetByCategory in interface ScopDatabasecategory - e.g. "superfamily"public java.util.List<ScopDescription> filterByClassificationId(java.lang.String query)
ScopDatabasefilterByClassificationId in interface ScopDatabasepublic java.util.List<ScopNode> getTree(ScopDomain domain)
ScopDatabasegetTree in interface ScopDatabasepublic java.util.List<ScopDomain> filterByDomainName(java.lang.String query)
ScopDatabasefilterByDomainName in interface ScopDatabasequery - a (part) of a namepublic java.util.List<ScopDescription> filterByDescription(java.lang.String query)
ScopDatabasefilterByDescription in interface ScopDatabasepublic ScopDescription getScopDescriptionBySunid(int sunid)
ScopDatabasegetScopDescriptionBySunid in interface ScopDatabasepublic java.util.List<ScopDomain> getDomainsForPDB(java.lang.String pdbId)
ScopDatabasegetDomainsForPDB in interface ScopDatabasepdbId - the PDB entrypublic ScopDomain getDomainByScopID(java.lang.String scopId)
ScopDatabasegetDomainByScopID in interface ScopDatabasescopId - e.g. d2bq6a1public ScopNode getScopNode(int sunid)
ScopDatabasegetScopNode in interface ScopDatabasesunid - the scop unique idpublic java.lang.String getScopVersion()
ScopDatabasegetScopVersion in interface ScopDatabasepublic void setScopVersion(java.lang.String version)
ScopDatabasesetScopVersion in interface ScopDatabasepublic java.util.List<ScopDomain> getScopDomainsBySunid(java.lang.Integer sunid)
ScopDatabasegetScopDomainsBySunid in interface ScopDatabasesunid - the scop unique idpublic void flushCache()
flushCache in class SerializableCache<java.lang.String,ScopDomain>public java.util.List<java.lang.String> getComments(int sunid)
ScopDatabasegetComments in interface ScopDatabase