public class CathInstallation extends Object implements CathDatabase
| Modifier and Type | Field and Description |
|---|---|
static String |
CATH_DOWNLOAD_ALL_RELEASES_DIR |
static String |
CATH_DOWNLOAD_CLASSIFICATION_DATA_DIR |
static String |
CATH_DOWNLOAD_URL |
static String |
DEFAULT_VERSION |
static String |
domainDescriptionFileName |
static String |
domainListFileName |
static String |
domallFileName |
static String |
FILESPLIT |
static String |
NEWLINE |
static String |
nodeListFileName |
| Constructor and Description |
|---|
CathInstallation() |
CathInstallation(String cacheLocation) |
CathInstallation(String cacheLocation,
boolean usingCDDF,
boolean parseCF) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
downloadDomainDescriptionFile() |
protected void |
downloadDomainListFile() |
protected void |
downloadDomallFile() |
protected void |
downloadFileFromRemote(URL remoteURL,
File localFile) |
protected void |
downloadNodeListFile() |
void |
ensureDomainDescriptionInstalled() |
void |
ensureDomainListInstalled() |
void |
ensureDomallInstalled() |
void |
ensureNodeListInstalled() |
List<CathDomain> |
filterByCathCode(String query)
Return list of CATH descriptions whose CATH codes (e.g. 1.4.6.10) start with the query.
|
List<CathDomain> |
filterByDescription(String query)
Return list of CATH descriptions whose descriptions (name field) starts with the query.
|
List<CathDomain> |
filterByNodeName(String query)
Return list of CATH domains whose node name (e.g.
|
List<CathDomain> |
getByCategory(CathCategory category)
Return list of CATH descriptions for node representatives at a CATH category (e.g.
|
String |
getCacheLocation() |
String |
getCathDownloadUrl() |
CathNode |
getCathNode(String nodeId)
Return the CathNode for a node ID.
|
String |
getCathVersion()
Return the CATH release version.
|
CathDomain |
getDescriptionByCathId(String cathId)
Return CATH description for CATH domain ID.
|
CathDomain |
getDescriptionByNodeId(String nodeId)
Return CATH description for node representative by node ID.
|
CathDomain |
getDomainByCathId(String cathId)
Return CATH domain for CATH domain ID.
|
String |
getDomainDescriptionFileName() |
String |
getDomainListFileName() |
List<CathDomain> |
getDomainsByNodeId(String nodeId)
Return all CATH domains for a particular CATH node.
|
List<CathDomain> |
getDomainsForPdb(String pdbId)
Return all CATH domains for a PDB ID.
|
String |
getDomallFileName() |
List<CathFragment> |
getFragmentsByPdbId(String pdbId) |
AtomicBoolean |
getInstalledDomainDescription() |
AtomicBoolean |
getInstalledDomainList() |
AtomicBoolean |
getInstalledDomall() |
AtomicBoolean |
getInstalledNodeList() |
String |
getNodeListFileName() |
List<CathNode> |
getTree(CathDomain domain)
Return the CATH sub-tree for a particular domain.
|
void |
setCacheLocation(String cacheLocation) |
void |
setCathDownloadUrl(String cathDownloadUrl) |
void |
setCathVersion(String cathVersion) |
void |
setInstalledDomainDescription(AtomicBoolean installedDomainDescription) |
void |
setInstalledDomainList(AtomicBoolean installedDomainList) |
void |
setInstalledDomall(AtomicBoolean installedDomall) |
void |
setInstalledNodeList(AtomicBoolean installedNodeList) |
public static final String DEFAULT_VERSION
public static final String domainListFileName
public static final String domainDescriptionFileName
public static final String nodeListFileName
public static final String domallFileName
public static final String CATH_DOWNLOAD_URL
public static final String CATH_DOWNLOAD_ALL_RELEASES_DIR
public static final String CATH_DOWNLOAD_CLASSIFICATION_DATA_DIR
public CathInstallation(String cacheLocation, boolean usingCDDF, boolean parseCF)
public CathInstallation(String cacheLocation)
public CathInstallation()
public String getDomainListFileName()
public String getDomainDescriptionFileName()
public String getNodeListFileName()
public String getDomallFileName()
public String getCathDownloadUrl()
public void setCathDownloadUrl(String cathDownloadUrl)
public String getCacheLocation()
public void setCacheLocation(String cacheLocation)
public AtomicBoolean getInstalledDomainList()
public void setInstalledDomainList(AtomicBoolean installedDomainList)
public AtomicBoolean getInstalledDomainDescription()
public void setInstalledDomainDescription(AtomicBoolean installedDomainDescription)
public AtomicBoolean getInstalledNodeList()
public AtomicBoolean getInstalledDomall()
public void setInstalledNodeList(AtomicBoolean installedNodeList)
public void setInstalledDomall(AtomicBoolean installedDomall)
public String getCathVersion()
CathDatabasegetCathVersion in interface CathDatabasepublic CathNode getCathNode(String nodeId)
CathDatabasegetCathNode in interface CathDatabasepublic List<CathDomain> getByCategory(CathCategory category)
CathDatabasegetByCategory in interface CathDatabasepublic List<CathDomain> filterByCathCode(String query)
CathDatabasefilterByCathCode in interface CathDatabasepublic List<CathNode> getTree(CathDomain domain)
CathDatabasegetTree in interface CathDatabasepublic List<CathDomain> filterByNodeName(String query)
CathDatabasefilterByNodeName in interface CathDatabasepublic List<CathDomain> filterByDescription(String query)
CathDatabasefilterByDescription in interface CathDatabasepublic CathDomain getDescriptionByNodeId(String nodeId)
CathDatabasegetDescriptionByNodeId in interface CathDatabasepublic List<CathDomain> getDomainsForPdb(String pdbId)
CathDatabasegetDomainsForPdb in interface CathDatabasepublic CathDomain getDomainByCathId(String cathId)
CathDatabasegetDomainByCathId in interface CathDatabasepublic CathDomain getDescriptionByCathId(String cathId)
CathDatabasegetDescriptionByCathId in interface CathDatabasepublic List<CathDomain> getDomainsByNodeId(String nodeId)
CathDatabasegetDomainsByNodeId in interface CathDatabasepublic List<CathFragment> getFragmentsByPdbId(String pdbId)
getFragmentsByPdbId in interface CathDatabaseprotected void downloadFileFromRemote(URL remoteURL, File localFile) throws IOException
IOExceptionprotected void downloadDomainListFile() throws IOException
IOExceptionprotected void downloadDomainDescriptionFile() throws IOException
IOExceptionprotected void downloadNodeListFile() throws IOException
IOExceptionprotected void downloadDomallFile() throws IOException
IOExceptionpublic void ensureDomainListInstalled()
public void ensureDomainDescriptionInstalled()
public void ensureNodeListInstalled()
public void ensureDomallInstalled()
public void setCathVersion(String cathVersion)
Copyright © 2000–2019 BioJava. All rights reserved.