Commit eb9a0cfd authored by Piotr Gawron's avatar Piotr Gawron
Browse files

rhea identifiers handled from recon

parent 3ee7533a
Pipeline #6729 passed with stage
in 7 minutes and 41 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment