Mercurial > repos > bgruening > text_processing
comparison recurring_lines.xml @ 19:12615d397df7 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
author | bgruening |
---|---|
date | Thu, 29 Feb 2024 22:15:20 +0000 |
parents | 74a8bef53a00 |
children |
comparison
equal
deleted
inserted
replaced
18:d698c222f354 | 19:12615d397df7 |
---|---|
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> |