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