comparison regex.xml @ 5:503bcd6ebe4b draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 3eaa2a2bdaeedf1b0771b1b764a550106dcbc186
author galaxyp
date Thu, 02 Feb 2023 08:21:31 +0000
parents 399da6b5ec21
children
comparison
equal deleted inserted replaced
4:399da6b5ec21 5:503bcd6ebe4b
1 <tool id="regex1" name="Regex Find And Replace" version="1.0.2" profile="21.01"> 1 <tool id="regex1" name="Regex Find And Replace" version="1.0.3" profile="21.01">
2 <description></description> 2 <description></description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="3.7">python</requirement> 4 <requirement type="package" version="3.7">python</requirement>
5 </requirements> 5 </requirements>
6 <command> 6 <command>
42 </sanitizer> 42 </sanitizer>
43 </param> 43 </param>
44 </repeat> 44 </repeat>
45 </inputs> 45 </inputs>
46 <outputs> 46 <outputs>
47 <data format="input" name="out_file1" metadata_source="input"/> 47 <data format_source="input" name="out_file1" metadata_source="input"/>
48 </outputs> 48 </outputs>
49 <tests> 49 <tests>
50 <test> 50 <test>
51 <param name="input" value="find1.txt"/> 51 <param name="input" value="find1.txt" ftype="txt"/>
52 <param name="pattern" value="(T\w+)"/> 52 <param name="pattern" value="(T\w+)"/>
53 <param name="replacement" value="\1 \1" /> 53 <param name="replacement" value="\1 \1" />
54 <output name="out_file1" file="replace1.txt"/> 54 <output name="out_file1" file="replace1.txt" ftype="txt"/>
55 </test> 55 </test>
56 <test> 56 <test>
57 <param name="input" value="find1.txt"/> 57 <param name="input" value="find1.txt" ftype="txt"/>
58 <param name="pattern" value="f"/> 58 <param name="pattern" value="f"/>
59 <param name="replacement" value="'&quot;" /> 59 <param name="replacement" value="'&quot;" />
60 <output name="out_file1" file="replace2.txt"/> 60 <output name="out_file1" file="replace2.txt" ftype="txt"/>
61 </test> 61 </test>
62 <test> 62 <test>
63 <param name="input" value="find1.txt"/> 63 <param name="input" value="find1.txt" ftype="txt"/>
64 <param name="checks_0|pattern" value="a test file"/> 64 <param name="checks_0|pattern" value="a test file"/>
65 <param name="checks_0|replacement" value="a file named #{input_name}" /> 65 <param name="checks_0|replacement" value="a file named #{input_name}" />
66 <param name="checks_1|pattern" value="see here"/> 66 <param name="checks_1|pattern" value="see here"/>
67 <param name="checks_1|replacement" value="see #{input_name}" /> 67 <param name="checks_1|replacement" value="see #{input_name}" />
68 <param name="checks_2|pattern" value="see (find1).txt"/> 68 <param name="checks_2|pattern" value="see (find1).txt"/>
69 <param name="checks_2|replacement" value="see \1" /> 69 <param name="checks_2|replacement" value="see \1" />
70 <output name="out_file1" file="replace3.txt"/> 70 <output name="out_file1" file="replace3.txt" ftype="txt"/>
71 </test> 71 </test>
72 </tests> 72 </tests>
73 <help> 73 <help>
74 This tool goes line by line through the specified input file and 74 This tool goes line by line through the specified input file and
75 replaces text which matches the specified regular expression patterns 75 replaces text which matches the specified regular expression patterns