JAL-2210 need to add both transcript and product, and Ensembl needs to be marked...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 3 Oct 2016 08:21:10 +0000 (09:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 3 Oct 2016 08:21:10 +0000 (09:21 +0100)
src/jalview/datamodel/DBRefSource.java
src/jalview/ws/dbsources/Uniprot.java

index aef18e9..0ac14e5 100755 (executable)
@@ -101,7 +101,7 @@ public class DBRefSource
   public static final String[] CODINGDBS = { EMBLCDS, GENEDB, ENSEMBL };
 
   public static final String[] PROTEINDBS = { UNIPROT, UNIPROTKB,
-      EMBLCDSProduct }; // , ENSEMBL }; // Ensembl ENSP* entries are protein
+      EMBLCDSProduct, ENSEMBL }; // Ensembl ENSP* entries are protein
 
   public static String[] allSources()
   {
index e26ccda..4c53ef9 100644 (file)
@@ -236,7 +236,7 @@ public class Uniprot extends DbSourceProxyImpl
           dbRefs.add(dbr);
         }
       }
-      if (false) // "Ensembl".equals(pdb.getType()))
+      if ("Ensembl".equals(pdb.getType()))
       {
         /*UniprotXML
          * <dbReference type="Ensembl" id="ENST00000321556">
@@ -249,8 +249,6 @@ public class Uniprot extends DbSourceProxyImpl
                 .get("protein sequence ID");
         if (cdsId != null && cdsId.trim().length() > 0)
         {
-          // Only add the product ID
-          dbRefs.remove(dbr);
           dbr = new DBRefEntry(DBRefSource.ENSEMBL, DBRefSource.UNIPROT
                   + ":" + dbVersion, cdsId.trim());
           dbRefs.add(dbr);