Mercurial > repos > devteam > fasta_nucleotide_changer
changeset 2:f81d4362b6c1 draft
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
author | devteam |
---|---|
date | Mon, 12 Oct 2015 10:18:10 -0400 |
parents | 2f868bfbe9de |
children | cc9a18dd41c9 |
files | fasta_nucleotide_changer.xml tool_dependencies.xml |
diffstat | 2 files changed, 31 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/fasta_nucleotide_changer.xml Tue Dec 03 12:36:13 2013 -0500 +++ b/fasta_nucleotide_changer.xml Mon Oct 12 10:18:10 2015 -0400 @@ -1,39 +1,37 @@ <tool id="cshl_fasta_nucleotides_changer" version="1.0.0" name="RNA/DNA" > - <description>converter</description> + <description>converter</description> <requirements> <requirement type="package" version="0.0.13">fastx_toolkit</requirement> </requirements> - <command>zcat -f '$input' | fasta_nucleotide_changer -$mode -v -o $output</command> - <inputs> - <param format="fasta" name="input" type="data" label="Library to convert" /> - - <param name="mode" type="select" label="Convert"> - <option value="d">RNA to DNA (U to T)</option> - <option value="r">DNA to RNA (T to U)</option> - </param> - </inputs> + <command> +<![CDATA[ +zcat -f < '$input' | fasta_nucleotide_changer -$mode -v -o '$output' +]]> + </command> + <inputs> + <param format="fasta" name="input" type="data" label="Library to convert" /> - <!-- - Functional tests with param value starting with - fail. - --> - <tests> - <test> - <param name="input" value="fasta_nuc_changer1.fasta" /> - <param name="mode" value="r" /> - <param name="output" file="fasta_nuc_change1.out" /> - </test> - <test> - <param name="input" value="fasta_nuc_changer2.fasta" /> - <param name="mode" value="d" /> - <param name="output" file="fasta_nuc_change2.out" /> - </test> - </tests> - - <outputs> - <data format="input" name="output" metadata_source="input" /> - </outputs> - -<help> + <param name="mode" type="select" label="Convert"> + <option value="d">RNA to DNA (U to T)</option> + <option value="r">DNA to RNA (T to U)</option> + </param> + </inputs> + <outputs> + <data format_source="input" name="output" metadata_source="input" /> + </outputs> + <tests> + <test> + <param name="input" value="fasta_nuc_changer1.fasta" /> + <param name="mode" value="r" /> + <output name="output" ftype="fasta" file="fasta_nuc_change1.out" /> + </test> + <test> + <param name="input" value="fasta_nuc_changer2.fasta" /> + <param name="mode" value="d" /> + <output name="output" ftype="fasta" file="fasta_nuc_change2.out" /> + </test> + </tests> + <help> **What it does** This tool converts RNA FASTA files to DNA (and vice-versa). @@ -70,6 +68,5 @@ This tool is based on `FASTX-toolkit`__ by Assaf Gordon. .. __: http://hannonlab.cshl.edu/fastx_toolkit/ - -</help> + </help> </tool>
--- a/tool_dependencies.xml Tue Dec 03 12:36:13 2013 -0500 +++ b/tool_dependencies.xml Mon Oct 12 10:18:10 2015 -0400 @@ -1,6 +1,6 @@ <?xml version="1.0"?> <tool_dependency> <package name="fastx_toolkit" version="0.0.13"> - <repository changeset_revision="ec66ae4c269b" name="package_fastx_toolkit_0_0_13" owner="devteam" toolshed="http://toolshed.g2.bx.psu.edu" /> + <repository changeset_revision="ec66ae4c269b" name="package_fastx_toolkit_0_0_13" owner="devteam" toolshed="https://toolshed.g2.bx.psu.edu" /> </package> </tool_dependency>