annotate samtools_calmd.xml @ 1:c61c0d198e4a draft

Uploaded
author devteam
date Mon, 29 Sep 2014 11:38:42 -0400
parents 39472bc02d8d
children 787d6c86c6ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
1 <tool id="samtools_calmd" name="Recalculate" version="1.0.0">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
2 <description>MD/NM tags and '=' bases</description>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
3 <requirements>
1
c61c0d198e4a Uploaded
devteam
parents: 0
diff changeset
4 <requirement type="package" version="1.1">samtools</requirement>
0
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
5 </requirements>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
6 <version_command>samtools --version | head -n 1 | awk '{ print $2 }'</version_command>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
7 <command><![CDATA[
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
8 #if str( $reference_source.reference_source_selector ) == "history":
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
9 #set ref_fa = 'ref.fa'
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
10 ln -s "${reference_source.ref_fasta}" ref.fa && samtools faidx ref.fa &&
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
11 #else:
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
12 #set ref_fa = str( $reference_source.ref_fasta.fields.path )
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
13 #end if
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
14 samtools calmd
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
15 #if str($option_set.option_sets) == 'advanced':
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
16 $option_set.change_identical $option_set.modify_quality $option_set.compute_cap $option_set.extended_baq
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
17 #end if
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
18 -b "$input_bam" "$ref_fa" > "$calmd_output" ]]>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
19 </command>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
20 <stdio>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
21 <exit_code range="1:" level="fatal" description="Error" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
22 </stdio>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
23 <inputs>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
24 <param format="bam" name="input_bam" type="data" label="BAM file to recalculate" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
25 <conditional name="reference_source">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
26 <param name="reference_source_selector" type="select" label="Choose the source for the reference FASTA">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
27 <option value="cached">Locally cached</option>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
28 <option value="history">History</option>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
29 </param>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
30 <when value="cached">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
31 <param name="ref_fasta" type="select" label="Using reference genome">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
32 <options from_data_table="fasta_indexes">
1
c61c0d198e4a Uploaded
devteam
parents: 0
diff changeset
33 <filter type="data_meta" column="0" key="dbkey" ref="input_bam" />
0
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
34 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
35 </options>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
36 </param>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
37 </when>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
38 <when value="history">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
39 <param name="ref_fasta" type="data" format="fasta" label="Using reference file" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
40 </when>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
41 </conditional>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
42 <conditional name="option_set">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
43 <param name="option_sets" type="select" label="Options">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
44 <option value="default">Use defaults</option>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
45 <option value="advanced">Advanced options</option>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
46 </param>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
47 <when value="default" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
48 <when value="advanced">
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
49 <param name="change_identical" type="boolean" truevalue="-e" falsevalue="" checked="False" label="Change identical bases to '='" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
50 <param name="modify_quality" type="boolean" truevalue="-A" falsevalue="" checked="False" label="Modify the quality string" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
51 <param name="compute_cap" type="boolean" truevalue="-r" falsevalue="" checked="False" label="Compute BQ or cap baseQ by BAQ" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
52 <param name="extended_baq" type="boolean" truevalue="-E" falsevalue="" checked="False" label="Extended BAQ for better sensitivity" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
53 </when>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
54 </conditional>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
55 </inputs>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
56 <outputs>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
57 <data format="bam" name="calmd_output" label="${tool.name} on ${on_string}" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
58 </outputs>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
59 <tests>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
60 <test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
61 <param name="option_sets" value="default" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
62 <param name="input_bam" value="phiX.bam" dbkey="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
63 <param name="reference_source|reference_source_selector" value="history" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
64 <param name="ref_fasta" value="phiX.fasta" dbkey="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
65 <output name="calmd_output" file="samtools_calmd_out_1.bam" ftype="bam" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
66 </test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
67 <!-- Using the test-data-repo's phiX.fa should produce the same output. -->
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
68 <test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
69 <param name="option_sets" value="default" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
70 <param name="input_bam" value="phiX.bam" dbkey="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
71 <param name="reference_source|reference_source_selector" value="cached" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
72 <param name="ref_fasta" value="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
73 <output name="calmd_output" file="samtools_calmd_out_1.bam" ftype="bam" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
74 </test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
75 <test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
76 <param name="option_sets" value="advanced" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
77 <param name="change_identical" value="true" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
78 <param name="extended_baq" value="true" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
79 <param name="input_bam" value="phiX.bam" dbkey="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
80 <param name="reference_source|reference_source_selector" value="history" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
81 <param name="ref_fasta" value="phiX.fasta" dbkey="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
82 <output name="calmd_output" file="samtools_calmd_out_2.bam" ftype="bam" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
83 </test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
84 <!-- Using the test-data-repo's phiX.fa should, as before, produce the same output. -->
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
85 <test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
86 <param name="option_sets" value="advanced" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
87 <param name="change_identical" value="true" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
88 <param name="extended_baq" value="true" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
89 <param name="input_bam" value="phiX.bam" dbkey="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
90 <param name="reference_source|reference_source_selector" value="cached" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
91 <param name="ref_fasta" value="phiX" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
92 <output name="calmd_output" file="samtools_calmd_out_2.bam" ftype="bam" />
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
93 </test>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
94 </tests>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
95 <help>
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
96 **What it does**
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
97
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
98 Generate the MD tag. If the MD tag is already present, this command will give a warning if the MD tag generated is different from the existing tag. Outputs a BAM file.
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
99
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
100 ------
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
101
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
102 **Citation**
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
103
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
104 For the underlying tool, please cite `Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R; 1000 Genome Project Data Processing Subgroup. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009 Aug 15;25(16):2078-9. &lt;http://www.ncbi.nlm.nih.gov/pubmed/19505943&gt;`_
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
105
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
106
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
107 If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.*
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
108
39472bc02d8d Uploaded initial tool tarball.
devteam
parents:
diff changeset
109 </help>
1
c61c0d198e4a Uploaded
devteam
parents: 0
diff changeset
110 </tool>