[ea2224]: / inst / queries / datasetGeneProbesValues.xq

Download this file

12 lines (11 with data), 408 Bytes

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