JAl-1705 ENSEMBL cDNA type cannot be queried with peptide IDs
authorJim Procter <jprocter@issues.jalview.org>
Sun, 28 Jun 2015 17:46:25 +0000 (18:46 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 28 Jun 2015 17:46:34 +0000 (18:46 +0100)
src/jalview/ext/ensembl/EnsemblCdna.java
src/jalview/ext/ensembl/SeqFetcher.java

index 4fc80ca..757b3c8 100644 (file)
@@ -2,6 +2,8 @@ package jalview.ext.ensembl;
 
 import jalview.ext.ensembl.SeqFetcher.EnsemblSeqType;
 
+import com.stevesoft.pat.Regex;
+
 public class EnsemblCdna extends EnsemblSeqProxy
 {
 
@@ -22,4 +24,16 @@ public class EnsemblCdna extends EnsemblSeqProxy
     return EnsemblSeqType.CDNA;
   }
 
+  @Override
+  public Regex getAccessionValidator()
+  {
+    return new Regex("((ENST|ENSG|CCDS)[0-9.]{3,})");
+  }
+
+  @Override
+  public String getTestQuery()
+  {
+    return "ENST00000288602";
+  }
+
 }
index b246d0d..9258558 100644 (file)
@@ -125,7 +125,7 @@ public class SeqFetcher
       arg = "cds";
       break;
     case CDNA:
-      arg = "CDNA";
+      arg = "cdna";
       break;
     case PROTEIN:
       arg = "protein";