comparison kma_map.xml @ 0:2595c27071c2 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/kma commit 43bbde4f8f8671284b2acb21dfd2657de4ba967f"
author iuc
date Sat, 15 Feb 2020 15:32:58 -0500
parents
children 95ab864b281a
comparison
equal deleted inserted replaced
-1:000000000000 0:2595c27071c2
1 <tool id="kma_map" name="Map with KMA" version="@TOOL_VERSION@+galaxy0">
2 <description></description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <requirements>
7 <requirement type="package" version="@TOOL_VERSION@">kma</requirement>
8 </requirements>
9 <version_command>kma -v</version_command>
10 <command detect_errors="exit_code">
11 <![CDATA[
12 kma
13 -t \${GALAXY_SLOTS:-1}
14 -t_db '${kma_index.fields.path}'
15 #if $single_paired.single_paired_selector == 'paired'
16 -ipe '${single_paired.forward_input}' '${single_paired.reverse_input}'
17 #elif $single_paired.single_paired_selector == "paired_collection":
18 -ipe '${single_paired.input_pair.forward}' '${single_paired.input_pair.reverse}'
19 #else:
20 -i '${single_paired.input_sequences}'
21 #end if
22 #if str($settings.advanced) == "advanced"
23 #if str($settings.kmer_size)
24 -k '${settings.kmer_size}'
25 #end if
26 #if str($settings.p_value)
27 -p '${settings.p_value}'
28 #end if
29 ${settings.decontaminate}
30 ${settings.dense}
31 ${settings.ref_fsa}
32 ${settings.matrix}
33 ${settings.all_best_mappings}
34 #if str($settings.minimum_phred_score)
35 -mp '${settings.minimum_phred_score}'
36 #end if
37 #if str($settings.cut_5_prime)
38 -5p '${settings.cut_5_prime}'
39 #end if
40 ${settings.only_count_kmers}
41 #if str($settings.min_id)
42 -ID '${settings.min_id}'
43 #end if
44 #if str($settings.base_call_depth)
45 -bcd '${settings.base_call_depth}'
46 #end if
47 #if str($settings.minimum_mapping_quality)
48 -mq '${settings.minimum_mapping_quality}'
49 #end if
50 #if str($settings.reward)
51 -reward '${settings.reward}'
52 #end if
53 #if str($settings.penalty)
54 -penalty '${settings.penalty}'
55 #end if
56 #if str($settings.gapopen)
57 -gapopen '${settings.gapopen}'
58 #end if
59 #if str($settings.gapextend)
60 -gapextend '${settings.gapextend}'
61 #end if
62 ${settings.force_end_to_end}
63 ${settings.set_cge_penalties_and_rewards}
64 #end if
65 -o output
66
67 #if str($settings.advanced) == "advanced" and $settings.matrix
68 && gunzip output.mat.gz
69 #end if
70 && gunzip output.frag.gz
71 ]]>
72 </command>
73 <inputs>
74 <conditional name="single_paired">
75 <param name="single_paired_selector" type="select" label="Single or paired reads" help="--paired">
76 <option value="paired_collection">Paired collection</option>
77 <option value="paired">Paired-end data</option>
78 <option selected="True" value="single">Single-end data</option>
79 </param>
80 <when value="paired_collection">
81 <param format="@INTYPES@" name="input_pair" type="data_collection" collection_type="paired" label="Collection of paired reads" help="FASTQ datasets" />
82 </when>
83 <when value="paired">
84 <param format="@INTYPES@" name="forward_input" type="data" label="Forward strand" help="FASTQ dataset"/>
85 <param format="@INTYPES@" name="reverse_input" type="data" label="Reverse strand" help="FASTQ dataset"/>
86 </when>
87 <when value="single">
88 <param format="@INTYPES@" label="Input sequences" name="input_sequences" type="data" help="FASTQ datasets"/>
89 </when>
90 </conditional>
91 <param name="kma_index" type="select">
92 <options from_data_table="kma_index">
93 <validator type="no_options" message="No KMA index available" />
94 </options>
95 </param>
96 <conditional name="settings">
97 <param name="advanced" type="select" label="Specify advanced parameters">
98 <option value="simple" selected="true">No, use program defaults</option>
99 <option value="advanced">Yes, see full parameter list.</option>
100 </param>
101 <when value="simple">
102 </when>
103 <when value="advanced">
104 <param name="kmer_size" type="integer" min="4" value="16" max="32" label="Kmer Size" />
105 <param name="p_value" type="float" min="0.0" value="0.05" max="1.0" label="p-value"/>
106 <param name="exhaustive_mode" type="boolean" truevalue="-ex_mode" falsevalue="" label="Exhaustive Mode" />
107 <param name="decontaminate" type="boolean" truevalue="-deCon" falsevalue="" label="Decontaminate" />
108 <param name="dense" type="boolean" truevalue="-dense" falsevalue="" label="Do not allow insertions in assembly" />
109 <param name="ref_fsa" type="boolean" truevalue="-ref_fsa" falsevalue="" label="Consensus sequence has 'n' instead of gaps" />
110 <param name="matrix" type="boolean" truevalue="-matrix" falsevalue="" label="Output assembly matrix" />
111 <param name="all_best_mappings" type="boolean" truevalue="-a" falsevalue="" label="Print all best mappings" />
112 <param name="minimum_phred_score" type="integer" min="0" value="20" max="60" label="Minimum phred score" />
113 <param name="cut_5_prime" type="integer" min="0" value="0" max="64" label="Cut a constant number of nucleotides from the 5 prime" />
114 <param name="only_count_kmers" type="boolean" truevalue="-Sparse" falsevalue="" label="Only count kmers" />
115 <param name="min_id" type="float" min="0.0" value="1.0" max="100.0" label="Minimum percent identity"/>
116 <param name="force_end_to_end" type="boolean" truevalue="-1t1" falsevalue="" label="Force end to end mapping" />
117 <param name="base_call_depth" type="integer" min="1" value="1" max="1000" label="Minimum depth at base" />
118 <param name="minimum_mapping_quality" type="integer" min="0" value="0" max="100" label="Minimum mapping quality" />
119 <param name="reward" type="integer" min="1" value="1" max="100" label="Score for match" />
120 <param name="penalty" type="integer" min="-100" value="-2" max="0" label="Penalty for mismatch" />
121 <param name="gapopen" type="integer" min="-100" value="-3" max="0" label="Penalty for gap opening" />
122 <param name="gapextend" type="integer" min="-100" value="-1" max="0" label="Penalty for gap extension" />
123 <param name="pairing_reward" type="integer" min="1" value="7" max="100" label="Reward for pairing reads" />
124 <param name="set_cge_penalties_and_rewards" type="boolean" truevalue="-cge" falsevalue="" label="Set CGE penalties and rewards" />
125 </when>
126 </conditional>
127 </inputs>
128 <outputs>
129 <data name="result_overview" label="Result overview" format="tabular" from_work_dir="output.res" />
130 <data name="consensus_alignment" label="Consensus alignment" format="fasta" from_work_dir="output.aln" />
131 <data name="consensus_sequences" label="Consensus sequences" format="fasta" from_work_dir="output.fsa" />
132 <data name="read_mapping" label="Read mapping info" format="tabular" from_work_dir="output.frag" />
133 <data name="assembly_matrix" label="Assembly matrix" format="txt" from_work_dir="output.mat">
134 <filter>settings['matrix']</filter>
135 </data>
136 </outputs>
137 <tests>
138 <test>
139 <param name="single_paired_selector" value="single"/>
140 <param name="input_sequences" value="ERR884056_ecoli_b0842.mapped_R1.fastq" ftype="fastq"/>
141 <param name="advanced" value="advanced"/>
142 <param name="kmer_size" value="8"/>
143 <param name="kma_index" value="test_index"/>
144 <output name="result_overview" file="ERR884056.res" ftype="tabular"/>
145 <output name="consensus_alignment" file="ERR884056.aln" ftype="fasta"/>
146 <output name="consensus_sequences" file="ERR884056.fsa" ftype="fasta"/>
147 <output name="read_mapping" file="ERR884056.frag" ftype="tabular"/>
148 </test>
149 <test>
150 <param name="single_paired_selector" value="single"/>
151 <param name="input_sequences" value="ERR884056_ecoli_b0842.mapped_R1.fastq" ftype="fastq"/>
152 <param name="advanced" value="advanced"/>
153 <param name="kmer_size" value="8"/>
154 <param name="matrix" value="true"/>
155 <param name="kma_index" value="test_index"/>
156 <output name="assembly_matrix" file="ERR884056.mat" ftype="txt"/>
157 </test>
158 </tests>
159 <help>
160 <![CDATA[
161
162 When the mapping is done KMA will produce the following files:
163
164 *.res A result overview giving the most common statistics for each mapped template.
165 *.fsa The consensus sequences drawn from the alignments.
166 *.aln The consensus alignment of the reads against their template.
167 *.frag Mapping information on each mapped read, columns are:
168 1. read
169 2. number of equally well mapping templates
170 3. mapping score
171 4. start position
172 5. end position (w.r.t. template)
173 6. the choosen template.
174 *.mat Base counts on each position in each template, (only if “-matrix” is enabled)
175
176 ]]>
177 </help>
178 <expand macro="citations" />
179 </tool>