JAL-1484 always update the dataset sequence if 'trimDatasetSeqs' option is not set.
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 21 Apr 2014 15:06:30 +0000 (16:06 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 21 Apr 2014 15:06:30 +0000 (16:06 +0100)
src/jalview/ws/DBRefFetcher.java

index d742eaa..84eba02 100644 (file)
@@ -658,6 +658,11 @@ public class DBRefFetcher implements Runnable
         // unknownSequences.remove(sequence);
         int absEnd = absStart + nonGapped.length();
         absStart += 1;
+        if (!trimDatasetSeqs) {
+          // insert full length sequence from record
+          sequence.setSequence(entry.getSequenceAsString());
+          sequence.setStart(entry.getStart());
+        }
         if (updateRefFrame)
         {
           // finally, update local sequence reference frame if we're allowed
@@ -665,9 +670,6 @@ public class DBRefFetcher implements Runnable
             // just fix start/end
             sequence.setStart(absStart);
             sequence.setEnd(absEnd);
-          } else {
-            // insert full length sequence from record
-            sequence.setSequence(entry.getSequenceAsString());
           }
           // search for alignment sequences to update coordinate frame for
           for (int alsq = 0; alsq < alseqs.length; alsq++)