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