Commit 73ba21c7 authored by David Hoksza's avatar David Hoksza
Browse files

Fix DrugBank test to take into account annotator type

parent 5b9d4eaf
Pipeline #3612 failed with stage
in 58 seconds
......@@ -703,8 +703,9 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi
protienLinkPosition = protienLinkPosition + "/polypeptides/".length(); // 20;
int j = page.indexOf('"', protienLinkPosition);
String uniprotId = page.substring(protienLinkPosition, j);
MiriamData uniprotMiriam = new MiriamData(MiriamType.UNIPROT, uniprotId, UniprotAnnotator.class);
MiriamData uniprotMiriam = new MiriamData(MiriamType.UNIPROT, uniprotId);
MiriamData hgncMiriam = uniprotAnnotator.uniProtToHgnc(uniprotMiriam);
if (hgncMiriam != null) hgncMiriam.setAnnotator(null);
if (hgncMiriam == null || !hgncMiriam.equals(hgncTarget)) {
logger.debug("Invalid target found. Expected " + hgncTarget + ", but found: " + hgncMiriam + " ("
+ uniprotMiriam + ")");
......
Markdown is supported
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