Skip to content
Snippets Groups Projects
Commit eb9a0cfd authored by Piotr Gawron's avatar Piotr Gawron
Browse files

rhea identifiers handled from recon

parent 3ee7533a
No related branches found
No related tags found
Loading
Pipeline #6729 passed
......@@ -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()}.
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment