Filter on Custom Criteria

Filter on Custom Criteria takes as input an element that contains items, for which data can be displayed as rows in a table view (Image table_16_n_p), and outputs the subset of those items that match a set of filter criteria.

To run the tool, go to:

        Tools | Utility Tools (Image utilities_closed_16_n_p) | Filtering (Image filter_folder_closed_16_n_p) | Filter on Custom Criteria (Image filter_on_custom_feature_16_n_p)

To see a list of element types that can be used as input, click on the (Image info_guide_16_h_p) icon in the top right corner of the input selection wizard (figure 37.10).

Image filter_on_custom_criteria_inputs-genomics
Figure 37.10: Clicking on the info icon at the top right corner of the input selection wizard opens a window showing a list of element types that can be used as inputs, as well as whether the inputs can be annotated.

After selecting the input element, the criteria to filter on are defined. Each criterion consists of an attribute, an operator, and a value (figure 37.11).

Image filter_on_custom_criteria
Figure 37.11: Filter criteria to extract the mouse sequences containing at least 50 nucleotides. The drop down menu shows some of the attributes populated using the Load Attributes button.

To make defining criteria easier, the Load Attributes button can be used to populate a drop down list of the attributes (typically, the column names in the table view (Image table_16_n_p)) found in the element selected in the Template element field. By default, the tool's input is preselected. Use the browse (Image browse) button (figure 37.11) to select a different element. We recommend selecting as template a small element containing all necessary attributes, as loading attributes from large elements can take a long time.

If a template element is not used for populating a drop down list, attributes can be entered by typing directly. Criteria that reference attributes not present in the input element are considered not satisfied, except when the operator is "=" and the value is blank.

Defining filter criteria and building more complex filter sets works the same as in advanced table filters:

Refer to the advanced table filters for more details.

Apply filter criteria

The configured filter criteria can be applied in two ways:

Annotate is similar to Add match status in advanced table filters: both indicate whether items meet the filter criteria. With Annotate, this information is stored as a "Filter" attribute in the output, while Add match status creates a temporary "Match status" column in the table view. The content of "Filter" is equivalent to "Match status", but without green/red color coding. Note that not all supported input element types can be annotated (figure 37.10).

When running Filter on Custom Criteria consecutively with Annotate, the annotations are updated consistently:

Report

Filter on Custom Criteria can optionally produce a report containing the following sections (figure 37.12):

Image filter_on_custom_criteria_report
Figure 37.12: An example report produced by Filter on Custom Criteria.