annotate lofreq_viterbi.xml @ 4:af7e416d8176 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
author iuc
date Mon, 15 Jun 2020 13:13:50 -0400
parents ecd80c7c3886
children aa35ee7f3ab2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
1 <tool id="lofreq_viterbi" name="Realign reads" version="@TOOL_VERSION@+galaxy0">
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
2 <description>with LoFreq viterbi</description>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
3 <macros>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
5 </macros>
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
6 <expand macro="requirements" />
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
8 @PREPARE_REF@
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
9 lofreq viterbi
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
10 --ref '$reference_fasta_fn'
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
11 ${adv_options.keepflags}
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
12 --defqual ${adv_options.bq2_handling.defqual}
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
13 --out tmp.bam '$reads' &&
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
14
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
15 samtools sort --no-PG -T "\${TMPDIR:-.}" -@ \${GALAXY_SLOTS:-1} -O BAM -o '$realigned' tmp.bam
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
16 ]]></command>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
17 <inputs>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
18 <param name="reads" type="data" format="bam" label="Reads to realign" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
19 <expand macro="reference_interface" />
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
20 <section name="adv_options" title="Advanced options" expanded="false">
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
21 <param argument="--keepflags" type="boolean" truevalue="--keepflags" falsevalue="" checked="false"
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
22 label="Keep MC, MD, NM, and A flags?"
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
23 help="Re-alignment resets the MC, MD, NM, and A flags by default. The values of these tags depend on the exact alignment. Use this option only if you know what you are doing." />
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
24 <conditional name="bq2_handling">
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
25 <param name="replace_bq2" type="select"
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
26 label="How to handle base qualities of 2?"
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
27 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.">
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
28 <option value="keep">Keep unchanged</option>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
29 <option value="dynamic">Adjust dynamically</option>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
30 <option value="fixed">Replace with fixed base quality</option>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
31 </param>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
32 <when value="keep">
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
33 <param name="defqual" type="hidden" value="2" />
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
34 </when>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
35 <when value="dynamic">
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
36 <param name="defqual" type="hidden" value="-1" />
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
37 </when>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
38 <when value="fixed">
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
39 <param argument="--defqual" name="defqual" type="integer" value="2" min="0"
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
40 label="Quality to assume for all bases with BQ2" />
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
41 </when>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
42 </conditional>
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
43 </section>
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
44 </inputs>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
45 <outputs>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
46 <data name="realigned" format="bam" label="${tool.name} on ${on_string}: Realigned reads" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
47 </outputs>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
48 <tests>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
49 <test>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
50 <param name="reads" ftype="bam" value="lofreq-in1.bam" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
51 <param name="ref_selector" value="history" />
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
52 <param name="ref_selector" value="history" />
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
53 <param name="ref" ftype="fasta" value="pBR322.fa" />
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
54 <output name="realigned" file="viterbi-out1.bam" ftype="bam" />
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
55 </test>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
56 <test>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
57 <param name="reads" ftype="bam" value="lofreq-in1.bam" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
58 <param name="ref_selector" value="history" />
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
59 <section name="adv_options">
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
60 <param name="keepflags" value="true" />
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
61 </section>
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
62 <param name="ref" ftype="fasta" value="pBR322.fa" />
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 1
diff changeset
63 <output name="realigned" file="viterbi-out2.bam" ftype="bam" />
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
64 </test>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
65 </tests>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
66 <help><![CDATA[
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
67 lofreq viterbi: Probabilistic realignment of mapped reads to correct mapping errors.
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
68
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
69 .. class:: Warning mark
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
70
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
71 Not recommended for non-Illumina data.
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
72
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
73 ]]></help>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
74 <expand macro="citations" />
1
ecd80c7c3886 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9e41ac63171c3e3a6fd2b4d018d0c60c9f1fbae1"
iuc
parents: 0
diff changeset
75 </tool>