# SyntenyFilterMixin

Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the [developer guide](https://jbrowse.org/jb2/docs/developer_guide/) for concepts. Built into JBrowse core. [View source](https://github.com/GMOD/jbrowse-components/blob/main/packages/synteny-core/src/SyntenyFilterMixin.ts).

The `filter` every view drawing synteny tracks applies to the alignments:
the linear synteny view's ribbons, the dotplot's segments and the circular
view's ribbons.

## Properties

| Member | Description |
| --- | --- |
| **filter**<br><code>filter: types.stripDefault(types.array(fieldPredicateConfigSchema), [])</code> | The alignments drawn, a list of [FieldPredicate](https://jbrowse.org/jb2/docs/config/fieldpredicate) entries an alignment must all pass. A field is any field `color` takes, or `length`, the alignment's bp on its own axis: `[{ field: 'length', gte: 10000 }]` clears a whole-genome hairball. A filter edit recolors and refetches nothing. |

## Getters

| Member | Description |
| --- | --- |
| **predicates**<br><code>FieldPredicate[]</code> | The `filter` list as the predicate compiler reads it. |
| **minLength**<br><code>number</code> | The lower bound on `length`, 0 for none: the cut the GPU applies as a uniform, which keeps a length slider drag off the color pass. |

## Methods

| Member | Description |
| --- | --- |
| **lowerBound**<br><code>(field: string) =&gt; number</code> | The lower bound the filter puts on `field`, 0 for none. |

## Actions

| Member | Description |
| --- | --- |
| **setFilter**<br><code>(predicates: FieldPredicate[]) =&gt; void</code> |  |
| **setLowerBound**<br><code>(field: string, value: number) =&gt; void</code> | The slider on one field: `field` at least `value`, or no lower bound at 0. |

