JAL-2230 use correct mapping to transfer features to CDS!
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 27 Sep 2016 08:23:55 +0000 (09:23 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 27 Sep 2016 08:23:55 +0000 (09:23 +0100)
src/jalview/analysis/AlignmentUtils.java

index ea330d8..c521d9b 100644 (file)
@@ -1731,8 +1731,7 @@ public class AlignmentUtils
            */
           AlignedCodonFrame dnaToCdsMapping = new AlignedCodonFrame();
           MapList dnaToCdsMap = new MapList(mapList.getFromRanges(),
-                  cdsRange, 1,
-                  1);
+                  cdsRange, 1, 1);
           dnaToCdsMapping.addMap(dnaSeq.getDatasetSequence(), cdsSeqDss,
                   dnaToCdsMap);
           if (!mappings.contains(dnaToCdsMapping))
@@ -1786,7 +1785,7 @@ public class AlignmentUtils
           /*
            * transfer any features on dna that overlap the CDS
            */
-          transferFeatures(dnaSeq, cdsSeq, cdsToProteinMap, null,
+          transferFeatures(dnaSeq, cdsSeq, dnaToCdsMap, null,
                   SequenceOntologyI.CDS);
         }
       }