public class CachedRemoteScopInstallation extends SerializableCache<String,ScopDomain> implements ScopDatabase
cacheFileName, serializedCache
Constructor and Description |
---|
CachedRemoteScopInstallation() |
CachedRemoteScopInstallation(boolean useCache) |
Modifier and Type | Method and Description |
---|---|
List<ScopDescription> |
filterByClassificationId(String query)
Get all scop descriptions that start with a classification ID, e.g. b.1.18
|
List<ScopDescription> |
filterByDescription(String query)
Get all scop descriptions that start with a certain name. e.g.
|
List<ScopDomain> |
filterByDomainName(String query)
search through SCOP and filter based on domain name
|
void |
flushCache() |
List<ScopDescription> |
getByCategory(ScopCategory category)
Get all records of a particular classification.
|
List<String> |
getComments(int sunid)
Get comments about a SCOP domain by its sunid
|
ScopDomain |
getDomainByScopID(String scopId)
get a ScopDomain by its SCOP ID (warning, they are not stable between releases!)
|
List<ScopDomain> |
getDomainsForPDB(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.
|
List<ScopDomain> |
getScopDomainsBySunid(Integer sunid)
Get a SCOP domain by its sunid
|
ScopNode |
getScopNode(int sunid)
Access a particular ScopNode.
|
String |
getScopVersion()
Returns the SCOP version
|
List<ScopNode> |
getTree(ScopDomain domain)
get the SCOP sub-tree for a particular domain.
|
void |
setScopVersion(String version)
Sets the scop version used.
|
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFile
public CachedRemoteScopInstallation() throws IOException
IOException
public CachedRemoteScopInstallation(boolean useCache) throws IOException
IOException
public List<ScopDescription> getByCategory(ScopCategory category)
ScopDatabase
getByCategory
in interface ScopDatabase
category
- e.g. "superfamily"public List<ScopDescription> filterByClassificationId(String query)
ScopDatabase
filterByClassificationId
in interface ScopDatabase
public List<ScopNode> getTree(ScopDomain domain)
ScopDatabase
getTree
in interface ScopDatabase
public List<ScopDomain> filterByDomainName(String query)
ScopDatabase
filterByDomainName
in interface ScopDatabase
query
- a (part) of a namepublic List<ScopDescription> filterByDescription(String query)
ScopDatabase
filterByDescription
in interface ScopDatabase
public ScopDescription getScopDescriptionBySunid(int sunid)
ScopDatabase
getScopDescriptionBySunid
in interface ScopDatabase
public List<ScopDomain> getDomainsForPDB(String pdbId)
ScopDatabase
getDomainsForPDB
in interface ScopDatabase
pdbId
- the PDB entrypublic ScopDomain getDomainByScopID(String scopId)
ScopDatabase
getDomainByScopID
in interface ScopDatabase
scopId
- e.g. d2bq6a1public ScopNode getScopNode(int sunid)
ScopDatabase
getScopNode
in interface ScopDatabase
sunid
- the scop unique idpublic String getScopVersion()
ScopDatabase
getScopVersion
in interface ScopDatabase
public void setScopVersion(String version)
ScopDatabase
setScopVersion
in interface ScopDatabase
public List<ScopDomain> getScopDomainsBySunid(Integer sunid)
ScopDatabase
getScopDomainsBySunid
in interface ScopDatabase
sunid
- the scop unique idpublic void flushCache()
flushCache
in class SerializableCache<String,ScopDomain>
public List<String> getComments(int sunid)
ScopDatabase
getComments
in interface ScopDatabase
Copyright © 2000–2019 BioJava. All rights reserved.