JAL-1062 JAL-659 correct start position for retrieved sequence
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 2 Sep 2012 13:30:12 +0000 (14:30 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 2 Sep 2012 13:30:12 +0000 (14:30 +0100)
src/jalview/ws/dbsources/das/datamodel/DasSequenceSource.java

index ebe0134..269baf1 100644 (file)
@@ -93,7 +93,7 @@ public class DasSequenceSource extends DbSourceProxyImpl implements
     }\r
     this.source = source;\r
     this.dbname = dbname;\r
-    this.dbrefname = dbrefname;\r
+    this.dbrefname = dbrefname.toUpperCase();\r
     if (coordsys!=null ) {\r
       this.coordsys = coordsys;\r
     }\r
@@ -253,6 +253,7 @@ public class DasSequenceSource extends DbSourceProxyImpl implements
               // in the XML\r
               Sequence sq = new Sequence(lbl, e.getContent().replaceAll(\r
                       "\\s+", ""));\r
+              sq.setStart(e.getStart().intValue());\r
               sq.addDBRef(new DBRefEntry(getDbSource(), getDbVersion()\r
                       + ":" + e.getVersion(), lbl));\r
               seqs.addElement(sq);\r