+ /*
+ * get all positional feature groups
+ */
+ Set<String> featureGroups = new HashSet<>(fr.getFeatureGroups());
+
+ /*
+ * add non-positional feature groups, just in case any are not
+ * also positional feature groups
+ */
+ for (SequenceI seq : sequences)
+ {
+ Set<String> nonPosGroups = seq.getFeatures().getFeatureGroups(false);
+ featureGroups.addAll(nonPosGroups);
+ }