From 095d07c7765f6925736c41896b9bdff8df369f4e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 6 Oct 2014 12:39:13 +0100 Subject: [PATCH] JAL-654 remove any annotation rows for chain specific query --- src/jalview/ws/dbsources/Pdb.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + } + } } } -- 1.7.10.2