diff --git a/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotator.java b/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotator.java index 398ca7abb2632a86877b4d7280f65793bab46a24..b2a6c81fa49469e9e7b698621c33bee6e8049516 100644 --- a/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotator.java +++ b/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotator.java @@ -527,6 +527,10 @@ public abstract class ElementAnnotator extends CachableInterface { MiriamData md = createMiriamData(MiriamType.CHEMBL_COMPOUND, value); element.addMiriamData(md); } + protected void addRhea(BioEntity element, String value) { + MiriamData md = createMiriamData(MiriamType.RHEA, value); + element.addMiriamData(md); + } /** * Sets {@link BioEntity#getFormula()}. diff --git a/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ReconAnnotator.java b/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ReconAnnotator.java index 7ab75df2d57815c6fbac2be583e3bbea8ccbe2e7..f86d91e59b68f8a447ffc749a2291dc157691a03 100644 --- a/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ReconAnnotator.java +++ b/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/ReconAnnotator.java @@ -297,6 +297,8 @@ public class ReconAnnotator extends ElementAnnotator implements IExternalService addCas(annotatedObject, value); } else if (key.equals("chembl")) { addChemblCompound(annotatedObject, value); + } else if (key.equals("rhea")) { + addRhea(annotatedObject, value); } else if (key.equals("epa_id")) { // for now we don't handle it continue;