annotate jq.xml @ 0:5ff75eb1a893 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
author iuc
date Tue, 04 Jul 2017 18:29:48 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
2 <tool id="jq" name="JQ" version="1.0">
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
3 <description>process JSON</description>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
4 <requirements>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
5 <requirement type="package" version="1.5">jq</requirement>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
6 </requirements>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
7 <command detect_errors="aggressive"><![CDATA[
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
8 JQ_BIN=`which jq` &&
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
9 cat '$input' | env -i JQ_BIN=\$JQ_BIN \$JQ_BIN -r -S '$filter $tsv' > '$output'
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
10 ]]></command>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
11 <inputs>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
12 <param name="input" label="JSON Input" type="data" format="json" />
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
13 <param name="filter" label="jq filter" type="text">
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
14 <sanitizer>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
15 <valid>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
16 <add value='"'/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
17 <add value="@"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
18 <add value="|"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
19 <add value="!"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
20 <add value="="/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
21 <add value="$"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
22 <add value="["/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
23 <add value="]"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
24 <add value="{"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
25 <add value="}"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
26 <add value="("/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
27 <add value=")"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
28 <add value="&lt;"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
29 <add value="&gt;"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
30 </valid>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
31 </sanitizer>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
32 </param>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
33 <param name="tsv" label="Convert output to tabular" type="boolean" truevalue="| @tsv" falsevalue="" help="@tsv can be used normally, but this will automatically mark the output as tabular"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
34 </inputs>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
35 <outputs>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
36 <data format="json" name="output">
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
37 <change_format>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
38 <when input="tsv" value="| @tsv" format="tabular" />
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
39 </change_format>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
40 </data>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
41 </outputs>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
42 <tests>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
43 <test>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
44 <param name="input" value="list.json"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
45 <param name="filter" value=".[] | [.foo, .bar]"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
46 <param name="tsv" value="| @tsv"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
47 <output name="output" file="out-1.json" />
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
48 </test>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
49 <test>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
50 <param name="input" value="list.json"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
51 <param name="filter" value='{"a": env}'/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
52 <param name="tsv" value=""/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
53 <output name="output">
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
54 <assert_contents>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
55 <has_text text="JQ_BIN"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
56 <not_has_text text="GALAXY_CONFIG"/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
57 </assert_contents>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
58 </output>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
59 </test>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
60 </tests>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
61 <help><![CDATA[
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
62 JQ
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
63 ==
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
64
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
65 jq is a lightweight and flexible JSON processor.
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
66
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
67 Brief Examples
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
68 --------------
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
69
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
70 See `the manual <https://stedolan.github.io/jq/manual/>`__ for a much
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
71 more detailed guide on using JQ.
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
72
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
73 Select an Attribute
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
74 ~~~~~~~~~~~~~~~~~~~
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
75
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
76 Given an input like the following
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
77
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
78 ::
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
79
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
80 {"foo": 42, "bar": "less interesting data"}
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
81
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
82 To select just the value of ``foo``, supply the filter ``.foo``
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
83
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
84 Loop over an Array
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
85 ~~~~~~~~~~~~~~~~~~
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
86
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
87 Given an input like the following
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
88
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
89 ::
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
90
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
91 [{"foo": 1123}, {"foo": 6536}, {"foo": 5321}]
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
92
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
93 To select the values of ``foo``, supply the filter ``.[].foo`` or
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
94 ``.[] | .foo``. This will produce a file with one number per line.
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
95
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
96 If you wish to select multiple things:
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
97
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
98 ::
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
99
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
100 [{"foo": 1123, "bar": "a"}, {"foo": 6536, "bar": "b"}, {"foo": 5321, "bar": "c"}]
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
101
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
102 To select the values of ``foo`` AND ``bar``, supply the filter
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
103 ``.[] | [.foo, .bar]``. This will produce and output array like:
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
104
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
105 ::
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
106
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
107 [
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
108 [1123, "a"]
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
109 [6536, "b"]
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
110 [5321, "c"]
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
111 ]
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
112
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
113 A common next step is to turn this into a tabular output which more
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
114 Galaxy tools can work with. This can be done by checking the box for
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
115 tabular. This will invoke the JQ filter of ``@tsv`` at the end of the
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
116 processing chain, and produce a tabular file.
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
117
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
118 ]]></help>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
119 <citations/>
5ff75eb1a893 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jq commit 09e822fb844c9c724eb03dd12f352577ef404ea8
iuc
parents:
diff changeset
120 </tool>