Mercurial > repos > bgruening > text_processing
comparison tail.xml @ 1:a4ad586d1403 draft
Uploaded
| author | bgruening |
|---|---|
| date | Thu, 05 Sep 2013 11:42:27 -0400 |
| parents | ec66f9d90ef0 |
| children | 7068d1548234 |
comparison
equal
deleted
inserted
replaced
| 0:ec66f9d90ef0 | 1:a4ad586d1403 |
|---|---|
| 2 <description>lines from a dataset (tail)</description> | 2 <description>lines from a dataset (tail)</description> |
| 3 <requirements> | 3 <requirements> |
| 4 <requirement type="package" version="8.21">gnu_coreutils</requirement> | 4 <requirement type="package" version="8.21">gnu_coreutils</requirement> |
| 5 </requirements> | 5 </requirements> |
| 6 <command> | 6 <command> |
| 7 tail --lines $count '$input1' > '$output' | 7 tail --lines $count '$input' > '$output' |
| 8 </command> | 8 </command> |
| 9 | 9 |
| 10 <inputs> | 10 <inputs> |
| 11 <param format="txt" name="input1" type="data" label="file to cut" /> | 11 <param format="txt" name="input" type="data" label="file to cut" /> |
| 12 <param name="count" type="integer" size="5" value="10" label="Output last X lines" help="" /> | 12 <param name="count" type="integer" size="5" value="10" label="Output last X lines" help="" /> |
| 13 </inputs> | 13 </inputs> |
| 14 | 14 |
| 15 <outputs> | 15 <outputs> |
| 16 <data format="input" name="output" metadata_source="input1"/> | 16 <data format="input" name="output" metadata_source="input"/> |
| 17 </outputs> | 17 </outputs> |
| 18 <tests> | |
| 19 <test> | |
| 20 <param name="count" value="10"/> | |
| 21 <param name="infile" value="1.bed"/> | |
| 22 <output name="out_file1" file="eq-showtail.dat"/> | |
| 23 </test> | |
| 24 </tests> | |
| 18 <help> | 25 <help> |
| 19 | 26 |
| 20 **What it does** | 27 **What it does** |
| 21 | 28 |
| 22 This tool runs the **tail** unix command, which discards lines from the beginning of a file. | 29 This tool outputs specified number of lines from the **end** of a dataset |
| 30 | |
| 31 ----- | |
| 32 | |
| 33 **Example** | |
| 34 | |
| 35 - Input File:: | |
| 36 | |
| 37 chr7 57134 57154 D17003_CTCF_R7 356 - | |
| 38 chr7 57247 57267 D17003_CTCF_R4 207 + | |
| 39 chr7 57314 57334 D17003_CTCF_R5 269 + | |
| 40 chr7 57341 57361 D17003_CTCF_R7 375 + | |
| 41 chr7 57457 57477 D17003_CTCF_R3 188 + | |
| 42 | |
| 43 - Show last two lines of above file. The result is:: | |
| 44 | |
| 45 chr7 57341 57361 D17003_CTCF_R7 375 + | |
| 46 chr7 57457 57477 D17003_CTCF_R3 188 + | |
| 23 | 47 |
| 24 </help> | 48 </help> |
| 25 </tool> | 49 </tool> |
