ValueFilter
ValueFilter
Bases: Filter
ValueFilter filters events in an PhenexTable based on a specified value range.
Attributes:
Name | Type | Description |
---|---|---|
min |
Optional[Value]
|
Minimum value required to pass through the filter. |
max |
Optional[Value]
|
Maximum value required to pass through the filter. |
column_name |
Optional[str]
|
The column name to which the value range should be applied. Default to VALUE, which is the default name of the value column in PhenotypeTable's. |
Methods:
Name | Description |
---|---|
filter |
Filters the given PhenexTable based on the range of values specified by the min and max attributes. See Filter. |
Source code in phenex/filters/value_filter.py
filter(table)
Filters the given table according to the rules of the Filter.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
table
|
PhenexTable
|
The table to be filtered. |
required |
Returns:
Name | Type | Description |
---|---|---|
PhenexTable |
PhenexTable
|
The filtered table. The returned table has the exact same schema as the input table but has rows removed. |