From: Jim Procter Date: Tue, 21 Oct 2014 08:37:24 +0000 (+0100) Subject: JAL-674 remove any spurious PDBEntrys generated by Jmol/RNAView parsing processes X-Git-Tag: Jalview_2_9~169^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cbed78c74fd2b24bcca79c1d3d8c62ec19c5276f;p=jalview.git JAL-674 remove any spurious PDBEntrys generated by Jmol/RNAView parsing processes --- diff --git a/src/MCview/PDBfile.java b/src/MCview/PDBfile.java index 019aba9..a99f172 100755 --- a/src/MCview/PDBfile.java +++ b/src/MCview/PDBfile.java @@ -327,6 +327,17 @@ public class PDBfile extends jalview.io.AlignFile {}).invoke(jmf)); cl.getMethod("addAnnotations", new Class[] { Alignment.class }).invoke(jmf, al); + for (SequenceI sq : al.getSequences()) + { + if (sq.getDatasetSequence() != null) + { + sq.getDatasetSequence().getPDBId().clear(); + } + else + { + sq.getPDBId().clear(); + } + } AlignSeq.replaceMatchingSeqsWith(seqs, annotations, prot, al, AlignSeq.PEP, false); } } catch (ClassNotFoundException q) @@ -355,6 +366,17 @@ public class PDBfile extends jalview.io.AlignFile new Class[] { FileParse.class }).invoke(annotate3d, new Object[] { new FileParse(getDataName(), type) })); + for (SequenceI sq : al.getSequences()) + { + if (sq.getDatasetSequence() != null) + { + sq.getDatasetSequence().getPDBId().clear(); + } + else + { + sq.getPDBId().clear(); + } + } AlignSeq.replaceMatchingSeqsWith(seqs, annotations, rna, al, AlignSeq.DNA, false); } } catch (ClassNotFoundException x)