annotate awk.xml @ 29:4f7cade041cb draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
author bgruening
date Wed, 04 Jun 2025 15:11:51 +0000
parents 08cdbfffce67
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
f22a309187a3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents: 24
diff changeset
1 <tool id="tp_awk_tool" name="Text reformatting" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2
fc862d5bccaf Uploaded
bgruening
parents: 1
diff changeset
2 <description>with awk</description>
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
3 <macros>
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
4 <import>macros.xml</import>
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
5 </macros>
26
f22a309187a3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents: 24
diff changeset
6 <expand macro="creator"/>
13
3c685c4106b3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 12
diff changeset
7 <requirements>
27
08cdbfffce67 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents: 26
diff changeset
8 <requirement type="package" version="5.3.1">gawk</requirement>
13
3c685c4106b3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 12
diff changeset
9 </requirements>
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
10 <version_command>awk --version | head -n 1</version_command>
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
11 <command>
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
12 <![CDATA[
20
1aa30b2c73c9 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4f79443517baf378fbfe1f81be361d97f2938601
bgruening
parents: 18
diff changeset
13 env -i
24
5fef6d08de83 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 5f5d5802a961a77ceb092cbdef90d93e29717029-dirty"
bgruening
parents: 22
diff changeset
14 \$(which awk)
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
15 --sandbox
6
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
16 -v FS=' '
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
17 -v OFS=' '
29
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
18 #for $i, $r in enumerate($variables, start=1)
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
19 -v VAR$i='$r.value'
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
20 #end for
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
21 --re-interval
26
f22a309187a3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents: 24
diff changeset
22 -f '$awk_script'
f22a309187a3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents: 24
diff changeset
23 '$infile'
f22a309187a3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents: 24
diff changeset
24 > '$outfile'
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
25 ]]>
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
26 </command>
13
3c685c4106b3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 12
diff changeset
27 <configfiles>
3c685c4106b3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 12
diff changeset
28 <configfile name="awk_script">$code</configfile>
3c685c4106b3 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 12
diff changeset
29 </configfiles>
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
30 <inputs>
6
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
31 <param name="infile" format="txt" type="data" label="File to process" />
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
32 <param name="code" type="text" area="true" size="5x35" label="AWK Program" help="">
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
33 <sanitizer>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
34 <valid initial="string.printable">
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
35 <remove value="&apos;"/>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
36 </valid>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
37 </sanitizer>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
38 </param>
29
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
39 <repeat name="variables" min="0" default="0" title="Variables">
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
40 <param name="value" type="text" label="Value">
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
41 <validator type="regex">[a-zA-Z0-9 .]+</validator>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
42 </param>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
43 </repeat>
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
44 </inputs>
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
45 <outputs>
6
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
46 <data name="outfile" format_source="infile" metadata_source="infile"/>
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
47 </outputs>
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
48 <tests>
6
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
49 <test>
29
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
50 <param name="infile" value="awk1.txt"/>
6
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
51 <!-- commas are not allowed in a value field. Values with comma will be splitted -->
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
52 <param name="code" value='$2>0.5 { print $2*9"\t"$1 }' />
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
53 <output name="outfile" file="awk_results1.txt" />
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
54 </test>
29
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
55 <test>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
56 <param name="infile" value="awk1.txt"/>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
57 <!-- commas are not allowed in a value field. Values with comma will be splitted -->
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
58 <param name="code" value='$2>VAR2 { print VAR1"\t"$2*9"\t"$1 }' />
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
59 <repeat name="variables">
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
60 <param name="value" value="xyz"/>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
61 </repeat>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
62 <repeat name="variables">
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
63 <param name="value" value="0.1"/>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
64 </repeat>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
65 <output name="outfile">
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
66 <assert_contents>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
67 <has_line_matching expression="^xyz.*" n="6"/>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
68 </assert_contents>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
69 </output>
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
70 </test>
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
71 </tests>
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
72 <help>
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
73 <![CDATA[
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
74 **What it does**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
75
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
76 This tool runs the unix **awk** command on the selected data file.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
77
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
78 .. class:: infomark
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
79
7
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
80 **TIP:**
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
81
7
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
82 This tool uses the **extended regular** expression syntax (not the perl syntax).
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
83 **\\d**, **\\w**, **\\s** etc. are **not** supported.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
84
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
85
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
86 **Further reading**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
87
14
7725ab6dab67 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents: 13
diff changeset
88 - Awk by Example (http://www.ibm.com/developerworks/linux/library/l-awk1/index.html)
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
89 - Long AWK tutorial (http://www.grymoire.com/Unix/Awk.html)
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
90
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
91 -----
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
92
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
93 **AWK programs**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
94
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
95 Most AWK programs consist of **patterns** (i.e. rules that match lines of text) and **actions** (i.e. commands to execute when a pattern matches a line).
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
96
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
97 The basic form of AWK program is::
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
98
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
99 pattern { action 1; action 2; action 3; }
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
100
29
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
101 **Variables**
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
102
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
103 In order to allow parametrization in workflows, the tool allows to specify values for variables that can be used in AWK program.
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
104 that will be named **VAR1**, **VAR2**, ...
4f7cade041cb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
bgruening
parents: 27
diff changeset
105
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
106
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
107 **Pattern Examples**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
108
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
109 - **$2 == "chr3"** will match lines whose second column is the string 'chr3'
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
110 - **$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.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
111 - **/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.)
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
112 - **$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.)
6
8928e6d1e7ba Uploaded
bgruening
parents: 4
diff changeset
113 - **10000 < $4 && $4 < 20000** will match lines whose fourth column value is larger than 10,000 but smaller than 20,000
18
1e974b82380d planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 0ba37c1f33eeb1c77b4d9363d681fe522d9f7fe7
bgruening
parents: 15
diff changeset
114 - **BEGIN** will be executed once only, before the first input record is read.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
115 - If no pattern is specified, all lines match (meaning the **action** part will be executed on all lines).
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
116
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
117
15
74aae7d6cb09 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 3103ebed1a420c7d3415b67ef532ea579edf9faa
bgruening
parents: 14
diff changeset
118
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
119 **Action Examples**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
120
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
121 - **{ print }** or **{ print $0 }** will print the entire input line (the line that matched in **pattern**). **$0** is a special marker meaning 'the entire line'.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
122 - **{ print $1, $4, $5 }** will print only the first, fourth and fifth fields of the input line.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
123 - **{ print $4, $5-$4 }** will print the fourth column and the difference between the fifth and fourth column. (If the fourth column was start-position in the input file, and the fifth column was end-position - the output file will contain the start-position, and the length).
15
74aae7d6cb09 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 3103ebed1a420c7d3415b67ef532ea579edf9faa
bgruening
parents: 14
diff changeset
124 - **{ FS = "," }** can be used to change the field separator (delimeter) for parsing the input file.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
125 - If no action part is specified (not even the curly brackets) - the default action is to print the entire line.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
126
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
127
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
128 **AWK's Regular Expression Syntax**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
129
7
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
130 The select tool searches the data for lines containing or not containing a match to the given pattern. A Regular Expression is a pattern descibing a certain amount of text.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
131
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
132 - **( ) { } [ ] . * ? + \ ^ $** are all special characters. **\\** can be used to "escape" a special character, allowing that special character to be searched for.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
133 - **^** matches the beginning of a string(but not an internal line).
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
134 - **(** .. **)** groups a particular pattern.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
135 - **{** n or n, or n,m **}** specifies an expected number of repetitions of the preceding pattern.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
136
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
137 - **{n}** The preceding item is matched exactly n times.
7
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
138 - **{n,}** The preceding item ismatched n or more times.
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
139 - **{n,m}** The preceding item is matched at least n times but not more than m times.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
140
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
141 - **[** ... **]** creates a character class. Within the brackets, single characters can be placed. A dash (-) may be used to indicate a range such as **a-z**.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
142 - **.** Matches any single character except a newline.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
143 - ***** The preceding item will be matched zero or more times.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
144 - **?** The preceding item is optional and matched at most once.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
145 - **+** The preceding item will be matched one or more times.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
146 - **^** has two meaning:
7
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
147 - matches the beginning of a line or string.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
148 - indicates negation in a character class. For example, [^...] matches every character except the ones inside brackets.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
149 - **$** matches the end of a line or string.
7
d64eace4f9f3 Uploaded
bgruening
parents: 6
diff changeset
150 - **\|** Separates alternate possibilities.
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
151
4
56e80527c482 Uploaded
bgruening
parents: 3
diff changeset
152 ]]>
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
153 </help>
14
7725ab6dab67 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents: 13
diff changeset
154 <expand macro="citations" />
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
155 </tool>