annotate ngsap-vc/gatk/gatk.xml @ 3:0d10255b5434 draft default tip

Uploaded
author scisjnu123
date Thu, 03 Oct 2019 10:42:15 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
2 <tool id="gatk" name="GATK" version="@VERSION@.d9">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
3 <description>tool collection Version @VERSION@</description>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
4 <macros>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
5 <import>gatk_macros.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
6 <import>realigner_target_creator.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
7 <import>indel_realigner.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
8 <import>base_recalibrator.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
9 <import>analyze_covariates.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
10 <import>print_reads.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
11 <import>haplotype_caller.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
12 <import>genotype_gvcfs.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
13 <import>combine_gvcfs.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
14 <import>combine_variants.xml</import>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
15 </macros>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
16 <expand macro="requirements"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
17 <stdio>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
18 <regex match="^INFO" level="log"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
19 <regex match="^WARN" level="warning"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
20 <regex match="Using .* implementation of PairHMM" level="warning"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
21 <regex match="There is insufficient memory for the Java Runtime Environment to continue" level="fatal"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
22 <regex match="^##### ERROR" level="fatal"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
23 <exit_code range="1:" level="fatal"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
24 </stdio>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
25 <command><![CDATA[
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
26 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
27 ## import analysis specific preprocessings by using cheetahs internal searchList
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
28 ## if not defined, ignore
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
29 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
30 #if $analysis_type.analysis_type_selector + "Preprocessing" in vars()['SL'][2]
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
31 #set $analysisPreprocessing = vars()['SL'][2][$analysis_type.analysis_type_selector + "Preprocessing"]
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
32 #include source=$analysisPreprocessing
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
33 #end if
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
34
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
35 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
36 ## GATK tool unspecific options
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
37 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
38 @GATK_EXEC@
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
39
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
40 --analysis_type ${analysis_type.analysis_type_selector}
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
41 --reference_sequence ${ref_file.fields.path}
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
42
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
43 --log_to_file ${output_log}
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
44
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
45 #if $cond_intervals.cond_intervals_enabled
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
46 #for $interval in $cond_intervals.intervals:
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
47 --intervals ${interval.L}
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
48 #end for
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
49 #end if
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
50
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
51 #if $cond_BQSR.cond_BQSR_enabled
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
52 --BQSR $cond_BQSR.BQSR
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
53 #end if
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
54
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
55 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
56 ## import analysis specific options by using cheetahs internal searchList
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
57 ## if not defined throw raw python error until better idea
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
58 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
59 #if $analysis_type.analysis_type_selector + "Options" in vars()['SL'][2]
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
60 #set $analysisOptions = vars()['SL'][2][$analysis_type.analysis_type_selector + "Options"]
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
61 #include source=$analysisOptions
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
62 #else
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
63 #set $analysisOptions = vars()['SL'][2][$analysis_type.analysis_type_selector + "Options"]
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
64 #end if
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
65
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
66 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
67 ## only put ERROR or FATAL log messages into stderr
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
68 ## but keep full log for printing into log file
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
69 ############################
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
70 2>&1 | awk '\$1 != "INFO" && \$1 != "WARN"' >&2
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
71 ]]></command>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
72 <inputs>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
73 <param name="ref_file" type="select" label="Using reference genome" help="-R,‑‑reference_sequence &amp;lt;reference_sequence&amp;gt;">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
74 <options from_data_table="picard_indexes"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
75 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
76 </param>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
77 <conditional name="cond_intervals">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
78 <param name="cond_intervals_enabled" type="boolean" label="Select interval subset to operate on?"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
79 <when value="true">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
80 <repeat name="intervals" title="genomic interval over which to operate" help="-L,‑‑intervals &amp;lt;intervals&amp;gt;">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
81 <param name="L" type="text" value=""/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
82 </repeat>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
83 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
84 <when value="false"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
85 </conditional>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
86 <conditional name="cond_BQSR">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
87 <param name="cond_BQSR_enabled" type="boolean" label="Select covariates for on-the-fly recalibration?"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
88 <when value="true">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
89 <param name="BQSR" type="data" format="tabular" label="Input covariates table file for on-the-fly base quality score recalibration" help="-BQSR,‑‑BQSR &amp;lt;BQSR&amp;gt; intended primarily for use with BaseRecalibrator and PrintReads"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
90 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
91 <when value="false"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
92 </conditional>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
93 <conditional name="cond_threads">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
94 <param name="cond_threads_enabled" type="boolean" label="Set computational options (cpu, mem)?"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
95 <when value="true">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
96 <param name="nt" type="integer" value="1" label="Number of data threads to allocate to this analysis" help="make sure, the option is available for the chosen tool"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
97 <param name="nct" type="integer" value="1" label="Number of CPU threads to allocate per data thread" help="make sure, the option is available for the chosen tool"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
98 <param name="mem" type="integer" value="0" label="Overwrite Memory in MB (0 = don't overwrite)" help="Overwrites all other defaults and might lead to crash the run. States mem per data thread"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
99 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
100 <when value="false"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
101 </conditional>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
102 <conditional name="analysis_type">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
103 <param name="analysis_type_selector" type="select" label="Analysis Type">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
104 <option value="RealignerTargetCreator">RealignerTargetCreator</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
105 <option value="IndelRealigner">IndelRealigner</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
106 <option value="BaseRecalibrator">BaseRecalibrator</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
107 <option value="AnalyzeCovariates">AnalyzeCovariates</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
108 <option value="PrintReads">PrintReads</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
109 <option value="HaplotypeCaller">HaplotypeCaller</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
110 <option value="GenotypeGVCFs">GenotypeGVCFs</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
111 <option value="CombineGVCFs">CombineGVCFs</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
112 <option value="CombineVariants">CombineVariants</option>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
113 </param>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
114 <when value="RealignerTargetCreator">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
115 <expand macro="RealignerTargetCreatorParameters" tag="rtc"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
116 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
117 <when value="IndelRealigner">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
118 <expand macro="IndelRealignerParameters" tag="ir"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
119 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
120 <when value="BaseRecalibrator">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
121 <expand macro="BaseRecalibratorParameters" tag="br"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
122 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
123 <when value="AnalyzeCovariates">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
124 <expand macro="AnalyzeCovariatesParameters" tag="ac"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
125 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
126 <when value="PrintReads">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
127 <expand macro="PrintReadsParameters" tag="pr"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
128 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
129 <when value="HaplotypeCaller">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
130 <expand macro="HaplotypeCallerParameters" tag="hc"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
131 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
132 <when value="GenotypeGVCFs">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
133 <expand macro="GenotypeGVCFsParameters" tag="gg"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
134 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
135 <when value="CombineGVCFs">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
136 <expand macro="CombineGVCFsParameters" tag="cg"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
137 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
138 <when value="CombineVariants">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
139 <expand macro="CombineVariantsParameters" tag="cv"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
140 </when>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
141 </conditional>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
142 </inputs>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
143 <outputs>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
144 <expand macro="RealignerTargetCreatorOutput" tag="rtc">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
145 <filter>analysis_type['analysis_type_selector'] == 'RealignerTargetCreator'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
146 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
147 <expand macro="IndelRealignerOutput" tag="ir">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
148 <filter>analysis_type['analysis_type_selector'] == 'IndelRealigner'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
149 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
150 <expand macro="BaseRecalibratorOutput" tag="br">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
151 <filter>analysis_type['analysis_type_selector'] == 'BaseRecalibrator'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
152 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
153 <expand macro="AnalyzeCovariatesOutput" tag="ac">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
154 <filter>analysis_type['analysis_type_selector'] == 'AnalyzeCovariates'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
155 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
156 <expand macro="PrintReadsOutput" tag="pr">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
157 <filter>analysis_type['analysis_type_selector'] == 'PrintReads'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
158 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
159 <expand macro="HaplotypeCallerOutput" tag="hc">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
160 <filter>analysis_type['analysis_type_selector'] == 'HaplotypeCaller'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
161 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
162 <expand macro="GenotypeGVCFsOutput" tag="gg">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
163 <filter>analysis_type['analysis_type_selector'] == 'GenotypeGVCFs'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
164 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
165 <expand macro="CombineGVCFsOutput" tag="cg">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
166 <filter>analysis_type['analysis_type_selector'] == 'CombineGVCFs'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
167 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
168 <expand macro="CombineVariantsOutput" tag="cv">
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
169 <filter>analysis_type['analysis_type_selector'] == 'CombineVariants'</filter>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
170 </expand>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
171 <data format="txt" name="output_log" label="${tool.name} - ${analysis_type.analysis_type_selector} on ${on_string} (log)"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
172 </outputs>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
173 <expand macro="macro_tests"/>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
174 <citations>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
175 <citation type="doi">10.1101/gr.107524.110</citation>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
176 <citation type="doi">10.1038/ng.806</citation>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
177 <citation type="doi">10.1002/0471250953.bi1110s43</citation>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
178 </citations>
0d10255b5434 Uploaded
scisjnu123
parents:
diff changeset
179 </tool>