JAL-674 note about broken .transfer method (expect this to disappear in future!)
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 12 Nov 2014 12:37:12 +0000 (12:37 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 12 Nov 2014 12:37:12 +0000 (12:37 +0000)
src/jalview/structure/StructureMapping.java

index cbc2c00..e0033e1 100644 (file)
@@ -133,7 +133,10 @@ public class StructureMapping
     {
       ds = ds.getDatasetSequence();
     }
-    ala_copy.remap(ds, mapping, 0, -1, 1);
+    // need to relocate annotation from pdb coordinates to local sequence
+    // -1,-1 doesn't look at pdbresnum but fails to remap sequence positions...
+
+    ala_copy.remap(ds, mapping, -1, -1, 0);
     ds.addAlignmentAnnotation(ala_copy);
     if (ds != sequence)
     {