|
0
|
1 <tool id="RemovingNonAsciicharsfromtextfile" name="RemovingNonAsciicharsfromtextfile" version="0.01">
|
|
|
2 <description>Removing Non-Ascii chars from text file</description>
|
|
|
3
|
|
|
4 <command interpreter="python">
|
|
|
5
|
|
|
6 RemovingNonAsciicharsfromtextfile.py --script_path "$runMe" --interpreter "bash"
|
|
|
7 --tool_name "RemovingNonAsciicharsfromtextfile" --input_tab "$input1" --output_dir "./" --output_tab "$tab_file"
|
|
|
8 </command>
|
|
|
9 <inputs>
|
|
|
10 <param name="input1" type="data" format="interval,tabular,txt" label="Select a suitable input file from your history"/>
|
|
|
11 <param name="job_name" type="text" label="Supply a name for the outputs to remind you what they contain" value="RemovingNonAsciicharsfromtextfile"/>
|
|
|
12
|
|
|
13 </inputs>
|
|
|
14 <outputs>
|
|
|
15 <data format="txt" name="tab_file" label="${job_name}"/>
|
|
|
16
|
|
|
17 </outputs>
|
|
|
18 <configfiles>
|
|
|
19 <configfile name="runMe">
|
|
|
20 #!/bin/bash
|
|
|
21 INF=\$1
|
|
|
22 OUTF=\$2
|
|
|
23 perl -pe's/[[:^ascii:]]//g' < \$INF > \$OUTF
|
|
|
24 </configfile>
|
|
|
25 </configfiles>
|
|
|
26
|
|
|
27
|
|
|
28 <tests>
|
|
|
29 <test>
|
|
|
30 <param name="input1" value="RemovingNonAsciicharsfromtextfile_test1_input.xls" ftype="interval,tabular,txt"/>
|
|
|
31 <param name="job_name" value="test1"/>
|
|
|
32 <param name="runMe" value="$runMe"/>
|
|
|
33 <output name="tab_file" file="RemovingNonAsciicharsfromtextfile_test1_output.xls" ftype="txt"/>
|
|
|
34 </test>
|
|
|
35 </tests>
|
|
|
36
|
|
|
37
|
|
|
38 <help>
|
|
|
39
|
|
|
40
|
|
|
41 **What it Does**
|
|
|
42
|
|
|
43 Removing Non-Ascii chars from text file
|
|
|
44
|
|
|
45 **Script**
|
|
|
46 Pressing execute will run the following code over your input file and generate some outputs in your history::
|
|
|
47
|
|
|
48
|
|
|
49 #!/bin/bash
|
|
|
50 INF=\$1
|
|
|
51 OUTF=\$2
|
|
|
52 perl -pe's/[[:^ascii:]]//g' < \$INF > \$OUTF
|
|
|
53
|
|
|
54 **Attribution**
|
|
|
55 This Galaxy tool was created by pela@centrum.cz at 26/04/2018 16:33:35
|
|
|
56 using the Galaxy Tool Factory.
|
|
|
57
|
|
|
58 See https://bitbucket.org/fubar/galaxytoolfactory for details of that project
|
|
|
59 Please cite: Creating re-usable tools from scripts: The Galaxy Tool Factory. Ross Lazarus; Antony Kaspi; Mark Ziemann; The Galaxy Team.
|
|
|
60 Bioinformatics 2012; doi: 10.1093/bioinformatics/bts573
|
|
|
61
|
|
|
62
|
|
|
63 </help>
|
|
|
64 <citations>
|
|
|
65
|
|
|
66 <citation type="doi">10.1093/bioinformatics/bts573</citation>
|
|
|
67 </citations>
|
|
|
68 </tool>
|