From: gmungoc Date: Thu, 18 May 2017 13:57:37 +0000 (+0100) Subject: JAL-2490 retrieve visible features only X-Git-Tag: Release_2_10_3b1~266 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d5b7f6f7d5774f2a2c96351e36a59c2a5f595da6;p=jalview.git JAL-2490 retrieve visible features only --- diff --git a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java index 62aaa1c..e9ce49b 100644 --- a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java +++ b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java @@ -411,12 +411,8 @@ public class ChimeraCommands StructureMapping mapping, SequenceI seq, Map> theMap, int modelNumber) { - SequenceFeature[] sfs = seq.getSequenceFeatures(); - if (sfs == null) - { - return; - } - + List sfs = seq.getFeatures().getPositionalFeatures( + visibleFeatures.toArray(new String[visibleFeatures.size()])); for (SequenceFeature sf : sfs) { String type = sf.getType(); @@ -427,7 +423,7 @@ public class ChimeraCommands */ boolean isFromViewer = JalviewChimeraBinding.CHIMERA_FEATURE_GROUP .equals(sf.getFeatureGroup()); - if (isFromViewer || !visibleFeatures.contains(type)) + if (isFromViewer) { continue; }