Mercurial > repos > iuc > gatk2
comparison variant_eval.xml @ 11:0d369d08ad6e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gatk2 commit 344140b8df53b8b7024618bb04594607a045c03a
| author | iuc |
|---|---|
| date | Mon, 04 May 2015 22:47:06 -0400 |
| parents | b80301676614 |
| children | 669a23f1f4b5 |
comparison
equal
deleted
inserted
replaced
| 10:5db8d6815cf3 | 11:0d369d08ad6e |
|---|---|
| 1 <tool id="gatk2_variant_eval" name="Eval Variants" version="@VERSION@.0"> | 1 <tool id="gatk2_variant_eval" name="Eval Variants" version="@VERSION@.0"> |
| 2 <description></description> | 2 <description></description> |
| 3 <expand macro="requirements" /> | |
| 4 <expand macro="version_command" /> | |
| 5 <macros> | 3 <macros> |
| 6 <import>gatk2_macros.xml</import> | 4 <import>gatk2_macros.xml</import> |
| 7 </macros> | 5 </macros> |
| 6 <expand macro="requirements" /> | |
| 7 <expand macro="version_command" /> | |
| 8 <command interpreter="python"> | 8 <command interpreter="python"> |
| 9 #from binascii import hexlify | 9 #from binascii import hexlify |
| 10 | 10 |
| 11 gatk2_wrapper.py | 11 gatk2_wrapper.py |
| 12 --stdout "${output_log}" | 12 --stdout "${output_log}" |
| 23 | 23 |
| 24 #if $reference_source.reference_source_selector != "history": | 24 #if $reference_source.reference_source_selector != "history": |
| 25 -R "${reference_source.ref_file.fields.path}" | 25 -R "${reference_source.ref_file.fields.path}" |
| 26 #end if | 26 #end if |
| 27 ' | 27 ' |
| 28 | 28 |
| 29 #for $rod_binding in $comp_rod_bind: | 29 #for $rod_binding in $comp_rod_bind: |
| 30 -d "--comp:${rod_binding.comp_rod_name},%(file_type)s" "${rod_binding.comp_input_rod}" "${rod_binding.comp_input_rod.ext}" "input_comp_${rod_binding.comp_rod_name}" | 30 -d "--comp:${rod_binding.comp_rod_name},%(file_type)s" "${rod_binding.comp_input_rod}" "${rod_binding.comp_input_rod.ext}" "input_comp_${rod_binding.comp_rod_name}" |
| 31 #if str( $rod_binding.comp_known_names ): | 31 #if str( $rod_binding.comp_known_names ): |
| 32 -p '--known_names "${rod_binding.comp_rod_name}"' | 32 -p '--known_names "${rod_binding.comp_rod_name}"' |
| 33 #end if | 33 #end if |
| 34 #end for | 34 #end for |
| 35 | 35 |
| 36 #if $dbsnp_rod_bind_type.dbsnp_rod_bind_type_selector == 'set_dbsnp' | 36 #if $dbsnp_rod_bind_type.dbsnp_rod_bind_type_selector == 'set_dbsnp' |
| 37 -d "--dbsnp:${dbsnp_rod_bind_type.dbsnp_rod_name},%(file_type)s" "${dbsnp_rod_bind_type.dbsnp_input_rod}" "${dbsnp_rod_bind_type.dbsnp_input_rod.ext}" "input_dbsnp_${dbsnp_rod_bind_type.dbsnp_rod_name}" | 37 -d "--dbsnp:${dbsnp_rod_bind_type.dbsnp_rod_name},%(file_type)s" "${dbsnp_rod_bind_type.dbsnp_input_rod}" "${dbsnp_rod_bind_type.dbsnp_input_rod.ext}" "input_dbsnp_${dbsnp_rod_bind_type.dbsnp_rod_name}" |
| 38 #if $dbsnp_rod_bind_type.dbsnp_known_names | 38 #if $dbsnp_rod_bind_type.dbsnp_known_names |
| 39 -p '--known_names "${dbsnp_rod_bind_type.dbsnp_rod_name}"' | 39 -p '--known_names "${dbsnp_rod_bind_type.dbsnp_rod_name}"' |
| 40 #end if | 40 #end if |
| 41 #end if | 41 #end if |
| 42 | 42 |
| 43 #include source=$standard_gatk_options# | 43 #include source=$standard_gatk_options# |
| 44 | 44 |
| 45 | |
| 46 ##start analysis specific options | 45 ##start analysis specific options |
| 47 #if $analysis_param_type.analysis_param_type_selector == "advanced": | 46 #if $analysis_param_type.analysis_param_type_selector == "advanced": |
| 48 #for $stratification in $analysis_param_type.stratifications: | 47 #for $stratification in $analysis_param_type.stratifications: |
| 49 #set $select_string = "--select_exps '%s' --select_names '%s'" % ( str( $stratification.select_exps ), str( $stratification.select_name ) ) | 48 #set $select_string = "--select_exps '%s' --select_names '%s'" % ( str( $stratification.select_exps ), str( $stratification.select_name ) ) |
| 50 -o '${ hexlify( $select_string ) }' | 49 -o '${ hexlify( $select_string ) }' |
| 51 #end for | 50 #end for |
| 52 -p ' | 51 -p ' |
| 53 | 52 |
| 54 #for $sample in $analysis_param_type.samples: | 53 #for $sample in $analysis_param_type.samples: |
| 55 --sample "${sample.sample}" | 54 --sample "${sample.sample}" |
| 56 #end for | 55 #end for |
| 57 | 56 |
| 58 #if str( $analysis_param_type.stratification_modules ) != "None": | 57 #if str( $analysis_param_type.stratification_modules ) != "None": |
| 59 #for $stratification_module in str( $analysis_param_type.stratification_modules).split( ',' ): | 58 #for $stratification_module in str( $analysis_param_type.stratification_modules).split( ',' ): |
| 60 --stratificationModule "${stratification_module}" | 59 --stratificationModule "${stratification_module}" |
| 61 #end for | 60 #end for |
| 62 #end if | 61 #end if |
| 63 | 62 |
| 64 ${analysis_param_type.do_not_use_all_standard_stratifications} | 63 ${analysis_param_type.do_not_use_all_standard_stratifications} |
| 65 | 64 |
| 66 #for $variant_type in $analysis_param_type.only_variants_of_type: | 65 #for $variant_type in $analysis_param_type.only_variants_of_type: |
| 67 --onlyVariantsOfType "${variant_type.variant_type}" | 66 --onlyVariantsOfType "${variant_type.variant_type}" |
| 68 #end for | 67 #end for |
| 69 | 68 |
| 70 #if str( $analysis_param_type.eval_modules ) != "None": | 69 #if str( $analysis_param_type.eval_modules ) != "None": |
| 71 #for $eval_module in str( $analysis_param_type.eval_modules).split( ',' ): | 70 #for $eval_module in str( $analysis_param_type.eval_modules).split( ',' ): |
| 72 --evalModule "${eval_module}" | 71 --evalModule "${eval_module}" |
| 73 #end for | 72 #end for |
| 74 #end if | 73 #end if |
| 75 | 74 |
| 76 ${analysis_param_type.do_not_use_all_standard_modules} | 75 ${analysis_param_type.do_not_use_all_standard_modules} |
| 77 | 76 |
| 78 #if str( $analysis_param_type.num_samples ) != "0": | 77 #if str( $analysis_param_type.num_samples ) != "0": |
| 79 --numSamples "${analysis_param_type.num_samples}" | 78 --numSamples "${analysis_param_type.num_samples}" |
| 80 #end if | 79 #end if |
| 81 | 80 |
| 82 --minPhaseQuality "${analysis_param_type.min_phase_quality}" | 81 --minPhaseQuality "${analysis_param_type.min_phase_quality}" |
| 83 | 82 |
| 84 --mendelianViolationQualThreshold "${analysis_param_type.mendelian_violation_qual_threshold}" | 83 --mendelianViolationQualThreshold "${analysis_param_type.mendelian_violation_qual_threshold}" |
| 85 | 84 |
| 86 #if str( $analysis_param_type.ancestral_alignments ) != "None": | 85 #if str( $analysis_param_type.ancestral_alignments ) != "None": |
| 87 --ancestralAlignments "${analysis_param_type.ancestral_alignments}" | 86 --ancestralAlignments "${analysis_param_type.ancestral_alignments}" |
| 88 #end if | 87 #end if |
| 89 ' | 88 ' |
| 90 #if str( $analysis_param_type.known_cnvs ) != "None": | 89 #if str( $analysis_param_type.known_cnvs ) != "None": |
| 91 -d "--knownCNVs" "${analysis_param_type.known_cnvs}" "${analysis_param_type.known_cnvs.ext}" "input_known_cnvs" | 90 -d "--knownCNVs" "${analysis_param_type.known_cnvs}" "${analysis_param_type.known_cnvs.ext}" "input_known_cnvs" |
| 92 #end if | 91 #end if |
| 93 | 92 |
| 94 #if str( $analysis_param_type.strat_intervals ) != "None": | 93 #if str( $analysis_param_type.strat_intervals ) != "None": |
| 95 -d "--stratIntervals" "${analysis_param_type.strat_intervals}" "${analysis_param_type.strat_intervals.ext}" "input_strat_intervals" | 94 -d "--stratIntervals" "${analysis_param_type.strat_intervals}" "${analysis_param_type.strat_intervals.ext}" "input_strat_intervals" |
| 96 #end if | 95 #end if |
| 97 #end if | 96 #end if |
| 98 </command> | 97 </command> |
| 99 <inputs> | 98 <inputs> |
| 100 | 99 |
| 101 <conditional name="reference_source"> | 100 <conditional name="reference_source"> |
| 102 <expand macro="reference_source_selector_param" /> | 101 <expand macro="reference_source_selector_param" /> |
| 103 <when value="cached"> | 102 <when value="cached"> |
| 104 <repeat name="variants" title="Variant" min="1" help="-eval,--eval &lt;eval&gt;"> | 103 <repeat name="variants" title="Variant" min="1" help="-eval,--eval &lt;eval&gt;"> |
| 105 <param name="input_variant" type="data" format="vcf" label="Input variant file" /> | 104 <param name="input_variant" type="data" format="vcf" label="Input variant file" /> |
| 116 <param name="input_variant" type="data" format="vcf" label="Input variant file" /> | 115 <param name="input_variant" type="data" format="vcf" label="Input variant file" /> |
| 117 </repeat> | 116 </repeat> |
| 118 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" /> | 117 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" /> |
| 119 </when> | 118 </when> |
| 120 </conditional> | 119 </conditional> |
| 121 | 120 |
| 122 <repeat name="comp_rod_bind" title="Comparison Reference-Ordered Data (ROD) file" help="-comp,--comp &lt;comp&gt;"> | 121 <repeat name="comp_rod_bind" title="Comparison Reference-Ordered Data (ROD) file" help="-comp,--comp &lt;comp&gt;"> |
| 123 <param name="comp_input_rod" type="data" format="vcf" label="Comparison ROD file" /> | 122 <param name="comp_input_rod" type="data" format="vcf" label="Comparison ROD file" /> |
| 124 <param name="comp_rod_name" type="text" value="" label="Comparison ROD name"> | 123 <param name="comp_rod_name" type="text" value="" label="Comparison ROD name"> |
| 125 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator> | 124 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator> |
| 126 </param> | 125 </param> |
| 138 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator> | 137 <validator type="regex" message="Value must be a not empty string composed by alphanumeric characters and underscores">^\w+$</validator> |
| 139 </param> | 138 </param> |
| 140 <param name="dbsnp_known_names" type="boolean" label="Use dbSNP ROD file as known_names" help="-knownName,--known_names &lt;known_names&gt;" /> | 139 <param name="dbsnp_known_names" type="boolean" label="Use dbSNP ROD file as known_names" help="-knownName,--known_names &lt;known_names&gt;" /> |
| 141 </when> | 140 </when> |
| 142 </conditional> | 141 </conditional> |
| 143 | 142 |
| 144 <expand macro="gatk_param_type_conditional" /> | 143 <expand macro="gatk_param_type_conditional" /> |
| 145 | 144 |
| 146 | |
| 147 <expand macro="analysis_type_conditional"> | 145 <expand macro="analysis_type_conditional"> |
| 148 <repeat name="stratifications" title="Stratification"> | 146 <repeat name="stratifications" title="Stratification"> |
| 149 <param name="select_exps" value="" type="text" label="Stratification Expression" help="-select,--select_exps &lt;select_exps&gt;"> | 147 <param name="select_exps" value="" type="text" label="Stratification Expression" help="-select,--select_exps &lt;select_exps&gt;"> |
| 150 <sanitizer> | 148 <sanitizer> |
| 151 <valid initial="string.printable"> | 149 <valid initial="string.printable"> |
| 154 <mapping initial="none"/> | 152 <mapping initial="none"/> |
| 155 </sanitizer> | 153 </sanitizer> |
| 156 </param> | 154 </param> |
| 157 <param name="select_name" value="" type="text" label="Name" help="-selectName,--select_names &lt;select_names&gt;"/> | 155 <param name="select_name" value="" type="text" label="Name" help="-selectName,--select_names &lt;select_names&gt;"/> |
| 158 </repeat> | 156 </repeat> |
| 159 | 157 |
| 160 <repeat name="samples" title="Sample" help="-sn,--sample &lt;sample&gt;"> | 158 <repeat name="samples" title="Sample" help="-sn,--sample &lt;sample&gt;"> |
| 161 <param name="sample" value="" type="text" label="Derive eval and comp contexts using only these sample genotypes, when genotypes are available in the original context"/> | 159 <param name="sample" value="" type="text" label="Derive eval and comp contexts using only these sample genotypes, when genotypes are available in the original context"/> |
| 162 </repeat> | 160 </repeat> |
| 163 | 161 |
| 164 <param name="stratification_modules" type="select" multiple="True" display="checkboxes" label="Stratification modules to apply to the eval track(s)" help="-ST,--stratificationModule &lt;stratificationModule&gt;" > | 162 <param name="stratification_modules" type="select" multiple="True" display="checkboxes" label="Stratification modules to apply to the eval track(s)" help="-ST,--stratificationModule &lt;stratificationModule&gt;" > |
| 165 <option value="AlleleCount" /> | 163 <option value="AlleleCount" /> |
| 166 <option value="AlleleFrequency" /> | 164 <option value="AlleleFrequency" /> |
| 167 <option value="CompRod" /> | 165 <option value="CompRod" /> |
| 168 <option value="Contig" /> | 166 <option value="Contig" /> |
| 180 <option value="SnpEffPositionModifier" /> | 178 <option value="SnpEffPositionModifier" /> |
| 181 <option value="TandemRepeat" /> | 179 <option value="TandemRepeat" /> |
| 182 <option value="VariantType" /> | 180 <option value="VariantType" /> |
| 183 </param> | 181 </param> |
| 184 <param name="do_not_use_all_standard_stratifications" checked="false" type="boolean" truevalue="--doNotUseAllStandardStratifications" falsevalue="" label="Do not use the standard stratification modules by default" help="-noST,--doNotUseAllStandardStratifications" /> | 182 <param name="do_not_use_all_standard_stratifications" checked="false" type="boolean" truevalue="--doNotUseAllStandardStratifications" falsevalue="" label="Do not use the standard stratification modules by default" help="-noST,--doNotUseAllStandardStratifications" /> |
| 185 | 183 |
| 186 <repeat name="only_variants_of_type" title="only Variants Of Type" help="--onlyVariantsOfType"> | 184 <repeat name="only_variants_of_type" title="only Variants Of Type" help="--onlyVariantsOfType"> |
| 187 <param name="variant_type" type="text" value="" label="only variants of these types will be considered during the evaluation"/> | 185 <param name="variant_type" type="text" value="" label="only variants of these types will be considered during the evaluation"/> |
| 188 </repeat> | 186 </repeat> |
| 189 | 187 |
| 190 <param name="eval_modules" type="select" multiple="True" display="checkboxes" label="Eval modules to apply to the eval track(s)" help="-EV,--evalModule &lt;evalModule&gt;" > | 188 <param name="eval_modules" type="select" multiple="True" display="checkboxes" label="Eval modules to apply to the eval track(s)" help="-EV,--evalModule &lt;evalModule&gt;" > |
| 191 <option value="CompOverlap" /> | 189 <option value="CompOverlap" /> |
| 192 <option value="CountVariants" /> | 190 <option value="CountVariants" /> |
| 193 <option value="IndelLengthHistogram" /> | 191 <option value="IndelLengthHistogram" /> |
| 194 <option value="IndelSummary" /> | 192 <option value="IndelSummary" /> |
| 199 <option value="TiTvVariantEvaluator" /> | 197 <option value="TiTvVariantEvaluator" /> |
| 200 <option value="ValidationReport" /> | 198 <option value="ValidationReport" /> |
| 201 <option value="VariantSummary" /> | 199 <option value="VariantSummary" /> |
| 202 </param> | 200 </param> |
| 203 <param name="do_not_use_all_standard_modules" checked="false" type="boolean" truevalue="--doNotUseAllStandardModules" falsevalue="" label="Do not use the standard eval modules by default" help="-noEV,--doNotUseAllStandardModules" /> | 201 <param name="do_not_use_all_standard_modules" checked="false" type="boolean" truevalue="--doNotUseAllStandardModules" falsevalue="" label="Do not use the standard eval modules by default" help="-noEV,--doNotUseAllStandardModules" /> |
| 204 | 202 |
| 205 <param name="num_samples" type="integer" label="Number of samples (used if no samples are available in the VCF file" value="0" help="-ns,--numSamples &lt;numSamples&gt;"/> | 203 <param name="num_samples" type="integer" label="Number of samples (used if no samples are available in the VCF file" value="0" help="-ns,--numSamples &lt;numSamples&gt;"/> |
| 206 <param name="min_phase_quality" type="float" label="Minimum phasing quality " value="10.0" help="-mpq,--minPhaseQuality &lt;minPhaseQuality&gt;"/> | 204 <param name="min_phase_quality" type="float" label="Minimum phasing quality " value="10.0" help="-mpq,--minPhaseQuality &lt;minPhaseQuality&gt;"/> |
| 207 <param name="mendelian_violation_qual_threshold" type="integer" label="Minimum genotype QUAL score for each trio member required to accept a site as a violation" value="50" help="-mvq,--mendelianViolationQualThreshold &lt;mendelianViolationQualThreshold&gt;"/> | 205 <param name="mendelian_violation_qual_threshold" type="integer" label="Minimum genotype QUAL score for each trio member required to accept a site as a violation" value="50" help="-mvq,--mendelianViolationQualThreshold &lt;mendelianViolationQualThreshold&gt;"/> |
| 208 <param name="ancestral_alignments" type="data" format="fasta" optional="True" label="Fasta file with ancestral alleles" help="-aa,--ancestralAlignments &lt;ancestralAlignments&gt;" /> | 206 <param name="ancestral_alignments" type="data" format="fasta" optional="True" label="Fasta file with ancestral alleles" help="-aa,--ancestralAlignments &lt;ancestralAlignments&gt;" /> |
| 209 <param name="known_cnvs" type="data" format="bed,gatk_interval,picard_interval_list" optional="True" label="File containing tribble-readable features describing a known list of copy number variants" help="-knownCNVs,--knownCNVs &lt;knownCNVs&gt;" /> | 207 <param name="known_cnvs" type="data" format="bed,gatk_interval,picard_interval_list" optional="True" label="File containing tribble-readable features describing a known list of copy number variants" help="-knownCNVs,--knownCNVs &lt;knownCNVs&gt;" /> |
| 210 <param name="strat_intervals" type="data" format="bed,gatk_interval,picard_interval_list" optional="True" label="File containing tribble-readable features for the IntervalStratificiation" help="-stratIntervals,--stratIntervals &lt;stratIntervals&gt;" /> | 208 <param name="strat_intervals" type="data" format="bed,gatk_interval,picard_interval_list" optional="True" label="File containing tribble-readable features for the IntervalStratificiation" help="-stratIntervals,--stratIntervals &lt;stratIntervals&gt;" /> |
| 211 | |
| 212 </expand> | 209 </expand> |
| 213 | 210 |
| 214 | |
| 215 </inputs> | 211 </inputs> |
| 216 <outputs> | 212 <outputs> |
| 217 <data format="gatk_report" name="output_report" label="${tool.name} on ${on_string} (report)" /> | 213 <data format="gatk_report" name="output_report" label="${tool.name} on ${on_string} (report)" /> |
| 218 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" /> | 214 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" /> |
| 219 </outputs> | 215 </outputs> |
| 268 select_names Names to use for the list of stratifications (must be a 1-to-1 mapping) | 264 select_names Names to use for the list of stratifications (must be a 1-to-1 mapping) |
| 269 sample Derive eval and comp contexts using only these sample genotypes, when genotypes are available in the original context | 265 sample Derive eval and comp contexts using only these sample genotypes, when genotypes are available in the original context |
| 270 known_names Name of ROD bindings containing variant sites that should be treated as known when splitting eval rods into known and novel subsets | 266 known_names Name of ROD bindings containing variant sites that should be treated as known when splitting eval rods into known and novel subsets |
| 271 stratificationModule One or more specific stratification modules to apply to the eval track(s) (in addition to the standard stratifications, unless -noS is specified) | 267 stratificationModule One or more specific stratification modules to apply to the eval track(s) (in addition to the standard stratifications, unless -noS is specified) |
| 272 doNotUseAllStandardStratifications Do not use the standard stratification modules by default (instead, only those that are specified with the -S option) | 268 doNotUseAllStandardStratifications Do not use the standard stratification modules by default (instead, only those that are specified with the -S option) |
| 273 onlyVariantsOfType If provided, only variants of these types will be considered during the evaluation, in | 269 onlyVariantsOfType If provided, only variants of these types will be considered during the evaluation, in |
| 274 evalModule One or more specific eval modules to apply to the eval track(s) (in addition to the standard modules, unless -noE is specified) | 270 evalModule One or more specific eval modules to apply to the eval track(s) (in addition to the standard modules, unless -noE is specified) |
| 275 doNotUseAllStandardModules Do not use the standard modules by default (instead, only those that are specified with the -E option) | 271 doNotUseAllStandardModules Do not use the standard modules by default (instead, only those that are specified with the -E option) |
| 276 numSamples Number of samples (used if no samples are available in the VCF file | 272 numSamples Number of samples (used if no samples are available in the VCF file |
| 277 minPhaseQuality Minimum phasing quality | 273 minPhaseQuality Minimum phasing quality |
| 278 mendelianViolationQualThreshold Minimum genotype QUAL score for each trio member required to accept a site as a violation | 274 mendelianViolationQualThreshold Minimum genotype QUAL score for each trio member required to accept a site as a violation |
