column, null);
}
if(_aa.label.startsWith(Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL)) {
- colour = AlignmentUtils.getSecondaryStructureAnnotationColour(dc[0]);
+ colour = profcolour.findSSColour(dc[0], column);
}
else
{
*/
package jalview.renderer;
+import jalview.analysis.AlignmentUtils;
import jalview.analysis.Conservation;
import jalview.api.ViewStyleI;
import jalview.datamodel.AnnotatedCollectionI;
}
@Override
- public Color findSSColour(char symbol, int position, SequenceI seq, String source)
+ public Color findSSColour(char symbol, int position)
{
if (colourScheme == null)
{
return Color.white; // Colour is 'None'
}
- /*
- * get 'base' colour
- */
- ProfileI profile = ssConsensusProfileMap.get(source) == null ? null : ssConsensusProfileMap.get(source).get(position);
- String modalSS = profile == null ? null
- : profile.getModalSS();
- float pid = profile == null ? 0f
- : profile.getSSPercentageIdentity(ignoreGaps);
- Color colour = colourScheme.findColour(symbol, position, seq,
- modalSS, pid);
-
+ Color colour = AlignmentUtils.getSecondaryStructureAnnotationColour(symbol);
+
/*
* apply PID threshold and consensus fading if in force
*/
public abstract void setColourScheme(ColourSchemeI cs);
- Color findSSColour(char symbol, int position, SequenceI seq,
- String source);
+ Color findSSColour(char symbol, int position);
int getConsensusSecondaryStructureThreshold();