for (SequenceFeature sf : overlaps)
{
Color featureColour = fc.getColor(sf);
+ if (featureColour == null)
+ {
+ // score feature outwith threshold for colouring
+ continue;
+ }
/*
* if feature starts/ends outside the visible range,
int featureEndCol = sf.begin == sf.end ? featureStartCol : seq
.findIndex(visibleEnd);
- if (sf.isContactFeature())
+ // Color featureColour = getColour(sequenceFeature);
+
+ boolean isContactFeature = sf.isContactFeature();
+
+ if (isContactFeature)
{
boolean drawn = renderFeature(g, seq, featureStartCol - 1,
featureStartCol - 1, featureColour, start, end, y1,
drawnColour = featureColour;
}
}
- else if (showFeature(sf))
+ else
{
/*
* showing feature score by height of colour
{
if (!featureGroupNotShown(sequenceFeature))
{
- return getColour(sequenceFeature);
+ Color col = getColour(sequenceFeature);
+ if (col != null)
+ {
+ return col;
+ }
}
}
}