diff GATK/gatk/combine_variants.xml @ 2:2c7824a8d764 draft

Uploaded
author scisjnu123
date Thu, 12 Sep 2019 06:50:21 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GATK/gatk/combine_variants.xml	Thu Sep 12 06:50:21 2019 -0400
@@ -0,0 +1,96 @@
+<macros>
+    <xml name="CombineVariantsParameters" tokens="tag">
+        
+        <expand macro="macro_vcf_input" tag="@TAG@" />
+
+        <expand macro="macro_optional_parameters">
+
+            <param name="filteredRecordsMergeType" type="select" label="Determines how we should handle records seen at the same site in the VCF, but with different FILTER fields" help="-filteredRecordsMergeType,&#8209;&#8209;filteredrecordsmergetype &amp;lt;filteredrecordsmergetype&amp;gt;">
+                <option value="">No Selection</option>
+                <option value="KEEP_IF_ANY_UNFILTERED">KEEP_IF_ANY_UNFILTERED</option>
+                <option value="KEEP_IF_ALL_UNFILTERED">KEEP_IF_ALL_UNFILTERED</option>
+                <option value="KEEP_UNCONDITIONAL">KEEP_UNCONDITIONAL</option>
+            </param>
+
+            <param name="genotypeMergeOptions" type="select" label="Determines how we should merge genotype records for samples shared across the ROD files" help="-genotypeMergeOptions,&#8209;&#8209;genotypemergeoption &amp;lt;genotypemergeoption&amp;gt;">
+                <option value="">No Selection</option>
+                <option value="UNIQUIFY">UNIQUIFY</option>
+                <option value="PRIORITIZE">PRIORITIZE</option>
+                <option value="UNSORTED">UNSORTED</option>
+                <option value="REQUIRE_UNIQUE">REQUIRE_UNIQUE</option>
+            </param>
+
+            <param name="minimumN" type="integer" value="1" optional="true" label="Combine variants and output site only if the variant is present in at least N input files" help="-minN,&#8209;&#8209;minimumN &amp;lt;minimumN&amp;gt;" />
+
+            <param name="rod_priority_list" type="text" value="" optional="true" label="A comma-separated string describing the priority ordering for the genotypes as far as which record gets emitted" help="-priority,&#8209;&#8209;rod_priority_list &amp;lt;rod_priority_list&amp;gt;" />
+
+            <param name="setKey" type="text" value="" optional="true" label="Key used in the INFO key=value tag emitted describing which set the combined VCF record came from" help="-setKey,&#8209;&#8209;setKey &amp;lt;setKey&amp;gt;" />
+
+            <param name="assumeIdenticalSamples" type="boolean" truevalue="--assumeIdenticalSamples" falsevalue="" label="If true, assume input VCFs have identical sample sets and disjoint calls" help="-assumeIdenticalSamples,&#8209;&#8209;assumeIdenticalSamples" />
+
+            <param name="excludeNonVariants" type="boolean" truevalue="--excludeNonVariants" falsevalue="" label="Don't include loci found to be non-variant after the combining procedure" help="-env,&#8209;&#8209;excludeNonVariants" />
+
+            <param name="filteredAreUncalled" type="boolean" truevalue="--filteredAreUncalled" falsevalue="" label="If true, then filtered VCFs are treated as uncalled, so that filtered set annotations don't appear in the combined VCF" help="-filteredAreUncalled,&#8209;&#8209;filteredAreUncalled" />
+
+            <param name="mergeInfoWithMaxAC" type="boolean" truevalue="--mergeInfoWithMaxAC" falsevalue="" label="If true, when VCF records overlap the info field is taken from the one with the max AC instead of only taking the fields which are identical across the overlapping records." help="-mergeInfoWithMaxAC,&#8209;&#8209;mergeInfoWithMaxAC" />
+
+            <param name="minimalVCF" type="boolean" truevalue="--minimalVCF" falsevalue="" label="If true, then the output VCF will contain no INFO or genotype FORMAT fields" help="-minimalVCF,&#8209;&#8209;minimalVCF" />
+
+            <param name="printComplexMerges" type="boolean" truevalue="--printComplexMerges" falsevalue="" label="Print out interesting sites requiring complex compatibility merging" help="-printComplexMerges,&#8209;&#8209;printComplexMerges" />
+
+            <param name="suppressCommandLineHeader" type="boolean" truevalue="--suppressCommandLineHeader" falsevalue="" label="If true, do not output the header containing the command line used" help="-suppressCommandLineHeader,&#8209;&#8209;suppressCommandLineHeader" />
+
+        </expand>
+
+    </xml>
+
+    <xml name="CombineVariantsOutput">
+        <data format="vcf" name="cv_output_vcf" label="${tool.name} - ${analysis_type.analysis_type_selector} on ${on_string} (VCF)">
+            <yield />
+        </data>
+    </xml>
+
+    <template name="CombineVariantsPreprocessing">
+<![CDATA[
+        @token_vcf_input_pre@
+]]>
+    </template>
+
+    <template name="CombineVariantsOptions">
+<![CDATA[
+        --out ${cv_output_vcf}
+
+        @token_vcf_input@
+
+        #set $optionals = $analysis_type.optional_parameters
+        #if $optionals.optional_parameters_enabled
+
+            #if $optionals.filteredRecordsMergeType
+                --filteredRecordsMergeType $optionals.filteredRecordsMergeType
+            #end if
+            #if $optionals.genotypeMergeOptions
+                --genotypeMergeOptions $optionals.genotypeMergeOptions
+            #end if
+            #if $optionals.minimumN != 1
+                --minimumN $optionals.minimumN
+            #end if
+            #if $optionals.rod_priority_list
+                --rod_priority_list $optionals.rod_priority_list
+            #end if
+
+            $optionals.assumeIdenticalSamples
+            $optionals.excludeNonVariants
+            $optionals.filteredAreUncalled
+            $optionals.mergeInfoWithMaxAC
+            $optionals.minimalVCF
+            $optionals.printComplexMerges
+            $optionals.suppressCommandLineHeader
+
+        #end if
+]]>
+    </template>
+
+
+</macros>
+
+