File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -835,6 +835,9 @@ public static DataSource getExistingByFullName(String fullName)
835835 * @since Version 2.0.0
836836 */
837837 public static boolean fullNameExists (String fullName ){
838+ if ("Uniprot-TrEMBL" .equals (fullName ) || "Uniprot-SwissProt" .equals (fullName )) {
839+ fullName = "UniProtKB" ;
840+ }
838841 return byFullName .containsKey (fullName );
839842 }
840843
Original file line number Diff line number Diff line change @@ -505,4 +505,10 @@ public void testBioregistry() {
505505 assertFalse (DataSource .bioregistryPrefixExists ("unifrot" ));
506506 }
507507
508+ @ Test
509+ public void testFullNameExists () {
510+ assertTrue (DataSource .fullNameExists ("Uniprot-TrEMBL" ));;
511+ assertTrue (DataSource .fullNameExists ("Uniprot-SwissProt" ));;
512+ assertTrue (DataSource .fullNameExists ("UniProtKB" ));;
513+ }
508514}
You can’t perform that action at this time.
0 commit comments