JAL-1926 JAL-2106 fix PDB primary DBRef semantics: must have a matching PDBEntry...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 31 Aug 2016 16:13:22 +0000 (17:13 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 31 Aug 2016 16:13:22 +0000 (17:13 +0100)
src/jalview/datamodel/Sequence.java

index 2bbc278..0018ea1 100755 (executable)
@@ -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);
           }