GIQL Operators
GIQL extends SQL with operators specifically designed for genomic interval queries. These operators enable powerful spatial reasoning over genomic coordinates without requiring complex SQL expressions.
Operators are organized by functionality:
Spatial Relationship Operators
Test positional relationships between genomic ranges.
Operator |
Description |
Example |
|---|---|---|
Returns true when ranges overlap by at least one base pair |
|
|
Returns true when one range fully contains another |
|
|
Returns true when one range is fully within another |
|
See Spatial Relationship Operators for detailed documentation.
Distance and Proximity Operators
Calculate distances and find nearest features.
Operator |
Description |
Example |
|---|---|---|
Calculate genomic distance between two intervals |
|
|
Find k-nearest genomic features |
|
See Distance and Proximity Operators for detailed documentation.
Aggregation Operators
Combine and cluster genomic intervals.
Operator |
Description |
Example |
|---|---|---|
Assign cluster IDs to overlapping intervals |
|
|
Combine overlapping intervals into unified regions |
|
See Aggregation Operators for detailed documentation.
Set Quantifiers
Apply operators to multiple ranges simultaneously.
Quantifier |
Description |
Example |
|---|---|---|
Match if condition holds for any of the specified ranges |
|
|
Match if condition holds for all of the specified ranges |
|
See Set Quantifiers for detailed documentation.
Operator Compatibility
All operators work across supported database backends (DuckDB, SQLite, with PostgreSQL planned). Each operator page includes a compatibility table showing backend support status.