Filtering tables

Filters can be set using the functionalities located at the top of any table in the Workbench: a Filter to Selection button, a simple filter mode and an advanced filter mode. A counter in the upper left corner tells you the number of rows that passed the filter.

Filter to selection

A button called Filter to selection allows for reducing the size of a table to a few pre-selected rows. The option Filter to selected rows will keep in the table view only the rows that are selected, whether they were selected manually, or by using the function "Select in other views" available for some tables (for example when the table is associated with a graphical view such as a Venn diagram, or a volcano plot). Restore the complete table by choosing the option Clear selection filter.

Simple filter

The simple mode is the default and is applied simply by typing text or numbers (see an example in figure 3.27).

Image orf_table_simple_filter
Figure 3.27: Typing "neg" in the filter in simple mode.

Typing "neg" in the filter will only show the rows where "neg" is part of the text in any of the columns. The text does not have to be in the beginning, thus "ega" would give the same result. This simple filter works fine for fast, textual and non-complicated filtering and searching. Filtering is automatic once you start typing, unless you are working with a table with more than 10000 rows, in which case you have to actually click the Filter button for the filtering to take effect.

The following characters have special meanings when used in simple filtering of tables in the workbench:

These characters cannot be used in the Advanced filter described below, because the Advanced Filter functionality makes it easy to include/exclude specific terms or limit searches to a particular column by providing the appropriate fields.

Also not that typing cat dog in the Simple filter field will return all rows with cat and dog in them, in any order. But the same search term put in the Advanced filter field (visible once you click on the little arrow to the right of the simple filter field), will only return rows with the exact phrase "cat dog".

Advanced filter

In the advanced mode, you can make use of numerical information or make more complex filter combinations using more than one criterion in the filter. Click the Advanced filter (Image annotations_popup) button to open the first criterion of the advanced filter. Criteria can be added or removed by clicking the Add (Image add_new_parameter_16_n_p) or Remove (Image close_x_red_16_n_p) buttons. At the top, you can choose whether all the criteria should be fulfilled (Match all), or if just one of the needs to be fulfilled (Match any).

For each filter criterion, you first have to select which column it should apply to.

Next, you choose an operator. For numbers, you can choose between:

Note, that the number of digits displayed is a formatting option which can be set in the View Preferences. The true number may well be (slightly) larger. This behaviour can lead to problems when filtering on exact matches using the = (equal to) operator on numbers. Instead, users are advised to use two filters of inequalities (< (smaller than) and > (greater than)) delimiting a (small) interval around the target value.

For text-based columns, you can choose between:

Once you have chosen an operator, you can enter the text or numerical value to use.

The advanced filter criterion mentioned above are also available from a menu that appears by right-clicking on a value in a table: just specify the operator, and the column and value where you right-clicked for the menu to appear will define the two other fields of the advanced filter.

If you wish to reset the filter, simply remove (Image close_x_red_16_n_p) all the search criteria. Note that the last one will not disappear - it will be reset and allow you to start over.

Figure 3.28 shows an example of an advanced filter which displays the open reading frames larger than 400 that are placed on the negative strand.

Image orf_table_advanced_filter
Figure 3.28: The advanced filter showing open reading frames larger than 400 that are placed on the negative strand.