Class KeggAPIServiceHelper
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.databases.kegg.KeggAPIServiceHelper
- All Implemented Interfaces:
- FileDownloadStatusInformationProvider,- HelperClass
public class KeggAPIServiceHelper extends Object implements HelperClass, FileDownloadStatusInformationProvider
This Kegg API Service helper will retrieve and cache results looked up from
 the Kegg public REST webservice. The cache will be implemented using the
 MapDB database library.
 The service helper will return KoEntry objects (single or Lists) given on of
 the following commonly used inputs - KO Ids - EC number - Gene ID
- Author:
- matthiak
- 
Method SummaryModifier and Type Method Description voidfinishedNewDownload()StringgetDescription()List<KoEntry>getEntriesByEC(String ecId)Retrieves an array of KO entries for a given EC numberList<KoEntry>getEntriesByEC(List<String> listEC)Algorithm to retrieve KO entries from EC numbers 2 step process 1.List<KoEntry>getEntriesByKO(String koId)Retrieves an array of KO entries for a given KO idList<KoEntry>getEntriesByKO(List<String> listKOids)returns List of koEntry objects matching the given KO ids (K numbers)static KeggAPIServiceHelpergetInstance()JComponentgetStatusPane(boolean showEmpty)
- 
Method Details- 
getInstance
- 
getEntriesByECRetrieves an array of KO entries for a given EC number- Parameters:
- ecId-
- Returns:
 
- 
getEntriesByECAlgorithm to retrieve KO entries from EC numbers 2 step process 1. find KO id to EC number in cache OR 1. if not in cache find KO entry online 2. download KO entry -create KoEntry object and put it in the cache returns List of koEntry objects matching the given EC numbers
- 
getEntriesByKORetrieves an array of KO entries for a given KO id- Parameters:
- KO- id (K number)
- Returns:
 
- 
getEntriesByKOreturns List of koEntry objects matching the given KO ids (K numbers)
- 
getStatusPane- Specified by:
- getStatusPanein interface- FileDownloadStatusInformationProvider
 
- 
getDescription- Specified by:
- getDescriptionin interface- FileDownloadStatusInformationProvider
 
- 
finishedNewDownloadpublic void finishedNewDownload()- Specified by:
- finishedNewDownloadin interface- FileDownloadStatusInformationProvider
 
 
-