Mercurial > repos > bgruening > text_processing
annotate tail.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 | 12615d397df7 |
| 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_tail_tool" name="Select last" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
| 0 | 2 <description>lines from a dataset (tail)</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>tail --version | head -n 1</version_command> | |
| 9 <command> | |
| 10 <![CDATA[ | |
| 11 tail | |
| 12 --lines $complement$num_lines | |
| 13 '$infile' | |
| 14 > '$outfile' | |
| 15 ]]> | |
| 16 </command> | |
| 17 <inputs> | |
| 18 <param name="infile" format="txt" type="data" label="Text file" /> | |
| 19 <param name="complement" type="select" label="Operation"> | |
| 20 <option value="">Keep last lines</option> | |
| 21 <option value="+">Keep everything from this line on</option> | |
| 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="num_lines" type="integer" value="10" |
| 0 | 24 label="Number of lines" help="These will be kept (depending on 'operation'). (--lines)" /> |
| 25 </inputs> | |
| 26 <outputs> | |
| 27 <data name="outfile" format_source="infile" metadata_source="infile" /> | |
| 28 </outputs> | |
| 29 <tests> | |
| 30 <test> | |
| 31 <param name="infile" value="1.bed"/> | |
| 32 <param name="num_lines" value="10"/> | |
| 33 <output name="outfile" file="tail_results1.bed"/> | |
| 34 </test> | |
| 35 <test> | |
| 36 <param name="infile" value="1.bed"/> | |
| 37 <param name="num_lines" value="10"/> | |
| 38 <param name="complement" value="+"/> | |
| 39 <output name="outfile" file="tail_results2.bed"/> | |
| 40 </test> | |
| 41 </tests> | |
| 42 <help> | |
| 43 <![CDATA[ | |
| 44 **What it does** | |
| 45 | |
| 46 This tool outputs specified number of lines from the **end** of a dataset | |
| 47 | |
| 48 ----- | |
| 49 | |
| 50 **Example** | |
| 51 | |
| 52 - Input File:: | |
| 53 | |
| 54 chr7 57134 57154 D17003_CTCF_R7 356 - | |
| 55 chr7 57247 57267 D17003_CTCF_R4 207 + | |
| 56 chr7 57314 57334 D17003_CTCF_R5 269 + | |
| 57 chr7 57341 57361 D17003_CTCF_R7 375 + | |
| 58 chr7 57457 57477 D17003_CTCF_R3 188 + | |
| 59 | |
| 60 - Show last two lines of above file. The result is:: | |
| 61 | |
| 62 chr7 57341 57361 D17003_CTCF_R7 375 + | |
| 63 chr7 57457 57477 D17003_CTCF_R3 188 + | |
| 64 | |
| 65 ]]> | |
| 66 </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
|
67 <expand macro="citations" /> |
| 0 | 68 </tool> |
