JAL-2154 ENA specific Ensembl canonical db prefixes
authorJim Procter <jprocter@issues.jalview.org>
Mon, 29 Aug 2016 21:09:50 +0000 (22:09 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 29 Aug 2016 21:09:50 +0000 (22:09 +0100)
src/jalview/util/DBRefUtils.java

index d5d0cf5..1965c20 100755 (executable)
@@ -59,6 +59,11 @@ public class DBRefUtils
 
     canonicalSourceNameLookup.put("pdb", DBRefSource.PDB);
     canonicalSourceNameLookup.put("ensembl", DBRefSource.ENSEMBL);
+    // Ensembl Gn and Tr are for Ensembl genomic and transcript IDs as served
+    // from ENA.
+    canonicalSourceNameLookup.put("ensembl-tr", DBRefSource.ENSEMBL);
+    canonicalSourceNameLookup.put("ensembl-gn", DBRefSource.ENSEMBL);
+
 
     dasCoordinateSystemsLookup.put("pdbresnum", DBRefSource.PDB);
     dasCoordinateSystemsLookup.put("uniprot", DBRefSource.UNIPROT);