Mercurial > repos > padr > remove_non_ascii_chars
view RemovingNonAsciicharsfromtextfile/RemovingNonAsciicharsfromtextfile.xml @ 0:33f04fc1f109 draft default tip
Uploaded
| author | padr |
|---|---|
| date | Thu, 26 Apr 2018 10:57:25 -0400 |
| parents | |
| children |
line wrap: on
line source
<tool id="RemovingNonAsciicharsfromtextfile" name="RemovingNonAsciicharsfromtextfile" version="0.01"> <description>Removing Non-Ascii chars from text file</description> <command interpreter="python"> RemovingNonAsciicharsfromtextfile.py --script_path "$runMe" --interpreter "bash" --tool_name "RemovingNonAsciicharsfromtextfile" --input_tab "$input1" --output_dir "./" --output_tab "$tab_file" </command> <inputs> <param name="input1" type="data" format="interval,tabular,txt" label="Select a suitable input file from your history"/> <param name="job_name" type="text" label="Supply a name for the outputs to remind you what they contain" value="RemovingNonAsciicharsfromtextfile"/> </inputs> <outputs> <data format="txt" name="tab_file" label="${job_name}"/> </outputs> <configfiles> <configfile name="runMe"> #!/bin/bash INF=\$1 OUTF=\$2 perl -pe's/[[:^ascii:]]//g' < \$INF > \$OUTF </configfile> </configfiles> <tests> <test> <param name="input1" value="RemovingNonAsciicharsfromtextfile_test1_input.xls" ftype="interval,tabular,txt"/> <param name="job_name" value="test1"/> <param name="runMe" value="$runMe"/> <output name="tab_file" file="RemovingNonAsciicharsfromtextfile_test1_output.xls" ftype="txt"/> </test> </tests> <help> **What it Does** Removing Non-Ascii chars from text file **Script** Pressing execute will run the following code over your input file and generate some outputs in your history:: #!/bin/bash INF=\$1 OUTF=\$2 perl -pe's/[[:^ascii:]]//g' < \$INF > \$OUTF **Attribution** This Galaxy tool was created by pela@centrum.cz at 26/04/2018 16:33:35 using the Galaxy Tool Factory. See https://bitbucket.org/fubar/galaxytoolfactory for details of that project Please cite: Creating re-usable tools from scripts: The Galaxy Tool Factory. Ross Lazarus; Antony Kaspi; Mark Ziemann; The Galaxy Team. Bioinformatics 2012; doi: 10.1093/bioinformatics/bts573 </help> <citations> <citation type="doi">10.1093/bioinformatics/bts573</citation> </citations> </tool>
