[0bdad5]: / inst / queries / datasetProbeValues.xq

Download this file

16 lines (14 with data), 595 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
; datasetProbeValues
(fn [dataset samples probes]
(let [probemap (:probemap (car (query {:select [:probemap]
:from [:dataset]
:where [:= :name dataset]})))
position (if probemap
((xena-query {:select ["name" "position"]
:from [probemap]
:where [:in "name" probes]}) "position")
nil)]
[position
(fetch [{:table dataset
:columns probes
:samples samples}])]))