Skip to main content

Table 2 The full list of mathematical operations defined for STQL operations that create intervals

From: START: a system for flexible analysis of hundreds of genomic signal tracks in few lines of SQL-like queries

STQL operation

Coalesce, discretize

Intersectjoin

Exclusivejoin

 

or project on

  

Values involved

v 1...v n

v 1, v 2

v 1

vd_sum

\(\sum _{i=1}^{n} v_{i}\)

v 1+v 2

N/A

vd_avg

\(\frac {\sum _{i=1}^{n} v_{i}}{n}\)

(v 1+v 2)/2

N/A

vd_diff

N/A

v 1−v 2

N/A

vd_product

\(\prod _{i=1}^{n} v_{i}\)

v 1×v 2

N/A

vd_quotient

N/A

v 1÷v 2

N/A

vd_max

\(\max _{i=1}^{n} v_{i}\)

max(v 1,v 2)

N/A

vd_min

\(\min _{i=1}^{n} v_{i}\)

min(v 1,v 2)

N/A

vd_left

N/A

v 1

v 1

vd_right

N/A

v 2

N/A

  1. Starting from the third row, the first column shows the names of these mathematical operations that can be used in the <vd > placeholders in statements involving coalesce, discretize, project, intersectjoin and exclusivejoin. These mathematical operations are used in Step 2 of value derivation. The second row defines the values involved in the operations. In the case of intersectjoin, exactly two values are involved, namely v 1 from the first track and v 2 from the second track. In the case of exclusivejoin, exactly one value is involved, namely v 1 from the first track. In the case of coalesce, discretize and project, all values come from the same track and there can be one or more values involved. N/A indicates mathematical operators that cannot be used with the STQL operations