annotate macros.xml @ 9:fa7ad9b89f4a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
author iuc
date Mon, 03 Sep 2018 13:10:02 -0400
parents 583abf29fc8e
children 8da515fbc1bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
1 <macros>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
2 <xml name="requirements">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
3 <requirements>
9
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
4 <requirement type="package" version="@TOOL_VERSION@">samtools</requirement>
4
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
5 <yield/>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
6 </requirements>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
7 </xml>
9
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
8 <token name="@TOOL_VERSION@">1.9</token>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
9 <token name="@FLAGS@">#set $flags = sum(map(int, str($filter).split(',')))</token>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
10 <token name="@PREPARE_IDX_MULTIPLE@"><![CDATA[
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
11 ##prepare input and indices
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
12 #for $i, $bam in enumerate( $input_bams ):
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
13 ln -s '$bam' '${i}' &&
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
14 #if $bam.is_of_type('bam'):
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
15 #if str( $bam.metadata.bam_index ) != "None":
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
16 ln -s '${bam.metadata.bam_index}' '${i}.bai' &&
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
17 #else:
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
18 samtools index '${i}' '${i}.bai' &&
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
19 #end if
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
20 #elif $bam.is_of_type('cram'):
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
21 #if str( $bam.metadata.cram_index ) != "None":
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
22 ln -s '${bam.metadata.cram_index}' '${i}.crai' &&
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
23 #else:
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
24 samtools index '${i}' '${i}.crai' &&
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
25 #end if
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
26 #end if
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
27 #end for
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
28 ]]></token>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
29 <xml name="flag_options">
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
30 <option value="1">read is paired</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
31 <option value="2">read is mapped in a proper pair</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
32 <option value="4">read is unmapped</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
33 <option value="8">mate is unmapped</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
34 <option value="16">read reverse strand</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
35 <option value="32">mate reverse strand</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
36 <option value="64">read is the first in a pair</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
37 <option value="128">read is the second in a pair</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
38 <option value="256">alignment or read is not primary</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
39 <option value="512">read fails platform/vendor quality checks</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
40 <option value="1024">read is a PCR or optical duplicate</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
41 <option value="2048">supplementary alignment</option>
fa7ad9b89f4a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 831f76c1ac20172b902d9edf79aced718feb96e2
iuc
parents: 8
diff changeset
42 </xml>
4
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
43 <xml name="citations">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
44 <citations>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
45 <citation type="bibtex">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
46 @misc{SAM_def,
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
47 title={Definition of SAM/BAM format},
8
583abf29fc8e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 4
diff changeset
48 url = {https://samtools.github.io/hts-specs/},}
4
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
49 </citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
50 <citation type="doi">10.1093/bioinformatics/btp352</citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
51 <citation type="doi">10.1093/bioinformatics/btr076</citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
52 <citation type="doi">10.1093/bioinformatics/btr509</citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
53 <citation type="bibtex">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
54 @misc{Danecek_et_al,
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
55 Author={Danecek, P., Schiffels, S., Durbin, R.},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
56 title={Multiallelic calling model in bcftools (-m)},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
57 url = {http://samtools.github.io/bcftools/call-m.pdf},}
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
58 </citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
59 <citation type="bibtex">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
60 @misc{Durbin_VCQC,
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
61 Author={Durbin, R.},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
62 title={Segregation based metric for variant call QC},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
63 url = {http://samtools.github.io/bcftools/rd-SegBias.pdf},}
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
64 </citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
65 <citation type="bibtex">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
66 @misc{Li_SamMath,
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
67 Author={Li, H.},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
68 title={Mathematical Notes on SAMtools Algorithms},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
69 url = {http://www.broadinstitute.org/gatk/media/docs/Samtools.pdf},}
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
70 </citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
71 <citation type="bibtex">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
72 @misc{SamTools_github,
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
73 title={SAMTools GitHub page},
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
74 url = {https://github.com/samtools/samtools},}
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
75 </citation>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
76 </citations>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
77 </xml>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
78 <xml name="version_command">
8
583abf29fc8e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_mpileup commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 4
diff changeset
79 <version_command><![CDATA[samtools 2>&1 | grep Version]]></version_command>
4
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
80 </xml>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
81 <xml name="stdio">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
82 <stdio>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
83 <exit_code range="1:" level="fatal" description="Error" />
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
84 </stdio>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
85 </xml>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
86 <token name="@no-chrom-options@">
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
87 -----
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
88
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
89 .. class:: warningmark
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
90
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
91 **No options available? How to re-detect metadata**
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
92
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
93 If you see a &quot;No options available&quot; within the &quot;**Select references (chromosomes and contigs) you would like to restrict bam to**&quot; drop down, you need to re-detect metadata for the dataset you are trying to process. To do this follow these steps:
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
94
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
95 1. Click on the **pencil** icon adjacent to the dataset in the history
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
96 2. A new menu will appear in the center pane of the interface
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
97 3. Click **Datatype** tab
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
98 4. Set **New Type** to **BAM**
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
99 5. Click **Save**
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
100
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
101 The medatada will be re-detected and you will be able to see the list of reference sequences in the &quot;**Select references (chromosomes and contigs) you would like to restrict bam to**&quot; drop-down.
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
102 </token>
c6fdfe3331d6 Uploaded
devteam
parents:
diff changeset
103 </macros>