JAL-654 remove any annotation rows for chain specific query
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 6 Oct 2014 11:39:13 +0000 (12:39 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 6 Oct 2014 11:39:13 +0000 (12:39 +0100)
src/jalview/ws/dbsources/Pdb.java

index a352de6..f222aaa 100644 (file)
@@ -21,6 +21,7 @@
 package jalview.ws.dbsources;
 
 import jalview.datamodel.Alignment;
+import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.DBRefEntry;
 import jalview.datamodel.DBRefSource;
 import jalview.datamodel.PDBEntry;
@@ -193,6 +194,13 @@ public class Pdb extends EbiFileRetrievedProxy implements DbSourceProxy
         for (SequenceI pdbcs : toremove)
         {
           pdbfile.deleteSequence(pdbcs);
+          if (pdbcs.getAnnotation()!=null)
+          {
+            for (AlignmentAnnotation aa: pdbcs.getAnnotation())
+            {
+              pdbfile.deleteAnnotation(aa);
+            }
+          }
         }
       }