ValueFilter
ValueFilter
Bases: Filter
ValueFilter filters events in an PhenexTable based on a specified value range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
min_value
|
Optional[Union[Value, GreaterThan, GreaterThanOrEqualTo]]
|
Minimum value required to pass through the filter. |
None
|
max_value
|
Optional[Union[Value, LessThan, LessThanOrEqualTo]]
|
Maximum value required to pass through the filter. |
None
|
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. |
'VALUE'
|
Methods:
Name | Description |
---|---|
filter |
Filters the given PhenexTable based on the range of values specified by the min_value and max_value 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. |