comparison export_fasta.xml @ 0:3c3c359d9b85 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 7c0ecbffdb5e993f5af7e3b52c424c2761fb91d3"
author iuc
date Mon, 04 Apr 2022 10:22:24 +0000
parents
children e10b5eebd415
comparison
equal deleted inserted replaced
-1:000000000000 0:3c3c359d9b85
1 <tool id="ampvis2_export_fasta" name="ampvis2 export fasta" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT">
2 <description></description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="header"/>
7 <command detect_errors="exit_code"><![CDATA[
8 Rscript '$rscript'
9 ]]></command>
10 <configfiles>
11 <configfile name="rscript"><![CDATA[
12 library(ampvis2, quietly = TRUE)
13 data <- readRDS("$data")
14 amp_export_fasta(data, filename = "$output", tax = $tax)
15 ]]></configfile>
16 </configfiles>
17 <inputs>
18 <expand macro="rds_input_macro"/>
19 <param argument="tax" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" help="Add taxonomic strings to the output"/>
20 </inputs>
21 <outputs>
22 <data name="output" format="fasta"/>
23 </outputs>
24 <tests>
25 <!-- defaults -->
26 <test expect_num_outputs="1">
27 <param name="data" value="AalborgWWTPs-complete.rds" ftype="ampvis2"/>
28 <output name="output" value="AalborgWWTPs.fa" ftype="fasta"/>
29 </test>
30 <!-- tax -->
31 <test expect_num_outputs="1">
32 <param name="data" value="AalborgWWTPs-complete.rds" ftype="ampvis2"/>
33 <param name="tax" value="true"/>
34 <output name="output" ftype="fasta">
35 <assert_contents>
36 <has_text text=">OTU_2397; k__Bacteria; p__Chloroflexi; c__Anaerolineae; o__Anaerolineales; f__Anaerolineaceae; g__uncultured; s__"/>
37 <has_size size="106282"/>
38 </assert_contents>
39 </output>
40 </test>
41 </tests>
42 <help><![CDATA[
43 What it does
44 ============
45
46 Export sequences from an ampvis2 object and optionally add taxonomy to the fasta header lines.
47
48 The Galaxy tool calls the `amp_export_fasta
49 <https://madsalbertsen.github.io/ampvis2/reference/amp_export_fasta.html>`_ function
50 of the ampvis2 package.
51
52 Input
53 =====
54
55 @HELP_RDS_INPUT@
56
57 In order to work the ampvis2 rds data set needs to contain sequence information.
58
59 Output
60 ======
61
62 The sequences contained in the input as fasta.
63
64 ]]></help>
65 <expand macro="citations"/>
66 </tool>