Mercurial > repos > iuc > medaka_variant
comparison variant.xml @ 10:9fb055604648 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/medaka commit 0faf0ade3f13d7c78d93869823ea9fdf25c21b13"
author | iuc |
---|---|
date | Thu, 22 Apr 2021 20:25:35 +0000 |
parents | 43815fa60f3a |
children | 0f5f4a208660 |
comparison
equal
deleted
inserted
replaced
9:43815fa60f3a | 10:9fb055604648 |
---|---|
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <tool id="medaka_variant" name="medaka variant tool" version="@TOOL_VERSION@+galaxy7" profile="@PROFILE@"> | 2 <tool id="medaka_variant" name="medaka variant tool" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@"> |
3 <description>Probability decoding</description> | 3 <description>Probability decoding</description> |
4 <macros> | 4 <macros> |
5 <import>macros.xml</import> | 5 <import>macros.xml</import> |
6 </macros> | 6 </macros> |
7 <expand macro="requirements"> | 7 <expand macro="requirements"/> |
8 <requirement type="package" version="1.4.1">scipy</requirement> | |
9 </expand> | |
10 | 8 |
11 <expand macro="version_command"/> | 9 <expand macro="version_command"/> |
12 | 10 |
13 <configfiles> | 11 <configfiles> |
14 <configfile name="convert_fasta"> | 12 <configfile name="convert_fasta"> |
37 --debug | 35 --debug |
38 #if $regions | 36 #if $regions |
39 --regions '${regions}' | 37 --regions '${regions}' |
40 #end if | 38 #end if |
41 $verbose | 39 $verbose |
40 ${ambig_ref} | |
41 ${gvcf} | |
42 ## required | 42 ## required |
43 reference.fa | 43 reference.fa |
44 #for $current in $pool.inputs | 44 #for $current in $pool.inputs |
45 '$current' | 45 '$current' |
46 #end for | 46 #end for |
47 '$out_result' ## output | 47 '$out_result' ## output |
48 | |
49 2>&1 | tee '$out_log' | 48 2>&1 | tee '$out_log' |
50 #elif $pool.pool_mode == "No": | 49 #elif $pool.pool_mode == "No": |
51 ## run | 50 ## run |
52 medaka variant | 51 medaka variant |
53 ## optional | 52 ## optional |
54 --debug | 53 --debug |
55 #if $regions | 54 #if $regions |
56 --regions '${regions}' | 55 --regions '${regions}' |
57 #end if | 56 #end if |
58 $verbose | 57 $verbose |
58 ${ambig_ref} | |
59 ${gvcf} | |
59 ## required | 60 ## required |
60 reference.fa | 61 reference.fa |
61 '$pool.input' | 62 '$pool.input' |
62 '$out_result' ##output | 63 '$out_result' ##output |
63 2>&1 | tee '$out_log' | 64 2>&1 | tee '$out_log' |
64 #end if | 65 #end if |
65 | |
66 #if $out_annotated: | 66 #if $out_annotated: |
67 ## medaka annotate errors out if the reference is lower case at a position it's annotating because it checks vs the ref base in the vcf | 67 ## medaka annotate errors out if the reference is lower case at a position it's annotating because it checks vs the ref base in the vcf |
68 && python '$convert_fasta' reference.fa upper_reference.fa | 68 && python '$convert_fasta' reference.fa upper_reference.fa |
69 && ln -s '$output_annotated.in_bam' in.bam | 69 && ln -s '$output_annotated.in_bam' in.bam |
70 && ln -s '$output_annotated.in_bam.metadata.bam_index' in.bai | 70 && ln -s '$output_annotated.in_bam.metadata.bam_index' in.bai |
71 && medaka tools annotate --pad $output_annotated.pad '$out_result' upper_reference.fa in.bam tmp.vcf | 71 && medaka tools annotate --dpsp --pad $output_annotated.pad '$out_result' upper_reference.fa in.bam tmp.vcf |
72 && '$__tool_directory__/convert_VCF_info_fields.py' tmp.vcf '$out_annotated' | 72 && python '$__tool_directory__/convert_VCF_info_fields.py' tmp.vcf '$out_annotated' |
73 #end if | 73 #end if |
74 ]]></command> | 74 ]]></command> |
75 <inputs> | 75 <inputs> |
76 <conditional name="pool"> | 76 <conditional name="pool"> |
77 <param name="pool_mode" type="select" label="Are you pooling HDF5 datasets?"> | 77 <param name="pool_mode" type="select" label="Are you pooling HDF5 datasets?"> |
78 <option value="No" selected="True">No</option> | 78 <option value="No" selected="true">No</option> |
79 <option value="Yes">Yes</option> | 79 <option value="Yes">Yes</option> |
80 </param> | 80 </param> |
81 <when value="Yes"> | 81 <when value="Yes"> |
82 <param name="inputs" type="data" format="h5" multiple="true" label="Select consensus file(s)"/> | 82 <param name="inputs" type="data" format="h5" multiple="true" label="Select consensus file(s)"/> |
83 </when> | 83 </when> |
94 <add value="."/> | 94 <add value="."/> |
95 </valid> | 95 </valid> |
96 </sanitizer> | 96 </sanitizer> |
97 </param> | 97 </param> |
98 <param argument="--verbose" type="boolean" truevalue="--verbose" falsevalue="" label="Populate VCF info fields?"/> | 98 <param argument="--verbose" type="boolean" truevalue="--verbose" falsevalue="" label="Populate VCF info fields?"/> |
99 <param argument="--ambig_ref" type="boolean" truevalue="--ambig_ref" falsevalue="" label="Decode variants at ambiguous reference positions?" checked="false"/> | |
100 <param argument="--gvcf" type="boolean" truevalue="--gvcf" falsevalue="" label="Output VCF records for reference loci predicted to be non-variant?" checked="false"/> | |
99 <conditional name="output_annotated"> | 101 <conditional name="output_annotated"> |
100 <param name="output_annotated_select" type="select" label="Output annotated VCF?" help="Annotate allele frequency, depth of coverage, etc for each variant (requires BAM file)"> | 102 <param name="output_annotated_select" type="select" label="Output annotated VCF?" help="Annotate allele frequency, depth of coverage, etc for each variant (requires BAM file)"> |
101 <option value="true" selected="true">Output annotated VCF</option> | 103 <option value="true" selected="true">Output annotated VCF</option> |
102 <option value="false">Don't output annotated VCF</option> | 104 <option value="false">Don't output annotated VCF</option> |
103 </param> | 105 </param> |
127 <param name="pool_mode" value="Yes"/> | 129 <param name="pool_mode" value="Yes"/> |
128 <param name="inputs" value="medaka_test.hdf,medaka_test.hdf"/> | 130 <param name="inputs" value="medaka_test.hdf,medaka_test.hdf"/> |
129 </conditional> | 131 </conditional> |
130 <conditional name="reference_source"> | 132 <conditional name="reference_source"> |
131 <param name="reference_source_selector" value="history"/> | 133 <param name="reference_source_selector" value="history"/> |
132 <param name="ref_file" value="ref.fasta"/> | 134 <param name="ref_file" value="ref.fasta.gz"/> |
133 </conditional> | 135 </conditional> |
136 <param name="ambig_ref" value="true"/> | |
134 <conditional name="output_annotated"> | 137 <conditional name="output_annotated"> |
135 <param name="output_annotated_select" value="true"/> | 138 <param name="output_annotated_select" value="true"/> |
136 <param name="in_bam" value="medaka_test.bam"/> | 139 <param name="in_bam" value="medaka_test.bam"/> |
137 </conditional> | 140 </conditional> |
138 <param name="output_log_bool" value="true"/> | 141 <param name="output_log_bool" value="true"/> |
144 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> | 147 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> |
145 </assert_contents> | 148 </assert_contents> |
146 </output> | 149 </output> |
147 <output name="out_annotated"> | 150 <output name="out_annotated"> |
148 <assert_contents> | 151 <assert_contents> |
149 <has_n_lines n="22"/> | 152 <has_n_lines n="23"/> |
150 <has_line line="##fileformat=VCFv4.1" /> | 153 <has_line line="##fileformat=VCFv4.1" /> |
151 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> | 154 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> |
152 <has_line_matching expression="##convert_VCF_info_fields=[0-9]+\.[0-9]+" /> | 155 <has_line_matching expression="##convert_VCF_info_fields=[0-9]+\.[0-9]+" /> |
153 </assert_contents> | 156 </assert_contents> |
154 </output> | 157 </output> |
166 </conditional> | 169 </conditional> |
167 <conditional name="reference_source"> | 170 <conditional name="reference_source"> |
168 <param name="reference_source_selector" value="history"/> | 171 <param name="reference_source_selector" value="history"/> |
169 <param name="ref_file" value="ref.fasta.gz" ftype="fasta.gz"/> | 172 <param name="ref_file" value="ref.fasta.gz" ftype="fasta.gz"/> |
170 </conditional> | 173 </conditional> |
174 <param name="ambig_ref" value="true"/> | |
171 <conditional name="output_annotated"> | 175 <conditional name="output_annotated"> |
172 <param name="output_annotated_select" value="true"/> | 176 <param name="output_annotated_select" value="true"/> |
173 <param name="in_bam" value="medaka_test.bam"/> | 177 <param name="in_bam" value="medaka_test.bam"/> |
174 </conditional> | 178 </conditional> |
175 <param name="output_log_bool" value="true"/> | 179 <param name="output_log_bool" value="true"/> |
181 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> | 185 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> |
182 </assert_contents> | 186 </assert_contents> |
183 </output> | 187 </output> |
184 <output name="out_annotated"> | 188 <output name="out_annotated"> |
185 <assert_contents> | 189 <assert_contents> |
186 <has_n_lines n="22"/> | 190 <has_n_lines n="23"/> |
187 <has_line line="##fileformat=VCFv4.1" /> | 191 <has_line line="##fileformat=VCFv4.1" /> |
188 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> | 192 <has_line_matching expression="##medaka_version=[0-9]+\.[0-9]+\.[0-9]+" /> |
189 <has_line_matching expression="##convert_VCF_info_fields=[0-9]+\.[0-9]+" /> | 193 <has_line_matching expression="##convert_VCF_info_fields=[0-9]+\.[0-9]+" /> |
190 </assert_contents> | 194 </assert_contents> |
191 </output> | 195 </output> |