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)
Working through the tutorials now, but thanks for helping me solve some immediate problems :)
(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"]]