JAL-3855 try harder to ignore DNA/RNA only structures when deciding whether to downlo...
[jalview.git] / src / jalview / structure / StructureSelectionManager.java
index 1fcbbf5..ad57831 100644 (file)
@@ -413,7 +413,14 @@ public class StructureSelectionManager
       // TODO: JAL-3868 need to know if structure is actually from 
       // PDB (has valid PDB ID and has provenance suggesting it 
       // actually came from PDB)
-      isMapUsingSIFTs = isMapUsingSIFTs && pdb.isPPDBIdAvailable() && !pdb.getId().startsWith("AF-");
+      boolean isProtein = false;
+      for (SequenceI s:sequenceArray) {
+        if (s.isProtein()) {
+          isProtein = true;
+          break;
+        }
+      }
+      isMapUsingSIFTs = isMapUsingSIFTs && pdb.isPPDBIdAvailable() && !pdb.getId().startsWith("AF-") && isProtein;
 
     } catch (Exception ex)
     {