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