Mercurial > repos > iuc > lofreq_viterbi
comparison lofreq_viterbi.xml @ 1:ecd80c7c3886 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
author | iuc |
---|---|
date | Fri, 31 Jan 2020 06:17:30 -0500 |
parents | 33a416e1659e |
children | af7e416d8176 |
comparison
equal
deleted
inserted
replaced
0:33a416e1659e | 1:ecd80c7c3886 |
---|---|
1 <tool id="lofreq_viterbi" name="Realign reads" version="@WRAPPER_VERSION@0" python_template_version="3.5"> | 1 <tool id="lofreq_viterbi" name="Realign reads" version="@TOOL_VERSION@+galaxy1"> |
2 <description>with LoFreq viterbi</description> | 2 <description>with LoFreq viterbi</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements"> | 6 <expand macro="requirements"> |
7 <requirement type="package" version="1.9">samtools</requirement> | 7 <requirement type="package" version="1.9">samtools</requirement> |
8 </expand> | 8 </expand> |
9 <command detect_errors="exit_code"><![CDATA[ | 9 <command detect_errors="exit_code"><![CDATA[ |
10 @PREPARE_REF@ | 10 @PREPARE_REF@ |
11 lofreq viterbi --ref '$reference_fasta_fn' --out - $keepflags --defqual $defqual '$reads' | samtools sort - -O BAM -o '$realigned' | 11 lofreq viterbi |
12 --ref '$reference_fasta_fn' | |
13 ${adv_options.delflags} | |
14 --defqual ${adv_options.bq2_handling.defqual} | |
15 --out tmp.bam '$reads' && | |
16 | |
17 samtools sort -T "\${TMPDIR:-.}" -@ \${GALAXY_SLOTS:-1} -O BAM -o '$realigned' tmp.bam | |
12 ]]></command> | 18 ]]></command> |
13 <inputs> | 19 <inputs> |
14 <param name="reads" type="data" format="bam" label="Reads to realign" /> | 20 <param name="reads" type="data" format="bam" label="Reads to realign" /> |
15 <expand macro="reference_interface" /> | 21 <expand macro="reference_interface" /> |
16 <param argument="--keepflags" type="boolean" truevalue="--keepflags" label="Don't delete flags MC, MD, NM, and A" help="These flags are all prone to changing during realignment" /> | 22 <section name="adv_options" title="Advanced options" expanded="false"> |
17 <param argument="--defqual" type="integer" value="-1" label="Quality to assume for all bases with BQ2" /> | 23 <param argument="--keepflags" name="delflags" type="boolean" truevalue="" falsevalue="--keepflags" checked="true" |
24 label="Delete flags MC, MD, NM, and A?" | |
25 help="These flags are all prone to getting invalidated during realignment. Keep them only if you know what you are doing." /> | |
26 <conditional name="bq2_handling"> | |
27 <param name="replace_bq2" type="select" | |
28 label="How to handle base qualities of 2?" | |
29 help="In sequenced reads obtained with Illumina sequencing pipelines before version 1.8, base quality 2 is special in that it serves as a general indicator of low quality of the corresponding bases. For such reads, the tool can make an optimistic guess of the real quality of such bases by replacing base qualities of 2 with the median of all other base qualities observed in the read. Alternatively, you can provide a fixed replacement value. For recently obtained sequencing data, just keep BQ2 values unchanged (the default) since they have no special meaning."> | |
30 <option value="keep">Keep unchanged</option> | |
31 <option value="dynamic">Adjust dynamically</option> | |
32 <option value="fixed">Replace with fixed base quality</option> | |
33 </param> | |
34 <when value="keep"> | |
35 <param name="defqual" type="hidden" value="2" /> | |
36 </when> | |
37 <when value="dynamic"> | |
38 <param name="defqual" type="hidden" value="-1" /> | |
39 </when> | |
40 <when value="fixed"> | |
41 <param argument="--defqual" name="defqual" type="integer" value="2" min="0" | |
42 label="Quality to assume for all bases with BQ2" /> | |
43 </when> | |
44 </conditional> | |
45 </section> | |
18 </inputs> | 46 </inputs> |
19 <outputs> | 47 <outputs> |
20 <data name="realigned" format="bam" label="${tool.name} on ${on_string}: Realigned reads" /> | 48 <data name="realigned" format="bam" label="${tool.name} on ${on_string}: Realigned reads" /> |
21 </outputs> | 49 </outputs> |
22 <tests> | 50 <tests> |
27 <output name="realigned" file="viterbi-out1.bam" /> | 55 <output name="realigned" file="viterbi-out1.bam" /> |
28 </test> | 56 </test> |
29 <test> | 57 <test> |
30 <param name="reads" ftype="bam" value="lofreq-in1.bam" /> | 58 <param name="reads" ftype="bam" value="lofreq-in1.bam" /> |
31 <param name="ref_selector" value="history" /> | 59 <param name="ref_selector" value="history" /> |
32 <param name="keepflags" value="true" /> | 60 <section name="adv_options"> |
61 <param name="delflags" value="false" /> | |
62 </section> | |
33 <param name="ref" ftype="fasta" value="pBR322.fa" /> | 63 <param name="ref" ftype="fasta" value="pBR322.fa" /> |
34 <output name="realigned" file="viterbi-out2.bam" /> | 64 <output name="realigned" file="viterbi-out2.bam" /> |
35 </test> | 65 </test> |
36 </tests> | 66 </tests> |
37 <help><![CDATA[ | 67 <help><![CDATA[ |
38 Usage: lofreq viterbi [options] in.bam | 68 lofreq viterbi: Probabilistic realignment of mapped reads to correct mapping errors. |
39 | 69 |
40 Options: | 70 .. class:: Warning mark |
41 -f | --ref FILE Indexed reference fasta file [null] | |
42 -k | --keepflags Don't delete flags MC, MD, NM and A, which are all prone to change during realignment. | |
43 -q | --defqual INT Assume INT as quality for all bases with BQ2. Default (=-1) is to use median quality of bases in read. | |
44 -o | --out FILE Output BAM file [- = stdout = default] | |
45 --verbose Be verbose | |
46 | 71 |
47 NOTE: Output BAM file will (likely) be unsorted (use samtools sort, e.g. lofreq viterbi ... | samtools sort -') | 72 Not recommended for non-Illumina data. |
48 | 73 |
49 ]]></help> | 74 ]]></help> |
50 <expand macro="citations" /> | 75 <expand macro="citations" /> |
51 </tool> | 76 </tool> |