JAL-2154 should only add mappings between dataset sequences
authorJim Procter <jprocter@issues.jalview.org>
Tue, 23 Aug 2016 17:40:19 +0000 (18:40 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 23 Aug 2016 17:40:19 +0000 (18:40 +0100)
src/jalview/analysis/AlignmentUtils.java

index ba9821c..b57fbbf 100644 (file)
@@ -1697,7 +1697,8 @@ public class AlignmentUtils
           MapList cdsToProteinMap = new MapList(cdsRange, mapList.getToRanges(),
                   mapList.getFromRatio(), mapList.getToRatio());
           AlignedCodonFrame cdsToProteinMapping = new AlignedCodonFrame();
-          cdsToProteinMapping.addMap(cdsSeq, proteinProduct, cdsToProteinMap);
+          cdsToProteinMapping.addMap(cdsSeqDss, proteinProduct,
+                  cdsToProteinMap);
 
           /*
            * guard against duplicating the mapping if repeating this action
@@ -1714,7 +1715,7 @@ public class AlignmentUtils
           MapList dnaToCdsMap = new MapList(mapList.getFromRanges(),
                   cdsRange, 1,
                   1);
-          dnaToCdsMapping.addMap(dnaSeq.getDatasetSequence(), cdsSeq,
+          dnaToCdsMapping.addMap(dnaSeq.getDatasetSequence(), cdsSeqDss,
                   dnaToCdsMap);
           if (!mappings.contains(dnaToCdsMapping))
           {