JAL-2164 add transferred annotation to sequence
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 5 Aug 2016 10:22:14 +0000 (11:22 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 5 Aug 2016 10:22:14 +0000 (11:22 +0100)
src/MCview/PDBChain.java

index 885521b..cf794b6 100755 (executable)
@@ -29,8 +29,8 @@ import jalview.datamodel.SequenceFeature;
 import jalview.datamodel.SequenceI;
 import jalview.schemes.ColourSchemeI;
 import jalview.schemes.ResidueProperties;
-import jalview.structure.StructureMapping;
 import jalview.structure.StructureImportSettings;
+import jalview.structure.StructureMapping;
 
 import java.awt.Color;
 import java.util.List;
@@ -582,12 +582,13 @@ public class PDBChain
         {
           for (AlignmentAnnotation ana : sequence.getAnnotation())
           {
-            List<AlignmentAnnotation> transfer = sq
+            List<AlignmentAnnotation> transfer = dsq
                     .getAlignmentAnnotations(ana.getCalcId(), ana.label);
             if (transfer == null || transfer.size() == 0)
             {
               ana = new AlignmentAnnotation(ana);
               ana.liftOver(dsq, sqmpping);
+              dsq.addAlignmentAnnotation(ana);
               // mapping.transfer(ana);
             }
             else