annotate uniq.xml @ 0:4382d742830f draft

Uploaded
author bgruening
date Mon, 26 Aug 2013 04:38:43 -0400
parents
children 7ce75adb93be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4382d742830f Uploaded
bgruening
parents:
diff changeset
1 <tool id="bg_uniq" name="Unique" version="0.3">
4382d742830f Uploaded
bgruening
parents:
diff changeset
2 <description>occurrences of each record</description>
4382d742830f Uploaded
bgruening
parents:
diff changeset
3 <command interpreter='python'>
4382d742830f Uploaded
bgruening
parents:
diff changeset
4 unique_lines.py
4382d742830f Uploaded
bgruening
parents:
diff changeset
5 $ignore_case
4382d742830f Uploaded
bgruening
parents:
diff changeset
6 $is_numeric
4382d742830f Uploaded
bgruening
parents:
diff changeset
7 #if $adv_opts.adv_opts_selector=="advanced":
4382d742830f Uploaded
bgruening
parents:
diff changeset
8 $adv_opts.column_start
4382d742830f Uploaded
bgruening
parents:
diff changeset
9 $adv_opts.column_end
4382d742830f Uploaded
bgruening
parents:
diff changeset
10 #end if
4382d742830f Uploaded
bgruening
parents:
diff changeset
11 $outfile
4382d742830f Uploaded
bgruening
parents:
diff changeset
12 $input
4382d742830f Uploaded
bgruening
parents:
diff changeset
13 </command>
4382d742830f Uploaded
bgruening
parents:
diff changeset
14 <inputs>
4382d742830f Uploaded
bgruening
parents:
diff changeset
15 <param name="input" type="data" format="tabular,text" label="from query" />
4382d742830f Uploaded
bgruening
parents:
diff changeset
16 <param name="ignore_case" type="boolean" label="ignore differences in case when comparing" truevalue="-f" falsevalue="false" checked="false" help="ignore differences in case when comparing"/>
4382d742830f Uploaded
bgruening
parents:
diff changeset
17 <param name="is_numeric" type="boolean" label="column only contains numeric values" truevalue="-n" falsevalue="false" checked="false" help="did the calumn have numeric values"/>
4382d742830f Uploaded
bgruening
parents:
diff changeset
18 <conditional name="adv_opts">
4382d742830f Uploaded
bgruening
parents:
diff changeset
19 <param name="adv_opts_selector" type="select" label="Advanced Options">
4382d742830f Uploaded
bgruening
parents:
diff changeset
20 <option value="basic" selected="True">Hide Advanced Options</option>
4382d742830f Uploaded
bgruening
parents:
diff changeset
21 <option value="advanced">Show Advanced Options</option>
4382d742830f Uploaded
bgruening
parents:
diff changeset
22 </param>
4382d742830f Uploaded
bgruening
parents:
diff changeset
23 <when value="basic" />
4382d742830f Uploaded
bgruening
parents:
diff changeset
24 <when value="advanced">
4382d742830f Uploaded
bgruening
parents:
diff changeset
25 <param name="column_start" label="Column start" type="data_column" data_ref="input" help="Unique on specific column range"/>
4382d742830f Uploaded
bgruening
parents:
diff changeset
26 <param name="column_end" label="Column end" type="data_column" data_ref="input" help="Unique on specific column range"/>
4382d742830f Uploaded
bgruening
parents:
diff changeset
27 </when>
4382d742830f Uploaded
bgruening
parents:
diff changeset
28 </conditional>
4382d742830f Uploaded
bgruening
parents:
diff changeset
29 </inputs>
4382d742830f Uploaded
bgruening
parents:
diff changeset
30 <outputs>
4382d742830f Uploaded
bgruening
parents:
diff changeset
31 <data format="input" name="outfile" />
4382d742830f Uploaded
bgruening
parents:
diff changeset
32 </outputs>
4382d742830f Uploaded
bgruening
parents:
diff changeset
33 <tests>
4382d742830f Uploaded
bgruening
parents:
diff changeset
34 <test>
4382d742830f Uploaded
bgruening
parents:
diff changeset
35 </test>
4382d742830f Uploaded
bgruening
parents:
diff changeset
36 </tests>
4382d742830f Uploaded
bgruening
parents:
diff changeset
37 <help>
4382d742830f Uploaded
bgruening
parents:
diff changeset
38
4382d742830f Uploaded
bgruening
parents:
diff changeset
39 .. class:: infomark
4382d742830f Uploaded
bgruening
parents:
diff changeset
40
4382d742830f Uploaded
bgruening
parents:
diff changeset
41 **Syntax**
4382d742830f Uploaded
bgruening
parents:
diff changeset
42
4382d742830f Uploaded
bgruening
parents:
diff changeset
43 This tool returns all unique lines using the 'sort -u' command.
4382d742830f Uploaded
bgruening
parents:
diff changeset
44
4382d742830f Uploaded
bgruening
parents:
diff changeset
45 -----
4382d742830f Uploaded
bgruening
parents:
diff changeset
46
4382d742830f Uploaded
bgruening
parents:
diff changeset
47 .. class:: infomark
4382d742830f Uploaded
bgruening
parents:
diff changeset
48
4382d742830f Uploaded
bgruening
parents:
diff changeset
49 The input file needs to be tab separated. Please convert your file if necessary.
4382d742830f Uploaded
bgruening
parents:
diff changeset
50
4382d742830f Uploaded
bgruening
parents:
diff changeset
51 -----
4382d742830f Uploaded
bgruening
parents:
diff changeset
52
4382d742830f Uploaded
bgruening
parents:
diff changeset
53 **Example**
4382d742830f Uploaded
bgruening
parents:
diff changeset
54
4382d742830f Uploaded
bgruening
parents:
diff changeset
55 - Input file::
4382d742830f Uploaded
bgruening
parents:
diff changeset
56
4382d742830f Uploaded
bgruening
parents:
diff changeset
57 chr1 10 100 gene1
4382d742830f Uploaded
bgruening
parents:
diff changeset
58 chr1 105 200 gene2
4382d742830f Uploaded
bgruening
parents:
diff changeset
59 chr1 10 100 gene1
4382d742830f Uploaded
bgruening
parents:
diff changeset
60 chr2 10 100 gene4
4382d742830f Uploaded
bgruening
parents:
diff changeset
61 chr2 1000 1900 gene5
4382d742830f Uploaded
bgruening
parents:
diff changeset
62 chr3 15 1656 gene6
4382d742830f Uploaded
bgruening
parents:
diff changeset
63 chr2 10 100 gene4
4382d742830f Uploaded
bgruening
parents:
diff changeset
64
4382d742830f Uploaded
bgruening
parents:
diff changeset
65 - Unique lines will result in::
4382d742830f Uploaded
bgruening
parents:
diff changeset
66
4382d742830f Uploaded
bgruening
parents:
diff changeset
67 chr1 10 100 gene1
4382d742830f Uploaded
bgruening
parents:
diff changeset
68 chr1 105 200 gene2
4382d742830f Uploaded
bgruening
parents:
diff changeset
69 chr2 10 100 gene4
4382d742830f Uploaded
bgruening
parents:
diff changeset
70 chr2 1000 1900 gene5
4382d742830f Uploaded
bgruening
parents:
diff changeset
71 chr3 15 1656 gene6
4382d742830f Uploaded
bgruening
parents:
diff changeset
72
4382d742830f Uploaded
bgruening
parents:
diff changeset
73
4382d742830f Uploaded
bgruening
parents:
diff changeset
74 </help>
4382d742830f Uploaded
bgruening
parents:
diff changeset
75 </tool>