Mercurial > repos > bgruening > text_processing
comparison recurring_lines.xml @ 26:f22a309187a3 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
| author | bgruening |
|---|---|
| date | Fri, 16 Aug 2024 10:41:17 +0000 |
| parents | 1e974b82380d |
| children | 08cdbfffce67 |
comparison
equal
deleted
inserted
replaced
| 25:cd83b5644eab | 26:f22a309187a3 |
|---|---|
| 1 <tool id="tp_text_file_with_recurring_lines" name="Create text file" version="@BASE_VERSION@.0"> | 1 <tool id="tp_text_file_with_recurring_lines" name="Create text file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
| 2 <description>with recurring lines</description> | 2 <description>with recurring lines</description> |
| 3 <macros> | 3 <macros> |
| 4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 5 </macros> | 5 </macros> |
| 6 <expand macro="creator"/> | |
| 6 <expand macro="requirements" /> | 7 <expand macro="requirements" /> |
| 7 <version_command>yes --version | head -n 1</version_command> | 8 <version_command>yes --version | head -n 1</version_command> |
| 8 <command> | 9 <command> |
| 9 <![CDATA[ | 10 <![CDATA[ |
| 10 #for $token in $token_set: | 11 #for $token in $token_set: |
| 11 #if str($token.repeat_select.repeat_select_opts) == 'user': | 12 #if str($token.repeat_select.repeat_select_opts) == 'user': |
| 12 times=#echo $token.repeat_select.times#; | 13 times=#echo $token.repeat_select.times#; |
| 13 #else: | 14 #else: |
| 14 times=`wc -l $token.repeat_select.infile | awk '{print $1}'`; | 15 times=`wc -l $token.repeat_select.infile | awk '{print $1}'`; |
| 15 #end if | 16 #end if |
| 16 yes -- "${token.line}" 2>/dev/null | head -n \$times >> $outfile; | 17 yes -- '${token.line}' 2>/dev/null | head -n \$times >> '$outfile'; |
| 17 #end for | 18 #end for |
| 18 ]]> | 19 ]]> |
| 19 </command> | 20 </command> |
| 20 <inputs> | 21 <inputs> |
| 21 <repeat name="token_set" title=" selection" min="1"> | 22 <repeat name="token_set" title=" selection" min="1"> |
| 70 | 71 |
| 71 This tool creates a text file with recurring lines. You can specify a bunch of characters or entire sentences. | 72 This tool creates a text file with recurring lines. You can specify a bunch of characters or entire sentences. |
| 72 The entire string will be printed X times separated by a line break. X can be either given by the use as a number or calculated by a given file. | 73 The entire string will be printed X times separated by a line break. X can be either given by the use as a number or calculated by a given file. |
| 73 In case the user provides a file, the line number will be used as X. | 74 In case the user provides a file, the line number will be used as X. |
| 74 | 75 |
| 75 @REFERENCES@ | |
| 76 ]]> | 76 ]]> |
| 77 </help> | 77 </help> |
| 78 <expand macro="citations" /> | 78 <expand macro="citations" /> |
| 79 </tool> | 79 </tool> |
