From 3d602daa9275e88fb2f78ae04c9ceb038d171337 Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Sun, 8 Oct 2023 21:56:41 +0200 Subject: [PATCH] Added the backwards compatability --- org.bridgedb/src/main/java/org/bridgedb/DataSource.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.bridgedb/src/main/java/org/bridgedb/DataSource.java b/org.bridgedb/src/main/java/org/bridgedb/DataSource.java index 355c6cc06..2c8712d5a 100644 --- a/org.bridgedb/src/main/java/org/bridgedb/DataSource.java +++ b/org.bridgedb/src/main/java/org/bridgedb/DataSource.java @@ -807,6 +807,10 @@ public static DataSource getExistingByFullName(String fullName) { if (byFullName.containsKey(fullName)){ return byFullName.get(fullName); + // the following lines are added on 2023-10 for backwards compatibility + } else if ("Uniprot-TrEMBL".equals(fullName) || + "Uniprot-SwissProt".equals(fullName)) { + return byFullName.get("UniProtKB"); } throw new IllegalArgumentException ("No DataSource known for " + fullName); }