From: Jim Procter Date: Mon, 8 Nov 2021 18:18:28 +0000 (+0000) Subject: JAL-3855 try harder to ignore DNA/RNA only structures when deciding whether to downlo... X-Git-Tag: Release_2_11_2_0~22^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4cb019313997567611211b0885faa3f01c7e5ecc;p=jalview.git JAL-3855 try harder to ignore DNA/RNA only structures when deciding whether to download from SIFTS --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 1fcbbf5..ad57831 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -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) {