public class ScopInstallation extends Object implements LocalScopDatabase
| Modifier and Type | Field and Description |
|---|---|
static String |
claFileName |
static String |
comFileName |
static String |
DEFAULT_VERSION |
static String |
desFileName |
static String |
FILESPLIT |
static String |
hieFileName |
static String |
SCOP_DOWNLOAD |
static String |
SCOP_DOWNLOAD_ALTERNATE |
| Constructor and Description |
|---|
ScopInstallation()
Create a new SCOP installation, downloading the file to "the right place".
|
ScopInstallation(String cacheLocation)
Create a new SCOP installation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMirror(String scopDownloadURL) |
protected void |
downloadClaFile() |
protected void |
downloadComFile() |
protected void |
downloadDesFile() |
protected void |
downloadFileFromRemote(URL remoteURL,
File localFile) |
protected void |
downloadHieFile() |
void |
ensureClaInstalled() |
void |
ensureComInstalled() |
void |
ensureDesInstalled() |
void |
ensureHieInstalled() |
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
|
List<ScopDescription> |
getByCategory(ScopCategory category)
Get all records of a particular classification.
|
String |
getCacheLocation() |
protected String |
getClaFilename() |
protected String |
getComFilename() |
List<String> |
getComments(int sunid)
Get comments about a SCOP domain by its sunid
|
protected String |
getDesFilename() |
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
|
protected String |
getHieFilename() |
List<ScopMirror> |
getMirrors() |
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 |
nullifyComments()
Removes all of the comments (dir.com file) in order to free memory.
|
void |
setCacheLocation(String cacheLocation) |
void |
setScopVersion(String scopVersion)
Sets the scop version used.
|
public static final String DEFAULT_VERSION
public static final String claFileName
public static final String desFileName
public static final String hieFileName
public static final String comFileName
public static final String SCOP_DOWNLOAD
public static final String SCOP_DOWNLOAD_ALTERNATE
public ScopInstallation(String cacheLocation)
cacheLocation - where the SCOP files are stored. If they can't be found at that location they will get automatically downloaded and installed there.public ScopInstallation()
UserConfiguration.PDB_CACHE_DIR, or else will use a temporary directorypublic void nullifyComments()
getComments(int) is called subsequently.public void ensureClaInstalled() throws IOException
IOExceptionpublic void ensureDesInstalled() throws IOException
IOExceptionpublic void ensureComInstalled() throws IOException
IOExceptionpublic void ensureHieInstalled() throws IOException
IOExceptionpublic List<ScopDescription> getByCategory(ScopCategory category)
ScopDatabasegetByCategory in interface ScopDatabasecategory - e.g. "superfamily"public List<ScopDescription> filterByClassificationId(String query)
ScopDatabasefilterByClassificationId in interface ScopDatabasepublic List<ScopNode> getTree(ScopDomain domain)
ScopDatabasegetTree in interface ScopDatabasepublic List<ScopDomain> filterByDomainName(String query)
ScopDatabasefilterByDomainName in interface ScopDatabasequery - a (part) of a namepublic List<ScopDescription> filterByDescription(String query) throws ScopIOException
ScopDatabasefilterByDescription in interface ScopDatabaseScopIOExceptionpublic ScopDescription getScopDescriptionBySunid(int sunid)
ScopDatabasegetScopDescriptionBySunid in interface ScopDatabasepublic List<ScopDomain> getDomainsForPDB(String pdbId)
ScopDatabasegetDomainsForPDB in interface ScopDatabasepdbId - the PDB entrypublic ScopDomain getDomainByScopID(String scopId)
ScopDatabasegetDomainByScopID in interface ScopDatabasescopId - e.g. d2bq6a1public ScopNode getScopNode(int sunid)
ScopDatabasegetScopNode in interface ScopDatabasesunid - the scop unique idprotected void downloadClaFile() throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionprotected void downloadDesFile() throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionprotected void downloadHieFile() throws IOException
IOExceptionprotected void downloadComFile() throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionprotected void downloadFileFromRemote(URL remoteURL, File localFile) throws IOException
IOExceptionprotected String getClaFilename()
protected String getDesFilename()
protected String getHieFilename()
protected String getComFilename()
public String getCacheLocation()
public void setCacheLocation(String cacheLocation)
public String getScopVersion()
ScopDatabasegetScopVersion in interface ScopDatabasepublic void setScopVersion(String scopVersion)
ScopDatabasesetScopVersion in interface ScopDatabasepublic List<ScopMirror> getMirrors()
public List<ScopDomain> getScopDomainsBySunid(Integer sunid)
ScopDatabasegetScopDomainsBySunid in interface ScopDatabasesunid - the scop unique idpublic List<String> getComments(int sunid)
ScopDatabasegetComments in interface ScopDatabaseCopyright © 2000–2019 BioJava. All rights reserved.