annotate head.xml @ 8:4c752559b236 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 3103ebed1a420c7d3415b67ef532ea579edf9faa
author bgruening
date Wed, 12 Jul 2017 14:07:57 -0400
parents 60edf2f8c28f
children 12615d397df7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
1 <tool id="tp_head_tool" name="Select first" version="@BASE_VERSION@.0">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
2 <description>lines from a dataset (head)</description>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
3 <macros>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
4 <import>macros.xml</import>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
5 </macros>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
6 <expand macro="requirements" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
7 <version_command>head --version | head -n 1</version_command>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
8 <command>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
9 <![CDATA[
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
10 head
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
11 --lines
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
12 $complement$count
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
13 '${infile}'
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
14 > '${outfile}'
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
15 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
16 </command>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
17 <inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
18 <param name="infile" type="data" format="txt" label="File to select" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
19 <param name="complement" type="select" label="Operation">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
20 <option value="">Keep first lines</option>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
21 <option value="-">Remove last lines</option>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
22 </param>
3
37e1eb05b1b4 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 10052765d6b712cf7d38356af4251fcc38a339b6-dirty
bgruening
parents: 0
diff changeset
23 <param name="count" type="integer" value="10"
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
24 label="Number of lines" help="These will be kept/discarded depending on 'operation'. (--lines)" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
25 </inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
26 <outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
27 <data name="outfile" format_source="infile" metadata_source="infile"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
28 </outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
29 <tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
30 <test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
31 <param name="count" value="10"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
32 <param name="infile" value="1.bed"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
33 <output name="outfile" file="head_results1.bed"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
34 </test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
35 </tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
36 <help>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
37 <![CDATA[
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
38 **What it does**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
39
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
40 This tool outputs specified number of lines from the **beginning** of a dataset
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
41
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
42 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
43
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
44 **Example**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
45
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
46 Selecting 2 lines from this::
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
47
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
48 chr7 56632 56652 D17003_CTCF_R6 310 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
49 chr7 56736 56756 D17003_CTCF_R7 354 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
50 chr7 56761 56781 D17003_CTCF_R4 220 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
51 chr7 56772 56792 D17003_CTCF_R7 372 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
52 chr7 56775 56795 D17003_CTCF_R4 207 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
53
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
54 will produce::
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
55
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
56 chr7 56632 56652 D17003_CTCF_R6 310 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
57 chr7 56736 56756 D17003_CTCF_R7 354 +
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
58
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
59 @REFERENCES@
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
60 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
61 </help>
6
60edf2f8c28f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents: 3
diff changeset
62 <expand macro="citations" />
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
63 </tool>