Condition | Decoration | |||||||
---|---|---|---|---|---|---|---|---|
| ⇒ |
|
= | Equals: the rule matches if the value of the region property is the same as the specified value or within the specified numeric range |
<> | Not equals: the rule matches if the value of the region property is not the same as the specified value or is outside of the specified numeric range |
> , >= , < , <= | Inequality: the rule matches if the numeric value of the region property is respectively greater than, greater than or equal to, less than or less than or equal to the specified value. If the target value is a numeric range, the rule matches if the numeric value of the region property is outside the range (similar to <>). For textual properties, the rule matches if its value is not the same as the specified value (similar to <>). |
matches | For textual properties, the rule matches if the property value matches the specified regular expression value. For numeric ranges, the rule matches if the property value is within the range. For other numeric values the rule never matches. |
not matches | For textual properties, the rule matches if the property value does not match the specified regular expression value. For numeric ranges, the rule matches if the property value is outside the range. For other numeric values the rule never matches. |
Specific value | A single textual or numeric value used for comparison, such as e.g. "SINE" or "13.42" |
Numeric range | Numeric ranges are specified as two numbers separated by a comma and enclosed in brackets.
The first number denotes the smallest value in the range and the second denotes the largest.
A square opening or closing bracket means that the value next to it should be included in the range whereas a round bracket (parenthesis) means the value is excluded. For example: [ 0, 10 ] : matches values equal to or greater than zero and equal to or less than ten (i.e. the range includes both zero and ten): 0 <= x <= 10 [ 0, 10 ) : matches values equal to or greater than zero and less than ten (i.e. the range includes zero but not ten): 0 <= x < 10 ( 0, 10 ] : matches values greater than zero and equal to or less than ten (i.e. the range includes ten but not zero): 0 < x <= 10 ( 0, 10 ) : matches values greater than zero and less than ten (i.e. the range does not include zero or ten): 0 < x < 10 |
Regular expression | Target values can be regular expressions when comparing textual properties using the "(not) matches" comparator function.
Note that the text property must match the full regular expression, so if you want to check if e.g. a region property contains the word "xxx" as a substring, you must define the regular expression accordingly: ".*xxx.*" Some commonly used regular expression rules include:
Examples: The expression "cat|dogs?" will match either cat, dog or dogs. The expression "b[aie]ts" will match either bats, bits or bets. The expression "Go{2,5}gle" will match either Google, Gooogle, Goooogle or Gooooogle. The expression "M.\d+" will match any word beginning with "M" followed by any character and then a succession of digits. The expression "Hip(hop)+opotamus" will match words beginning with "Hip", followed by "hop" repeated any number of times and then ending with "opotamus". |
Specific color | The region, border or overlay will be draw in the specific color selected |
Transparent | The region itself (and its border) is drawn in a fully transparent color which renders it, in effect, invisible. The difference between using a transparent color rather than just unchecking the "Show" box is that overlays will still be drawn on top of the region. |
Gray Out | The region and its border is drawn in a light gray color with white label color and grayed out motif logo. The difference between selecting "gray out" and a regular light gray color is that with the latter option, the region label and motif logos will still be drawn in regular colors. |
Original | The region or overlay will be drawn in the original color of the region, as determined by its type. If applied to a border, it will either be drawn in a black color, a darker shade of the current region color or not drawn at all depending on the visualization settings for the track. |
Gradients | Gradients are special color schemes that can only be used with numeric properties.
They assume that the property values have been normalized to the range [0,1] and will select the particular color to use depending on the property value.
|
Region | The color and visibility settings of the rule will be applied to the region itself |
Border | The color and visibility settings of the rule will be applied to the region's border |
"Text" | Draws a text box on top of the region containing the exact text within the quotes. The text is drawn in the selected color. |
{property} | Draws a text box on top of the region containing the value of the specified property. The text is drawn in the selected color. If the property is unknown, the text "<*>" will be drawn instead. |
[property] | Draws a "gauge" on top of the region reflecting the value of a numeric property. The gauge is in the form of a box which is filled with color from the bottom up for greater values. The values of the property must have been normalized to the range [0,1]. If the property is unknown or not a numeric value, it will be drawn similar to a value of zero (empty gauge). |
Square Circle Diamond Star Check Cross Plus Minus Smile Frown Triangle Arrow |
Draws a small icon on top of the region Arrows and triangles can be drawn in four directions: Up, Down, Left and Right. Squares and circles come in both normal and small sizes. |
Property | Comparator | Value | Show | Color | Decorator |
strand | > | 0 | ✔ | RED | Small Circle |
strand | < | 0 | ✔ | GREEN | Small Circle |
Property | Comparator | Value | Show | Color | Decorator |
score | >= | 0 | ✔ | Rainbow | Circle |
Property | Comparator | Value | Show | Color | Decorator |
= | 0 | ✔ | Transparent | Region | |
= | 0 | ✔ | Original | Triangle Up |
Triangle Up | |
Triangle Up * |