annotate unsorted_uniq.xml @ 1:43b1f073b693 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
author bgruening
date Tue, 30 Jun 2015 16:23:23 -0400
parents 5314e5d6f040
children 60edf2f8c28f
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_sorted_uniq" name="Unique" version="@BASE_VERSION@.0">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
2 <description>occurrences of each record</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>sort --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 sort -u
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
11 $ignore_case
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
12 $is_numeric
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
13 -t ' '
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
14 #if $adv_opts.adv_opts_selector == "advanced":
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
15 -k$adv_opts.column_start,$adv_opts.column_end
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
16 #end if
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
17 -o "$outfile"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
18 "$infile"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
19 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
20 </command>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
21 <inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
22 <param name="infile" type="data" format="tabular" label="File to scan for unique values" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
23 <param name="ignore_case" type="boolean" truevalue="-f" falsevalue="" checked="False"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
24 label="Ignore differences in case when comparing" help="(-f)"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
25 <param name="is_numeric" type="boolean" truevalue="-n" falsevalue="" checked="False"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
26 label="Column only contains numeric values" help="(-n)" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
27 <conditional name="adv_opts">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
28 <param name="adv_opts_selector" type="select" label="Advanced Options">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
29 <option value="basic" selected="True">Hide Advanced Options</option>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
30 <option value="advanced">Show Advanced Options</option>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
31 </param>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
32 <when value="basic" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
33 <when value="advanced">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
34 <param name="column_start" type="data_column" data_ref="infile" label="Column start" help="Unique on specific column range"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
35 <param name="column_end" type="data_column" data_ref="infile" label="Column end" help="Unique on specific column range"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
36 </when>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
37 </conditional>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
38 </inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
39 <outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
40 <data name="outfile" format_source="infile" metadata_source="infile"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
41 </outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
42 <tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
43 <test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
44 <param name="infile" value="1.bed"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
45 <param name="is_numeric" value="True"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
46 <param name="ignore_case" value="True"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
47 <param name="adv_opts_selector" value="advanced"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
48 <param name="column_start" value="2"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
49 <param name="column_end" value="3"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
50 <output name="outfile" file="unique_results1.bed"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
51 </test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
52 </tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
53 <help>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
54 <![CDATA[
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
55 .. class:: infomark
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
56
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
57 **Syntax**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
58
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
59 This tool returns all unique lines using the 'sort -u' command. It can be used with unsorted files.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
60 If you need additional options, like grouping or counting your unique results, please use the 'Unique lines from sorted file' tool.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
61
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
62 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
63
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
64 .. class:: infomark
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
65
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
66 The input file needs to be tab separated. Please convert your file if necessary.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
67
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
68 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
69
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
70 **Example**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
71
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
72 - Input file::
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
73
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
74 chr1 10 100 gene1
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
75 chr1 105 200 gene2
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
76 chr1 10 100 gene1
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
77 chr2 10 100 gene4
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
78 chr2 1000 1900 gene5
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
79 chr3 15 1656 gene6
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
80 chr2 10 100 gene4
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
81
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
82 - Unique lines will result in::
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
83
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
84 chr1 10 100 gene1
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
85 chr1 105 200 gene2
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
86 chr2 10 100 gene4
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
87 chr2 1000 1900 gene5
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
88 chr3 15 1656 gene6
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
89
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
90 @REFERENCES@
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
91 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
92 </help>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
93 </tool>