JAL-3855 try harder to ignore DNA/RNA only structures when deciding whether to downlo...
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 8 Nov 2021 18:18:28 +0000 (18:18 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 8 Nov 2021 18:18:28 +0000 (18:18 +0000)
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)
     {