From: Jim Procter Date: Mon, 6 Oct 2014 11:39:13 +0000 (+0100) Subject: JAL-654 remove any annotation rows for chain specific query X-Git-Tag: Jalview_2_9~174^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=095d07c7765f6925736c41896b9bdff8df369f4e;p=jalview.git JAL-654 remove any annotation rows for chain specific query --- 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); + } + } } }