From 729023f4356ec3b3a230eb5d96b827505b167700 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 24 Mar 2016 10:50:48 +0000 Subject: [PATCH] JAL-2032 structure follow mouseover in a copy of a mapped sequence --- src/jalview/structure/StructureSelectionManager.java | 5 ++++- src/jalview/structures/models/AAStructureBindingModel.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 6bb04ab..28fc3d1 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -880,7 +880,10 @@ public class StructureSelectionManager List atoms = new ArrayList(); for (StructureMapping sm : mappings) { - if (sm.sequence == seq || sm.sequence == seq.getDatasetSequence()) + if (sm.sequence == seq + || sm.sequence == seq.getDatasetSequence() + || (sm.sequence.getDatasetSequence() != null && sm.sequence + .getDatasetSequence() == seq.getDatasetSequence())) { for (int index : positions) { diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index 2ed59ae..42fbfa9 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -633,7 +633,10 @@ public abstract class AAStructureBindingModel extends { for (SequenceI s : seqs) { - if (s == seq) + if (s == seq + || (s.getDatasetSequence() != null && s + .getDatasetSequence() == seq + .getDatasetSequence())) { return true; } -- 1.7.10.2