comparison awk.xml @ 11:74a8bef53a00 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 0ba37c1f33eeb1c77b4d9363d681fe522d9f7fe7
author bgruening
date Tue, 27 Feb 2018 17:15:37 -0500
parents 4c752559b236
children 0a8c6b61f0f4
comparison
equal deleted inserted replaced
10:e39fceb6ab85 11:74a8bef53a00
1 <tool id="tp_awk_tool" name="Text reformatting" version="@BASE_VERSION@.0"> 1 <tool id="tp_awk_tool" name="Text reformatting" version="@BASE_VERSION@.1">
2 <description>with awk</description> 2 <description>with awk</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <requirements> 6 <requirements>
7 <requirement type="package" version="4.1.3">gawk</requirement> 7 <requirement type="package" version="4.2.0">gawk</requirement>
8 </requirements> 8 </requirements>
9 <version_command>awk --version | head -n 1</version_command> 9 <version_command>awk --version | head -n 1</version_command>
10 <command> 10 <command>
11 <![CDATA[ 11 <![CDATA[
12 awk 12 awk
78 - **$2 == "chr3"** will match lines whose second column is the string 'chr3' 78 - **$2 == "chr3"** will match lines whose second column is the string 'chr3'
79 - **$5-$4>23** will match lines that after subtracting the value of the fourth column from the value of the fifth column, gives value alrger than 23. 79 - **$5-$4>23** will match lines that after subtracting the value of the fourth column from the value of the fifth column, gives value alrger than 23.
80 - **/AG..AG/** will match lines that contain the regular expression **AG..AG** (meaning the characeters AG followed by any two characeters followed by AG). (This is the way to specify regular expressions on the entire line, similar to GREP.) 80 - **/AG..AG/** will match lines that contain the regular expression **AG..AG** (meaning the characeters AG followed by any two characeters followed by AG). (This is the way to specify regular expressions on the entire line, similar to GREP.)
81 - **$7 ~ /A{4}U/** will match lines whose seventh column contains 4 consecutive A's followed by a U. (This is the way to specify regular expressions on a specific field.) 81 - **$7 ~ /A{4}U/** will match lines whose seventh column contains 4 consecutive A's followed by a U. (This is the way to specify regular expressions on a specific field.)
82 - **10000 < $4 && $4 < 20000** will match lines whose fourth column value is larger than 10,000 but smaller than 20,000 82 - **10000 < $4 && $4 < 20000** will match lines whose fourth column value is larger than 10,000 but smaller than 20,000
83 - **BEGIN** will be executed once only, before the first input record is read. 83 - **BEGIN** will be executed once only, before the first input record is read.
84 - If no pattern is specified, all lines match (meaning the **action** part will be executed on all lines). 84 - If no pattern is specified, all lines match (meaning the **action** part will be executed on all lines).
85 85
86 86
87 87
88 **Action Examples** 88 **Action Examples**