@Component(value="ebiService") public class EbiServiceAnnotator extends AbstractRepositoryAnnotator implements RepositoryAnnotator, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
This class calls the EBI CHeMBL webservice with a uniprot ID. The webservice returns a map with information on the submitted protein ID.
EBI returns: {target={targetType, chemblId, geneNames, description, compoundCount, bioactivityCount, proteinAccession, synonyms, organism, preferredName}}
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
UNIPROT_ID |
ANNOTATOR_PREFIX| Constructor and Description |
|---|
EbiServiceAnnotator() |
EbiServiceAnnotator(org.apache.http.client.HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
List<Entity> |
annotateEntity(Entity entity) |
boolean |
annotationDataExists()
Checks if folder and files that were set with a runtime property actually exist, or if a webservice can be
reached
|
EntityMetaData |
getInputMetaData() |
EntityMetaData |
getOutputMetaData() |
String |
getSimpleName() |
annotate, canAnnotate, getFullName, onApplicationEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotate, canAnnotate, getDescription, getFullNamepublic static final String UNIPROT_ID
public static final String NAME
public EbiServiceAnnotator()
public EbiServiceAnnotator(org.apache.http.client.HttpClient client)
public String getSimpleName()
getSimpleName in interface RepositoryAnnotatorpublic EntityMetaData getInputMetaData()
getInputMetaData in interface RepositoryAnnotatorpublic boolean annotationDataExists()
AbstractRepositoryAnnotatorannotationDataExists in class AbstractRepositoryAnnotatorpublic List<Entity> annotateEntity(Entity entity)
annotateEntity in class AbstractRepositoryAnnotatorpublic EntityMetaData getOutputMetaData()
getOutputMetaData in interface RepositoryAnnotatorCopyright © 2015. All Rights Reserved.