Package org.biojava.nbio.structure.cath
Class CathInstallation
java.lang.Object
org.biojava.nbio.structure.cath.CathInstallation
- All Implemented Interfaces:
CathDatabase
- Author:
- Daniel Asarnow
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCathInstallation
(String cacheLocation) CathInstallation
(String cacheLocation, boolean usingCDDF, boolean parseCF) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
downloadFileFromRemote
(URL remoteURL, File localFile) protected void
void
void
void
void
filterByCathCode
(String query) Return list of CATH descriptions whose CATH codes (e.g.filterByDescription
(String query) Return list of CATH descriptions whose descriptions (name field) starts with the query.filterByNodeName
(String query) Return list of CATH domains whose node name (e.g.getByCategory
(CathCategory category) Return list of CATH descriptions for node representatives at a CATH category (e.g.getCathNode
(String nodeId) Return the CathNode for a node ID.Return the CATH release version.getDescriptionByCathId
(String cathId) Return CATH description for CATH domain ID.getDescriptionByNodeId
(String nodeId) Return CATH description for node representative by node ID.getDomainByCathId
(String cathId) Return CATH domain for CATH domain ID.getDomainsByNodeId
(String nodeId) Return all CATH domains for a particular CATH node.getDomainsForPdb
(String pdbId) Return all CATH domains for a PDB ID.getFragmentsByPdbId
(String pdbId) 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)
-
Field Details
-
DEFAULT_VERSION
- See Also:
-
domainListFileName
- See Also:
-
domainDescriptionFileName
- See Also:
-
nodeListFileName
- See Also:
-
domallFileName
- See Also:
-
CATH_DOWNLOAD_URL
- See Also:
-
CATH_DOWNLOAD_ALL_RELEASES_DIR
- See Also:
-
CATH_DOWNLOAD_CLASSIFICATION_DATA_DIR
- See Also:
-
NEWLINE
-
FILESPLIT
-
-
Constructor Details
-
CathInstallation
-
CathInstallation
-
CathInstallation
public CathInstallation()
-
-
Method Details
-
getDomainListFileName
-
getDomainDescriptionFileName
-
getNodeListFileName
-
getDomallFileName
-
getCathDownloadUrl
-
setCathDownloadUrl
-
getCacheLocation
-
setCacheLocation
-
getInstalledDomainList
-
setInstalledDomainList
-
getInstalledDomainDescription
-
setInstalledDomainDescription
-
getInstalledNodeList
-
getInstalledDomall
-
setInstalledNodeList
-
setInstalledDomall
-
getCathVersion
Description copied from interface:CathDatabase
Return the CATH release version.- Specified by:
getCathVersion
in interfaceCathDatabase
- Returns:
- CATH version
-
getCathNode
Description copied from interface:CathDatabase
Return the CathNode for a node ID.- Specified by:
getCathNode
in interfaceCathDatabase
- Returns:
- CATH node
-
getByCategory
Description copied from interface:CathDatabase
Return list of CATH descriptions for node representatives at a CATH category (e.g. "T").- Specified by:
getByCategory
in interfaceCathDatabase
- Returns:
- CATH descriptions
-
filterByCathCode
Description copied from interface:CathDatabase
Return list of CATH descriptions whose CATH codes (e.g. 1.4.6.10) start with the query. This is currently redundant with getDescriptionsByNodeId.- Specified by:
filterByCathCode
in interfaceCathDatabase
- Returns:
- CATH descriptions
-
getTree
Description copied from interface:CathDatabase
Return the CATH sub-tree for a particular domain.- Specified by:
getTree
in interfaceCathDatabase
- Returns:
- CATH sub-tree
-
filterByNodeName
Description copied from interface:CathDatabase
Return list of CATH domains whose node name (e.g. Orthogonal Bundle) starts with the query.- Specified by:
filterByNodeName
in interfaceCathDatabase
- Returns:
- CATH domains
-
filterByDescription
Description copied from interface:CathDatabase
Return list of CATH descriptions whose descriptions (name field) starts with the query.- Specified by:
filterByDescription
in interfaceCathDatabase
- Returns:
- CATH descriptions
-
getDescriptionByNodeId
Description copied from interface:CathDatabase
Return CATH description for node representative by node ID.- Specified by:
getDescriptionByNodeId
in interfaceCathDatabase
- Returns:
- CATH description
-
getDomainsForPdb
Description copied from interface:CathDatabase
Return all CATH domains for a PDB ID.- Specified by:
getDomainsForPdb
in interfaceCathDatabase
- Returns:
- CATH domains
-
getDomainByCathId
Description copied from interface:CathDatabase
Return CATH domain for CATH domain ID.- Specified by:
getDomainByCathId
in interfaceCathDatabase
- Returns:
- CATH domain
-
getDescriptionByCathId
Description copied from interface:CathDatabase
Return CATH description for CATH domain ID.- Specified by:
getDescriptionByCathId
in interfaceCathDatabase
- Returns:
-
getDomainsByNodeId
Description copied from interface:CathDatabase
Return all CATH domains for a particular CATH node.- Specified by:
getDomainsByNodeId
in interfaceCathDatabase
- Returns:
-
getFragmentsByPdbId
- Specified by:
getFragmentsByPdbId
in interfaceCathDatabase
-
downloadFileFromRemote
- Throws:
IOException
-
downloadDomainListFile
- Throws:
IOException
-
downloadDomainDescriptionFile
- Throws:
IOException
-
downloadNodeListFile
- Throws:
IOException
-
downloadDomallFile
- Throws:
IOException
-
ensureDomainListInstalled
public void ensureDomainListInstalled() -
ensureDomainDescriptionInstalled
public void ensureDomainDescriptionInstalled() -
ensureNodeListInstalled
public void ensureNodeListInstalled() -
ensureDomallInstalled
public void ensureDomallInstalled() -
setCathVersion
-