Mercurial > repos > devteam > samtools_calmd
annotate samtools_calmd.xml @ 5:ed0f72810fd5 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
| author | iuc |
|---|---|
| date | Tue, 09 May 2017 11:16:22 -0400 |
| parents | 609810451a80 |
| children | 3b6f46492fd8 |
| rev | line source |
|---|---|
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
1 <tool id="samtools_calmd" name="CalMD" version="2.0.1"> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
2 <description>recalculate MD/NM tags</description> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
3 <macros> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
4 <import>macros.xml</import> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
5 </macros> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
6 <expand macro="requirements"/> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
7 <expand macro="stdio"/> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
8 <expand macro="version_command"/> |
| 0 | 9 <command><![CDATA[ |
| 10 #if str( $reference_source.reference_source_selector ) == "history": | |
| 11 #set ref_fa = 'ref.fa' | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
12 ln -s '${reference_source.ref_fasta}' ref.fa && |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
13 samtools faidx ref.fa && |
| 0 | 14 #else: |
| 15 #set ref_fa = str( $reference_source.ref_fasta.fields.path ) | |
| 16 #end if | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
17 |
| 0 | 18 samtools calmd |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
19 #if str($option_set.option_sets) == 'advanced': |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
20 $option_set.change_identical $option_set.modify_quality $option_set.compute_cap $option_set.extended_baq |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
21 #end if |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
22 -b |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
23 '$input_bam' |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
24 '$ref_fa' |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
25 > '$calmd_output' |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
26 ]]></command> |
| 0 | 27 <inputs> |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
28 <param name="input_bam" type="data" format="bam" label="BAM file to recalculate" /> |
| 0 | 29 <conditional name="reference_source"> |
|
3
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
30 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome"> |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
31 <option value="cached">Use a built-in genome</option> |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
32 <option value="history">Use a genome from the history</option> |
| 0 | 33 </param> |
| 34 <when value="cached"> | |
| 35 <param name="ref_fasta" type="select" label="Using reference genome"> | |
| 36 <options from_data_table="fasta_indexes"> | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
37 <filter type="data_meta" column="1" key="dbkey" ref="input_bam" /> |
| 0 | 38 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file" /> |
| 39 </options> | |
| 40 </param> | |
| 41 </when> | |
| 42 <when value="history"> | |
| 43 <param name="ref_fasta" type="data" format="fasta" label="Using reference file" /> | |
| 44 </when> | |
| 45 </conditional> | |
| 46 <conditional name="option_set"> | |
| 47 <param name="option_sets" type="select" label="Options"> | |
| 48 <option value="default">Use defaults</option> | |
| 49 <option value="advanced">Advanced options</option> | |
| 50 </param> | |
| 51 <when value="default" /> | |
| 52 <when value="advanced"> | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
53 <param name="change_identical" argument="-e" type="boolean" truevalue="-e" falsevalue="" checked="False" label="Change identical bases to '='" /> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
54 <param name="modify_quality" argument="-A" type="boolean" truevalue="-A" falsevalue="" checked="False" label="Modify the quality string" /> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
55 <param name="compute_cap" argument="-r" type="boolean" truevalue="-r" falsevalue="" checked="False" label="Compute BQ or cap baseQ by BAQ" /> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
56 <param name="extended_baq" argument="-E" type="boolean" truevalue="-E" falsevalue="" checked="False" label="Extended BAQ for better sensitivity" /> |
| 0 | 57 </when> |
| 58 </conditional> | |
| 59 </inputs> | |
| 60 <outputs> | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
61 <data name="calmd_output" format="bam" label="${tool.name} on ${on_string}" /> |
| 0 | 62 </outputs> |
| 63 <tests> | |
| 64 <test> | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
65 <param name="option_sets" value="default" /> |
|
3
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
66 <param name="input_bam" value="phiX.bam"/> |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
67 <param name="reference_source_selector" value="history" /> |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
68 <param name="ref_fasta" value="phiX.fasta" /> |
| 0 | 69 <output name="calmd_output" file="samtools_calmd_out_1.bam" ftype="bam" /> |
| 70 </test> | |
| 71 <test> | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
72 <param name="option_sets" value="advanced" /> |
| 0 | 73 <param name="change_identical" value="true" /> |
| 74 <param name="extended_baq" value="true" /> | |
|
3
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
75 <param name="input_bam" value="phiX.bam"/> |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
76 <param name="reference_source_selector" value="history" /> |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
77 <param name="ref_fasta" value="phiX.fasta" /> |
| 0 | 78 <output name="calmd_output" file="samtools_calmd_out_2.bam" ftype="bam" /> |
| 79 </test> | |
| 80 </tests> | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
81 <help><![CDATA[ |
| 0 | 82 **What it does** |
| 83 | |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
84 Generates the MD tag using the ``samtools calmd`` command. If the MD tag (see SAM format reference below for explanation of SAM/BAM tags) is already present, this command will give a warning if the MD tag generated is different from the existing tag. Outputs a BAM file. |
| 0 | 85 |
|
3
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
86 ----- |
| 0 | 87 |
|
3
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
88 **NM and MD tags** |
| 0 | 89 |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
90 From the SAM format specification:: |
| 0 | 91 |
|
3
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
92 MD (string) String for mismatching positions. Regex : [0-9]+(([A-Z]|\^[A-Z]+)[0-9]+)*7 |
|
609810451a80
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
2
diff
changeset
|
93 NM (indeger) Edit distance to the reference, including ambiguous bases but excluding clipping |
| 0 | 94 |
|
5
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
95 See references for more information about SAM format tags. |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
96 ]]></help> |
|
ed0f72810fd5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_calmd commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
3
diff
changeset
|
97 <expand macro="citations"/> |
| 1 | 98 </tool> |
