From c4fe688726e88a223c483736e10009b8ac7c6545 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 14 Nov 2016 12:30:17 +0000 Subject: [PATCH] JAL-2295 don't copy 'Chimera' features back to Chimera --- src/jalview/ext/rbvi/chimera/ChimeraCommands.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java index 7020f90..533b441 100644 --- a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java +++ b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java @@ -400,7 +400,15 @@ public class ChimeraCommands for (SequenceFeature sf : sfs) { String type = sf.getType(); - if (!visibleFeatures.contains(type) || suppressFeature(type)) + + /* + * Only copy visible features, don't copy any which originated + * from Chimera, and suppress uninteresting ones (e.g. RESNUM) + */ + boolean isFromViewer = JalviewChimeraBinding.CHIMERA_FEATURE_GROUP + .equals(sf.getFeatureGroup()); + if (isFromViewer || !visibleFeatures.contains(type) + || suppressFeature(type)) { continue; } -- 1.7.10.2