JAL-1705 align CDS and peptide products to transcripts
[jalview.git] / src / jalview / ext / ensembl / EnsemblSeqProxy.java
index 77263ff..869a702 100644 (file)
@@ -343,6 +343,7 @@ public abstract class EnsemblSeqProxy extends EnsemblRestClient
     int mappedDnaLength = getCdsRanges(dnaSeq, ranges);
 
     int proteinLength = proteinSeq.getLength();
+    int proteinEnd = proteinLength;
     int proteinStart = 1;
 
     /*
@@ -367,7 +368,7 @@ public abstract class EnsemblSeqProxy extends EnsemblRestClient
     }
     if (codesForResidues == proteinLength)
     {
-      proteinRange.add(new int[] { proteinStart, proteinLength });
+      proteinRange.add(new int[] { proteinStart, proteinEnd });
       return new MapList(ranges, proteinRange, 3, 1);
     }
     return null;