JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git] / src / jalview / ext / ensembl / EnsemblGene.java
index dd2547b..0d73a47 100644 (file)
@@ -135,29 +135,16 @@ public class EnsemblGene extends EnsemblSeqProxy
   @Override
   public AlignmentI getSequenceRecords(String query) throws Exception
   {
-         
-         
-         
- Platform.timeCheck("EG " + query, Platform.TIME_MARK);          
-         
     /*
      * convert to a non-duplicated list of gene identifiers
      */
     List<String> geneIds = getGeneIds(query);
-
-    
-    Platform.timeCheck("EG genIds " + geneIds.size(), Platform.TIME_MARK);       
-
     AlignmentI al = null;
     for (String geneId : geneIds)
     {
       /*
        * fetch the gene sequence(s) with features and xrefs
        */
-       
-        Platform.timeCheck("EG fetch " + geneId, Platform.TIME_MARK);    
-       
-       
       AlignmentI geneAlignment = super.getSequenceRecords(geneId);
       if (geneAlignment == null)
       {
@@ -168,15 +155,7 @@ public class EnsemblGene extends EnsemblSeqProxy
       {
         // ensure id has 'correct' case for the Ensembl identifier
         geneId = geneAlignment.getSequenceAt(0).getName();
-
-        
-        Platform.timeCheck("EG loci " + geneId, Platform.TIME_MARK);     
-
-        
         findGeneLoci(geneAlignment.getSequenceAt(0), geneId);
-
-        Platform.timeCheck("EG transcript " + geneId, Platform.TIME_MARK);       
-
         getTranscripts(geneAlignment, geneId);
       }
       if (al == null)
@@ -188,9 +167,6 @@ public class EnsemblGene extends EnsemblSeqProxy
         al.append(geneAlignment);
       }
     }
-    
-    Platform.timeCheck("EG done", Platform.TIME_MARK);   
-
     return al;
   }
 
@@ -561,10 +537,11 @@ public class EnsemblGene extends EnsemblSeqProxy
   @Override
   public String getTestQuery()
   {
-    return "ENSG00000157764"; // BRAF, 5 transcripts, reverse strand
+    return Platform.isJS() ? "ENSG00000123569" : "ENSG00000157764";
+    // ENSG00000123569 // H2BFWT histone, 2 transcripts, reverse strand
+    // ENSG00000157764 // BRAF, 5 transcripts, reverse strand
     // ENSG00000090266 // NDUFB2, 15 transcripts, forward strand
     // ENSG00000101812 // H2BFM histone, 3 transcripts, forward strand
-    // ENSG00000123569 // H2BFWT histone, 2 transcripts, reverse strand
   }
 
   /**