comparison fileinfo.xml @ 0:aa82b2e54055 draft

planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit b36048cd608ede0ec6f6559648525c9350caae34-dirty
author wolma
date Sat, 11 Nov 2017 18:19:22 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:aa82b2e54055
1 <tool id="mimodd_info" name="MiModD File Information" version="@MIMODD_WRAPPER_VERSION@">
2 <description>provides summary reports for supported sequence data formats.</description>
3 <macros>
4 <import>macros.xml</import>
5 <xml name="test_with_formats" token_ifile="a.sam" token_oformat="text"
6 token_expectformat="txt">
7 <test>
8 <conditional name="input_selection">
9 <param name="source" value="history" />
10 <param name="ifile" value="@IFILE@" />
11 </conditional>
12 <param name="oformat" value="@OFORMAT@" />
13 <output name="ofile" ftype="@EXPECTFORMAT@">
14 <assert_contents>
15 <has_text text="chrI" />
16 <has_text text="chrII" />
17 <has_text text="chrIII" />
18 <has_text text="chrIV" />
19 <has_text text="chrV" />
20 <has_text text="chrX" />
21 </assert_contents>
22 </output>
23 </test>
24 </xml>
25 </macros>
26 <expand macro="requirements" />
27 <expand macro="stdio" />
28 <expand macro="version_command" />
29 <command><![CDATA[
30 mimodd info -o '$ofile' --verbose --oformat $oformat
31 #if str($input_selection.source) == "history":
32 '$input_selection.ifile'
33 #else:
34 '$input_selection.ifile.fields.path'
35 #end if
36 ]]></command>
37
38 <inputs>
39 <conditional name="input_selection">
40 <param name="source" type="select" label="Input is a">
41 <option value="history">Dataset in history</option>
42 <option value="cached">Genome on server</option>
43 </param>
44 <when value="history">
45 <param name="ifile" type="data" format="bam,sam,vcf,bcf,fasta"
46 label="input dataset" />
47 </when>
48 <when value="cached">
49 <param name="ifile" type="select" label="installed genome">
50 <options from_data_table="all_fasta" />
51 </param>
52 </when>
53 </conditional>
54 <param name="oformat" type="select" display="radio"
55 label="output format">
56 <option value="txt">text</option>
57 <option value="html">html</option>
58 </param>
59 </inputs>
60
61 <outputs>
62 <data name="ofile" format="txt" label="Sample Info on ${on_string}">
63 <change_format>
64 <when input="oformat" value="html" format="html"/>
65 </change_format>
66 <actions>
67 <conditional name="input_selection.source">
68 <when value="cached">
69 <action type="metadata" name="dbkey">
70 <option type="from_data_table" name="all_fasta" column="1" offset="0">
71 <filter type="param_value" ref="input_selection.ifile" column="0" />
72 </option>
73 </action>
74 </when>
75 </conditional>
76 </actions>
77 </data>
78 </outputs>
79
80 <tests>
81 <expand macro="test_with_formats" ifile="a.bam" />
82 <expand macro="test_with_formats" ifile="a.sam" />
83 <expand macro="test_with_formats" ifile="a.bcf" />
84 <expand macro="test_with_formats" ifile="a.vcf" />
85 <expand macro="test_with_formats" ifile="a.fa" />
86 <expand macro="test_with_formats" ifile="a.bam" oformat="html"
87 expectformat="html" />
88 </tests>
89
90 <help><![CDATA[
91 .. class:: infomark
92
93 **What it does**
94
95 The tool inspects the input datasets and generates a report summarizing its contents.
96
97 It autodetects and works with most file formats produced by MiModD, i.e., **SAM / BAM, vcf / bcf and fasta**, and produces a standardized report for all of them.
98
99 @HELP_FOOTER@
100 ]]></help>
101 <expand macro="citations" />
102 </tool>