From ffedfec94d6a9f8ec8ba0775c2b4259368f6f149 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 31 Aug 2016 17:13:22 +0100 Subject: [PATCH] =?utf8?q?JAL-1926=20JAL-2106=20fix=20PDB=20primary=20DBRef=20?= =?utf8?q?semantics:=20must=20have=20a=20matching=20PDBEntry=20with=20non-nu?= =?utf8?q?ll=20File.=20type=20field=20doesn=E2=80=99t=20matter?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/datamodel/Sequence.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 2bbc278..0018ea1 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -1449,13 +1449,12 @@ public class Sequence extends ASequence implements SequenceI { // PDB dbrefs imply there should be a PDBEntry associated // TODO: tighten PDB dbrefs - // formally imply Jalview has actually downlaoded and + // formally imply Jalview has actually downloaded and // parsed the pdb file. That means there should be a cached file // handle on the PDBEntry, and a real mapping between sequence and // extracted sequence from PDB file PDBEntry pdbentry = getPDBEntry(ref.getAccessionId()); - if (pdbentry != null && pdbentry.getType() != null - && pdbentry.getType().equalsIgnoreCase("PDB")) + if (pdbentry != null && pdbentry.getFile() != null) { primaries.add(ref); } -- 1.7.10.2