Skip to content

Commit a510a01

Browse files
committed
Update HiPhivePriorityResult to handle G2P and MONDO links
1 parent 4a0a06c commit a510a01

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

exomiser-core/src/main/java/org/monarchinitiative/exomiser/core/prioritisers/HiPhivePriorityResult.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,17 @@ private void makePicoBestPhenotypeMatchHtml(StringBuilder stringBuilder, Map<Phe
458458
}
459459

460460
private String makePicoDiseaseLink(String diseaseId, String diseaseTerm) {
461+
if (diseaseId.startsWith("G2P")) {
462+
// e.g. G2P01586 https://www.ebi.ac.uk/gene2phenotype/lgd/G2P01586
463+
return "<a href=\"https://www.ebi.ac.uk/gene2phenotype/lgd/" + diseaseId + "\">" + diseaseTerm + "</a>";
464+
}
461465
String[] databaseNameAndIdentifier = diseaseId.split(":");
462466
String databaseName = databaseNameAndIdentifier[0];
463467
String id = databaseNameAndIdentifier[1];
464468
String target = switch (databaseName) {
465469
case "OMIM" -> "https://www.omim.org/entry/" + id;
466470
case "ORPHA" -> "https://www.orpha.net/consor/cgi-bin/OC_Exp.php?lng=en&Expert=" + id;
471+
case "MONDO" -> "https://monarchinitiative.org/MONDO:" + id;
467472
default -> id;
468473
};
469474
return "<a href=\""+ target + "\">" + diseaseTerm + "</a>";

0 commit comments

Comments
 (0)