- outputFeatureFilters(out, visible, featureFilters);
-
- /*
- * sort groups alphabetically, and ensure that features with a
- * null or empty group are output after those in named groups
- */
- List<String> sortedGroups = new ArrayList<>(visibleFeatureGroups);
- sortedGroups.remove(null);
- sortedGroups.remove("");
- Collections.sort(sortedGroups);
- sortedGroups.add(null);
- sortedGroups.add("");
-
- boolean foundSome = false;
-
- /*
- * first output any non-positional features
- */
- if (includeNonPositional)
- {
- for (int i = 0; i < sequences.length; i++)
- {
- String sequenceName = sequences[i].getName();
- for (SequenceFeature feature : sequences[i].getFeatures()
- .getNonPositionalFeatures())
- {
- foundSome = true;
- out.append(formatJalviewFeature(sequenceName, feature));
- }
- }
- }