X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdbsources%2FPdb.java;fp=src%2Fjalview%2Fws%2Fdbsources%2FPdb.java;h=f222aaabcb338c076e1b1cae3daf814540e82344;hb=911c6630cec6fa5253821a7e18a13d0d4df3627c;hp=a352de689699f65b411a4bf071476324a683584e;hpb=a0d3647da9f02df7c5a13f59e5db552e7567974f;p=jalview.git diff --git a/src/jalview/ws/dbsources/Pdb.java b/src/jalview/ws/dbsources/Pdb.java index a352de6..f222aaa 100644 --- a/src/jalview/ws/dbsources/Pdb.java +++ b/src/jalview/ws/dbsources/Pdb.java @@ -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); + } + } } }