Details
-
Type: Bug
-
Status: Closed
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 2.10.1, 2.10.2, 2.10.3
-
Fix Version/s: 2.10.3b1
-
Component/s: Properties and Preferences
-
Labels:
Description
FASTA files output by Jalview include sequence ID/start-end limits regardless of setting in preferences.
The refactoring of the IO system introduced a generic suffix preference getter based on the Format class instance's name, unfortunately, the Capitalised format name was not being uppercased before the preference was being retrieved, breaking user preferences.
public boolean getCacheSuffixDefault(FileFormatI format)
{
return Cache.getDefault(format.getName() + "_JVSUFFIX", true);
}
public String formatSequences(FileFormatI format, AlignmentI alignment,
String[] omitHidden, int[] exportRange, HiddenColumns hidden)
{
return formatSequences(format, alignment, omitHidden, exportRange,
getCacheSuffixDefault(format), hidden, null);
}
The refactoring of the IO system introduced a generic suffix preference getter based on the Format class instance's name, unfortunately, the Capitalised format name was not being uppercased before the preference was being retrieved, breaking user preferences.
public boolean getCacheSuffixDefault(FileFormatI format)
{
return Cache.getDefault(format.getName() + "_JVSUFFIX", true);
}
public String formatSequences(FileFormatI format, AlignmentI alignment,
String[] omitHidden, int[] exportRange, HiddenColumns hidden)
{
return formatSequences(format, alignment, omitHidden, exportRange,
getCacheSuffixDefault(format), hidden, null);
}