Corrected the labels as secondary structure conservation increment.
Added a check for secondary structure in Colour by Above identity
threshold feature.
label.apply_colour_to_all_groups = Apply Colour To All Groups
label.modify_identity_threshold = Modify Identity Threshold...
label.modify_conservation_threshold = Modify Conservation Threshold...
-label.modify_secondary_structure_conservation_threshold = Modify Secondary Structure Conservation Threshold...
+label.modify_secondary_structure_conservation_threshold = Modify Secondary Structure Conservation Increment...
label.input_from_textbox = Input from textbox
label.centre_column_labels = Centre column labels
label.automatic_scrolling = Automatic Scrolling
label.cut_sequences = Cut Sequences
label.conservation_colour_increment = Conservation Colour Increment ({0})
label.percentage_identity_threshold = Percentage Identity Threshold ({0})
-label.secondary_structure_conservation_threshold = Secondary Structure Conservation Threshold ({0})
+label.secondary_structure_conservation_threshold = Secondary Structure Conservation Increment ({0})
label.error_unsupported_owwner_user_colour_scheme = Unsupported owner for User Colour scheme dialog
label.save_alignment_to_file = Save Alignment to file
label.save_features_to_file = Save Features to File
scheme.setConservationApplied(true);
scheme.setConservationInc(percent);
}
- else
- {
- scheme.setThreshold(percent, ap.av.isIgnoreGapsConsensus());
- }
- if(forConsensusSecondaryStructure)
+ else if(forConsensusSecondaryStructure)
{
scheme.setConsensusSecondaryStructureColouring(true);
scheme.setConsensusSecondaryStructureThreshold(percent);
}
+ else
+ {
+ scheme.setThreshold(percent, ap.av.isIgnoreGapsConsensus());
+
+ }
}
/**
*/
if (!Comparison.isGap(symbol))
{
- colour = adjustColour(symbol, position, colour);
+ colour = adjustColour(symbol, position, colour, false);
}
return colour;
return Color.white; // Colour is 'None'
}
- Color colour = AlignmentUtils.getSecondaryStructureAnnotationColour(symbol);
-
+ Color colour = AlignmentUtils.getSecondaryStructureAnnotationColour(symbol);
+
/*
* apply PID threshold and consensus fading if in force
*/
if (!Comparison.isGap(symbol))
{
- colour = adjustColour(symbol, position, colour);
+ colour = adjustColour(symbol, position, colour, true);
}
return colour;
* @param colour
* @return
*/
- protected Color adjustColour(char symbol, int column, Color colour)
+ protected Color adjustColour(char symbol, int column, Color colour, boolean isSecondaryStructure)
{
- if (!aboveThreshold(symbol, column))
+ if (!isSecondaryStructure && !aboveThreshold(symbol, column))
{
colour = Color.white;
}