merge
[jalview.git] / src / jalview / ext / ensembl / EnsemblGene.java
index 0bc6a74..84b5dcf 100644 (file)
@@ -101,23 +101,18 @@ public class EnsemblGene extends EnsemblSeqProxy
    * </ul>
    * 
    * @param query
-   *          one or more identifiers separated by a space
-   * @return an alignment containing one or more genes, and possibly
-   *         transcripts, or null
+   *          a single gene or transcript identifier or gene name
+   * @return an alignment containing a gene, and possibly transcripts, or null
    */
   @Override
   public AlignmentI getSequenceRecords(String query) throws Exception
   {
-    // todo: tidy up handling of one or multiple accession ids
-    String[] queries = query.split(getAccessionSeparator());
-
     /*
      * if given a transcript id, look up its gene parent
      */
     if (isTranscriptIdentifier(query))
     {
-      // we are assuming all transcripts have the same gene parent here
-      query = new EnsemblLookup(getDomain()).getParent(queries[0]);
+      query = new EnsemblLookup(getDomain()).getParent(query);
       if (query == null)
       {
         return null;
@@ -556,4 +551,10 @@ public class EnsemblGene extends EnsemblSeqProxy
     };
   }
 
+  @Override
+  public int getMaximumQueryCount()
+  {
+    return 1;
+  }
+
 }