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()
CathDatabase
getCathVersion
in interface CathDatabase
public CathNode getCathNode(String nodeId)
CathDatabase
getCathNode
in interface CathDatabase
public List<CathDomain> getByCategory(CathCategory category)
CathDatabase
getByCategory
in interface CathDatabase
public List<CathDomain> filterByCathCode(String query)
CathDatabase
filterByCathCode
in interface CathDatabase
public List<CathNode> getTree(CathDomain domain)
CathDatabase
getTree
in interface CathDatabase
public List<CathDomain> filterByNodeName(String query)
CathDatabase
filterByNodeName
in interface CathDatabase
public List<CathDomain> filterByDescription(String query)
CathDatabase
filterByDescription
in interface CathDatabase
public CathDomain getDescriptionByNodeId(String nodeId)
CathDatabase
getDescriptionByNodeId
in interface CathDatabase
public List<CathDomain> getDomainsForPdb(String pdbId)
CathDatabase
getDomainsForPdb
in interface CathDatabase
public CathDomain getDomainByCathId(String cathId)
CathDatabase
getDomainByCathId
in interface CathDatabase
public CathDomain getDescriptionByCathId(String cathId)
CathDatabase
getDescriptionByCathId
in interface CathDatabase
public List<CathDomain> getDomainsByNodeId(String nodeId)
CathDatabase
getDomainsByNodeId
in interface CathDatabase
public List<CathFragment> getFragmentsByPdbId(String pdbId)
getFragmentsByPdbId
in interface CathDatabase
protected void downloadFileFromRemote(URL remoteURL, File localFile) throws IOException
IOException
protected void downloadDomainListFile() throws IOException
IOException
protected void downloadDomainDescriptionFile() throws IOException
IOException
protected void downloadNodeListFile() throws IOException
IOException
protected void downloadDomallFile() throws IOException
IOException
public void ensureDomainListInstalled()
public void ensureDomainDescriptionInstalled()
public void ensureNodeListInstalled()
public void ensureDomallInstalled()
public void setCathVersion(String cathVersion)
Copyright © 2000–2019 BioJava. All rights reserved.