This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-22
Channels
- # announcements (2)
- # aws (5)
- # babashka (17)
- # beginners (108)
- # calva (28)
- # chlorine-clover (7)
- # clj-kondo (14)
- # cljs-dev (9)
- # cljsrn (2)
- # clojure (118)
- # clojure-europe (50)
- # clojure-finland (5)
- # clojure-france (15)
- # clojure-italy (9)
- # clojure-nl (14)
- # clojure-spec (11)
- # clojure-uk (43)
- # clojuredesign-podcast (1)
- # clojurescript (35)
- # clojutre (2)
- # clr (3)
- # community-development (6)
- # conjure (9)
- # core-async (41)
- # cursive (7)
- # data-science (7)
- # datomic (11)
- # events (1)
- # figwheel-main (4)
- # fulcro (20)
- # ghostwheel (9)
- # graalvm (18)
- # helix (46)
- # leiningen (14)
- # observability (2)
- # off-topic (23)
- # pathom (4)
- # re-frame (5)
- # reitit (5)
- # rum (2)
- # shadow-cljs (32)
- # spacemacs (8)
- # specter (5)
- # sql (36)
- # timbre (3)
- # vim (15)
- # xtdb (2)
- # yada (2)
How do I select multiple things at different levels?
Test data:
(def testrules {:plot-quals {:out {:graph "quals.svg" :data "quals.tsv"},},
:samtools-index {:out "bam/sorted.bam.bai",},
:samtools-sort {:out "bam/sorted.bam"}})
I want to get the first key and value of out. Was thinking it would start something like
(select [(collect-one KEY) ALL ALL :out] testrules)
(select [(collect ALL) ALL :out] testrules)
got me closer.(select [(collect-one FIRST FIRST) ALL LAST :out] testrules)
yields [[:plot-quals {:graph "quals.svg", :data "quals.tsv"}]
[:plot-quals "bam/sorted.bam.bai"]
[:plot-quals "bam/sorted.bam"]]
Working through the tutorials now, but thanks for helping me solve some immediate problems :)