comparison lofreq_call.xml @ 0:b37a6b94e9fe draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit b8b08e76ebdca1fceef0da1b377eb4b6d45b0847-dirty"
author dave
date Wed, 27 Nov 2019 15:25:33 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b37a6b94e9fe
1 <tool id="lofreq_call" name="Call variants" version="@WRAPPER_VERSION@0">
2 <description>with LoFreq</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="exit_code"><![CDATA[
8 ## prepare reference genome and mapped reads input
9 @PREPARE_REF@
10 ln -s '$reads' reads.bam &&
11 ln -s -f '${reads.metadata.bam_index}' reads.bam.bai &&
12
13 ## call variants with lofreq
14
15 ## make lofreq stick to tool contract by
16 ## generating tmp output inside job working dir
17 mkdir pp-tmp &&
18 export TMPDIR=pp-tmp &&
19
20 lofreq call-parallel
21
22 --ref '$reference_fasta_fn' --out variants.vcf --pp-threads \${GALAXY_SLOTS:-1}
23
24 #if $advanced_options.option_selector == 'yes'
25 #if $advanced_options.regions.bed
26 --bed '$advanced_options.regions.bed'
27 #end if
28 #if $advanced_options.source_qual.ign_vcf
29 --ign-vcf '$advanced_options.source_qual.ign_vcf'
30 #end if
31 #if $advanced_options.regions.region
32 --region $advanced_options.regions.region
33 #end if
34 #if $advanced_options.pval.bonf
35 --bonf $advanced_options.pval.bonf
36 #else
37 --bonf dynamic
38 #end if
39 --min-bq $advanced_options.bc_quals.min_bq
40 --min-alt-bq $advanced_options.bc_quals.min_alt_bq
41 --def-alt-bq $advanced_options.bc_quals.def_alt_bq
42 --min-jq $advanced_options.bc_quals.min_jq
43 --min-alt-jq $advanced_options.bc_quals.min_alt_jq
44 --def-alt-jq $advanced_options.bc_quals.def_alt_jq
45 --min-mq $advanced_options.map_quals.min_mq
46 --max-mq $advanced_options.map_quals.max_mq
47 --def-nm-q $advanced_options.source_qual.def_nm_q
48 --sig $advanced_options.pval.sig
49 --min-cov $advanced_options.misc.min_cov
50 --max-depth $advanced_options.misc.max_depth
51 $advanced_options.align_quals.no_baq
52 $advanced_options.align_quals.no_idaq
53 $advanced_options.align_quals.del_baq
54 $advanced_options.align_quals.no_ext_baq
55 $advanced_options.map_quals.no_mq
56 $advanced_options.indels.call_indels
57 $advanced_options.indels.only_indels
58 $advanced_options.source_qual.src_qual
59 $advanced_options.misc.use_orphan
60 $advanced_options.misc.plp_summary_only
61 $advanced_options.misc.no_default_filter
62 #end if
63
64 reads.bam 2>&1
65
66 ## in case of errors add the log files produced
67 ## by the parallel workers to stderr
68 || (tool_exit_code=\$? && cat pp-tmp/lofreq2_call_parallel*/*.log 1>&2 && exit \$tool_exit_code)
69 ]]></command>
70 <inputs>
71 <param type="data" name="reads" format="bam" label="Input reads in BAM format" />
72 <expand macro="reference_interface" />
73 <conditional name="advanced_options">
74 <param name="option_selector" type="select" label="Advanced options">
75 <option value="no" selected="true">Use defaults</option>
76 <option value="yes">Specify parameters</option>
77 </param>
78 <when value="no" />
79 <when value="yes">
80 <section name="regions" title="Regions" expanded="false">
81 <param argument="--bed" type="data" format="bed" optional="true" label="BED file with regions to examine" />
82 <param argument="--region" type="text" label="Limit calls to this region" />
83 </section>
84 <section name="bc_quals" title="Base-calling quality" expanded="false">
85 <param name="min_bq" argument="--min-bq" type="integer" value="6" label="Mimimum baseQ" />
86 <param name="min_alt_bq" argument="--min-alt-bq" type="integer" value="6" label="Mimimum baseQ for alternate bases" />
87 <param name="def_alt_bq" argument="--def-alt-bq" type="integer" value="0" label="Overwrite baseQs of alternate bases with this value" />
88 <param name="min_jq" argument="--min-jq" type="integer" value="0" label="Minimum joinedQ" />
89 <param name="min_alt_jq" argument="--min-alt-jq" type="integer" value="0" label="Minimum joinedQ for alternate bases" />
90 <param name="def_alt_jq" argument="--def-alt-jq" type="integer" value="0" label="Overwrite joinedQs of alternate bases with this value" />
91 </section>
92 <section name="align_quals" title="Base alignment quality" expanded="false">
93 <param name="no_baq" argument="--no-baq" type="boolean" truevalue="--no-baq" falsevalue="" label="Disable use of base-alignment quality" />
94 <param name="no_idaq" argument="--no-idaq" type="boolean" truevalue="--no-idaq" falsevalue="" label="Don't use IDAQ values" />
95 <param name="del_baq" argument="--del-baq" type="boolean" truevalue="--del-baq" falsevalue="" label="Delete pre-existing BAQ values" help="Computes BAQ values regardless of their presence in the input BAM" />
96 <param name="no_ext_baq" argument="--no-ext-baq" type="boolean" truevalue="--no-ext-baq" falsevalue="" label="Do not use external BAQ" help="Use 'normal' BAQ (samtools default) instead of extended BAQ (both computed on the fly if not already present in lb tag)" />
97 </section>
98 <section name="map_quals" title="Mapping quality" expanded="false">
99 <param name="min_mq" argument="--min-mq" type="integer" value="0" label="Minimum mapping quality" />
100 <param name="max_mq" argument="--max-mq" type="integer" value="255" label="Maximum mapping quality" />
101 <param name="no_mq" argument="--no-mq" type="boolean" truevalue="--src-qua" falsevalue="" label="Don't merge mapping quality" />
102 </section>
103 <section name="indels" title="Indels" expanded="false">
104 <param name="call_indels" argument="--call-indels" type="boolean" truevalue="--call-indels" falsevalue="" label="Enable indel calls" help="Note: This adds a preprocessing step to include indel alignment qualities" />
105 <param name="only_indels" argument="--only-indels" type="boolean" truevalue="--only-indels" falsevalue="" label="Only call indels; no SNVs" />
106 </section>
107 <section name="source_qual" title="Source quality" expanded="false">
108 <param name="ign_vcf" argument="--ign-vcf" type="data" format="vcf" optional="true" label="Ignore variants in this vcf file for source quality computation. Multiple files can be given separated by commas" />
109 <param name="src_qual" argument="--src-qual" type="boolean" truevalue="--src-qua" falsevalue="" label="Enable computation of source quality" />
110 <param name="def_nm_q" argument="--def-nm-q" type="integer" value="-1" label="Replace non-match base qualities with this value" />
111 </section>
112 <section name="pval" title="P-values" expanded="false">
113 <param argument="--sig" type="float" value="0.01" label="P-Value cutoff" />
114 <param argument="--bonf" type="integer" optional="true" label="Bonferroni factor" help="Leave unset to increase the factor per performed test or specify a factor here" />
115 </section>
116 <section name="misc" title="Other options" expanded="false">
117 <param name="min_cov" argument="--min-cov" type="integer" value="1" label="Test only positions having at least this coverage" />
118 <param name="max_depth" argument="--max-depth" type="integer" value="1000000" label="Cap coverage at this depth" />
119 <param name="use_orphan" argument="--use-orphan" type="boolean" truevalue="--use-orphan" falsevalue="" label="Count anomalous read pairs" />
120 <param name="plp_summary_only" argument="--plp-summary-only" type="boolean" truevalue="--plp-summary-only" falsevalue="" label="No variant calling, just output pileup summary per column" />
121 <param name="no_default_filter" argument="--no-default-filter" type="boolean" truevalue="--no-default-filter" falsevalue="" label="Don't run default 'lofreq filter' automatically after calling variants" />
122 </section>
123 </when>
124 </conditional>
125 </inputs>
126 <outputs>
127 <data name="variants" from_work_dir="variants.vcf" format="vcf" />
128 </outputs>
129 <tests>
130 <test>
131 <param name="reads" ftype="bam" value="lofreq-in1.bam" />
132 <param name="ref_selector" value="history" />
133 <param name="ref" ftype="fasta" value="pBR322.fa" />
134 <output name="variants" file="call-out1.vcf" lines_diff="4" />
135 </test>
136 </tests>
137 <help><![CDATA[
138 lofreq call: call variants from BAM file
139
140 Usage: lofreq call [options] in.bam
141
142 Options:
143
144 - Reference:
145 -f | --ref FILE Indexed reference fasta file (gzip supported) [null]
146
147 - Output:
148 -o | --out FILE Vcf output file [- = stdout]
149
150 - Regions:
151 -r | --region STR Limit calls to this region (chrom:start-end) [null]
152 -l | --bed FILE List of positions (chr pos) or regions (BED) [null]
153
154 - Base-call quality:
155 -q | --min-bq INT Skip any base with baseQ smaller than INT [6]
156 -Q | --min-alt-bq INT Skip alternate bases with baseQ smaller than INT [6]
157 -R | --def-alt-bq INT Overwrite baseQs of alternate bases (that passed bq filter) with this value (-1: use median ref-bq; 0: keep) [0]
158 -j | --min-jq INT Skip any base with joinedQ smaller than INT [0]
159 -J | --min-alt-jq INT Skip alternate bases with joinedQ smaller than INT [0]
160 -K | --def-alt-jq INT Overwrite joinedQs of alternate bases (that passed jq filter) with this value (-1: use median ref-bq; 0: keep) [0]
161
162 - Base-alignment (BAQ) and indel-aligment (IDAQ) qualities:
163 -B | --no-baq Disable use of base-alignment quality (BAQ)
164 -A | --no-idaq Don't use IDAQ values (NOT recommended under ANY circumstances other than debugging)
165 -D | --del-baq Delete pre-existing BAQ values, i.e. compute even if already present in BAM
166 -e | --no-ext-baq Use 'normal' BAQ (samtools default) instead of extended BAQ (both computed on the fly if not already present in lb tag)
167
168 - Mapping quality:
169 -m | --min-mq INT Skip reads with mapping quality smaller than INT [0]
170 -M | --max-mq INT Cap mapping quality at INT [255]
171 -N | --no-mq Don't merge mapping quality in LoFreq's model
172
173 - Indels:
174 --call-indels Enable indel calls (note: preprocess your file to include indel alignment qualities!)
175 --only-indels Only call indels; no SNVs
176
177 - Source quality:
178 -s | --src-qual Enable computation of source quality
179 -S | --ign-vcf FILE Ignore variants in this vcf file for source quality computation. Multiple files can be given separated by commas
180 -T | --def-nm-q INT If >= 0, then replace non-match base qualities with this default value [-1]
181
182 - P-values:
183 -a | --sig P-Value cutoff / significance level [0.010000]
184 -b | --bonf Bonferroni factor. 'dynamic' (increase per actually performed test) or INT ['dynamic']
185
186 - Misc.:
187 -C | --min-cov INT Test only positions having at least this coverage [1]
188 (note: without --no-default-filter default filters (incl. coverage) kick in after predictions are done)
189 -d | --max-depth INT Cap coverage at this depth [1000000]
190 --illumina-1.3 Assume the quality is Illumina-1.3-1.7/ASCII+64 encoded
191 --use-orphan Count anomalous read pairs (i.e. where mate is not aligned properly)
192 --plp-summary-only No variant calling. Just output pileup summary per column
193 --no-default-filter Don't run default 'lofreq filter' automatically after calling variants
194 --force-overwrite Overwrite any existing output
195 --verbose Be verbose
196 --debug Enable debugging
197
198 ]]></help>
199 <expand macro="citations" />
200 </tool>