Skip to content

Class: FilterTransform

Select objects from a data stream to keep based on a filter expression. If the value of the filter expression

is a single element, e.g. 'blobs_image', then the expression is equivalent to 'datum.value == blobs_image'.

These are the first transforms in the array of transforms usually when visualizing SpatialData elements.

URI: vega_scverse:FilterTransform

classDiagram class FilterTransform click FilterTransform href "../FilterTransform" Transform <|-- FilterTransform click Transform href "../Transform" FilterTransform : expr FilterTransform : type FilterTransform --> "1" TransformTypeEnum : type click TransformTypeEnum href "../TransformTypeEnum"

Inheritance

Slots

Name Cardinality and Range Description Inheritance
expr 1
String
Either the name of the element or coordinate system to filter / select direct
type 1
TransformTypeEnum
The type of filter transform Transform

Usages

used by used in type used
BaseTableObject transform range FilterTransform
SpatialDataElementObject transform any_of[range] FilterTransform

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/scverse/vega-scverse/specification

Mappings

Mapping Type Mapped Value
self vega_scverse:FilterTransform
native vega_scverse:FilterTransform

LinkML Source

Direct

name: FilterTransform
description: 'Select objects from a data stream to keep based on a filter expression.
  If the value of the filter expression

  is a single element, e.g. ''blobs_image'', then the expression is equivalent to
  ''datum.value == blobs_image''.

  These are the first transforms in the array of transforms usually when visualizing
  SpatialData elements.'
from_schema: https://w3id.org/scverse/vega-scverse/specification
is_a: Transform
slot_usage:
  type:
    name: type
    description: 'The type of filter transform. ''filter_element'' will filter / select
      a particular element from a data source,

      ''filter_cs'' will select the coordinate system in which the element should
      be visualized and ''filter_scale''

      will select the scale of a multiscale raster data element.'
    equals_string_in:
    - filter_element
    - filter_cs
    - filter_scale
attributes:
  expr:
    name: expr
    description: Either the name of the element or coordinate system to filter / select.
    from_schema: https://w3id.org/scverse/vega-scverse/data
    rank: 1000
    domain_of:
    - FilterTransform
    - FilterChannelTransform
    - NormalizationFormulaTransform
    range: string
    required: true

Induced

name: FilterTransform
description: 'Select objects from a data stream to keep based on a filter expression.
  If the value of the filter expression

  is a single element, e.g. ''blobs_image'', then the expression is equivalent to
  ''datum.value == blobs_image''.

  These are the first transforms in the array of transforms usually when visualizing
  SpatialData elements.'
from_schema: https://w3id.org/scverse/vega-scverse/specification
is_a: Transform
slot_usage:
  type:
    name: type
    description: 'The type of filter transform. ''filter_element'' will filter / select
      a particular element from a data source,

      ''filter_cs'' will select the coordinate system in which the element should
      be visualized and ''filter_scale''

      will select the scale of a multiscale raster data element.'
    equals_string_in:
    - filter_element
    - filter_cs
    - filter_scale
attributes:
  expr:
    name: expr
    description: Either the name of the element or coordinate system to filter / select.
    from_schema: https://w3id.org/scverse/vega-scverse/data
    rank: 1000
    alias: expr
    owner: FilterTransform
    domain_of:
    - FilterTransform
    - FilterChannelTransform
    - NormalizationFormulaTransform
    range: string
    required: true
  type:
    name: type
    description: 'The type of filter transform. ''filter_element'' will filter / select
      a particular element from a data source,

      ''filter_cs'' will select the coordinate system in which the element should
      be visualized and ''filter_scale''

      will select the scale of a multiscale raster data element.'
    from_schema: https://w3id.org/scverse/vega-scverse/data
    rank: 1000
    alias: type
    owner: FilterTransform
    domain_of:
    - Transform
    - BaseFormat
    - Scale
    - Legend
    - Mark
    - TextMark
    - GroupMark
    range: TransformTypeEnum
    required: true
    equals_string_in:
    - filter_element
    - filter_cs
    - filter_scale