From 4cb019313997567611211b0885faa3f01c7e5ecc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 8 Nov 2021 18:18:28 +0000 Subject: [PATCH] JAL-3855 try harder to ignore DNA/RNA only structures when deciding whether to download from SIFTS --- src/jalview/structure/StructureSelectionManager.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- 1.7.10.2