Mercurial > repos > greg > vsnp_get_snps
comparison vsnp_get_snps.xml @ 1:770834ba75e4 draft
Uploaded
author | greg |
---|---|
date | Sat, 14 Nov 2020 09:07:53 +0000 |
parents | ee4ef1fc23c6 |
children | 7471707d3fb4 |
comparison
equal
deleted
inserted
replaced
0:ee4ef1fc23c6 | 1:770834ba75e4 |
---|---|
19 #set reference = '?' | 19 #set reference = '?' |
20 #for $i in $input_vcf_collection: | 20 #for $i in $input_vcf_collection: |
21 #set reference = $i.metadata.dbkey | 21 #set reference = $i.metadata.dbkey |
22 #set filename = $i.file_name | 22 #set filename = $i.file_name |
23 #set name = $i.name | 23 #set name = $i.name |
24 ln -s $filename $input_vcf_dir/$name && | 24 ln -s '$filename' '$input_vcf_dir/$name' && |
25 #end for | 25 #end for |
26 #if str($input_zc_vcf_type) == "single": | 26 #if str($input_zc_vcf_type) == "single": |
27 #set input_zc_vcf = $input_zc_vcf_type_cond.input_zc_vcf | 27 #set input_zc_vcf = $input_zc_vcf_type_cond.input_zc_vcf |
28 #set file_name_base = $os.path.basename($input_zc_vcf.file_name) | 28 #set file_name_base = $os.path.basename($input_zc_vcf.file_name) |
29 ln -s $input_zc_vcf $input_vcf_dir/$file_name_base && | 29 ln -s '$input_zc_vcf' '$input_vcf_dir/$file_name_base' && |
30 #else | 30 #else |
31 #for $i in $input_zc_vcf_type_cond.input_zc_vcf_collection: | 31 #for $i in $input_zc_vcf_type_cond.input_zc_vcf_collection: |
32 #set filename = $i.file_name | 32 #set filename = $i.file_name |
33 #set name = $i.name | 33 #set name = $i.name |
34 ln -s $filename $input_vcf_dir/$name && | 34 ln -s '$filename' '$input_vcf_dir/$name' && |
35 #end for | 35 #end for |
36 #end if | 36 #end if |
37 #if str($excel_grouper_cond.excel_grouper) == "yes": | 37 #if str($excel_grouper_cond.excel_grouper) == "yes": |
38 #set excel_file = 'No genome specified for input VCF (database) file(s)' | |
38 #set excel_grouper_source = $excel_grouper_cond.excel_grouper_source_cond.excel_grouper_source | 39 #set excel_grouper_source = $excel_grouper_cond.excel_grouper_source_cond.excel_grouper_source |
39 #if str($excel_grouper_source) == "cached": | 40 #if str($excel_grouper_source) == "cached": |
40 #set excel_fields = $__app__.tool_data_tables['vsnp_excel'].get_fields() | 41 #set excel_fields = $__app__.tool_data_tables['vsnp_excel'].get_fields() |
41 #for $i in $excel_fields: | 42 #for $i in $excel_fields: |
42 #if str($i[0]) == $reference: | 43 #if str($i[0]) == $reference: |
47 #else: | 48 #else: |
48 #set excel_file = $excel_grouper_cond.excel_grouper_source_cond.excel_grouper_file | 49 #set excel_file = $excel_grouper_cond.excel_grouper_source_cond.excel_grouper_file |
49 #end if | 50 #end if |
50 #end if | 51 #end if |
51 python '$__tool_directory__/vsnp_get_snps.py' | 52 python '$__tool_directory__/vsnp_get_snps.py' |
52 --processes $processes | 53 --processes \${GALAXY_SLOTS:-4} |
53 --reference '$reference' | 54 --reference '$reference' |
54 #if str($excel_grouper_cond.excel_grouper) == "yes": | 55 #if str($excel_grouper_cond.excel_grouper) == "yes": |
55 --excel_grouper_file '$excel_file' | 56 --excel_grouper_file '$excel_file' |
56 #end if | 57 #end if |
57 #if str($all_isolates) == "Yes": | 58 #if str($all_isolates) == "Yes": |
107 </conditional> | 108 </conditional> |
108 <param name="all_isolates" type="select" display="radio" label="Create table with all isolates?"> | 109 <param name="all_isolates" type="select" display="radio" label="Create table with all isolates?"> |
109 <option value="No" selected="true">No</option> | 110 <option value="No" selected="true">No</option> |
110 <option value="Yes">Yes</option> | 111 <option value="Yes">Yes</option> |
111 </param> | 112 </param> |
112 <param name="processes" type="integer" min="1" max="20" value="8" label="Number of processes for job splitting"/> | |
113 </inputs> | 113 </inputs> |
114 <outputs> | 114 <outputs> |
115 <collection name="snps" type="list" label="${tool.name} (SNPs) on ${on_string}"> | 115 <collection name="snps" type="list" label="${tool.name} (SNPs) on ${on_string}"> |
116 <discover_datasets pattern="__name__" directory="output_snps_dir" format="fasta" /> | 116 <discover_datasets pattern="__name__" directory="output_snps_dir" format="fasta"/> |
117 </collection> | 117 </collection> |
118 <collection name="json_avg_mq" type="list" label="${tool.name} (average MQ) on ${on_string}"> | 118 <collection name="json_avg_mq" type="list" label="${tool.name} (average MQ) on ${on_string}"> |
119 <discover_datasets pattern="__name__" directory="output_json_avg_mq_dir" format="json" /> | 119 <discover_datasets pattern="__name__" directory="output_json_avg_mq_dir" format="json"/> |
120 </collection> | 120 </collection> |
121 <collection name="json_snps" type="list" label="${tool.name} (SNPs as json) on ${on_string}"> | 121 <collection name="json_snps" type="list" label="${tool.name} (SNPs as json) on ${on_string}"> |
122 <discover_datasets pattern="__name__" directory="output_json_snps_dir" format="json" /> | 122 <discover_datasets pattern="__name__" directory="output_json_snps_dir" format="json"/> |
123 </collection> | 123 </collection> |
124 <data name="output_summary" format="html" label="${tool.name} (summary) on ${on_string}"/> | 124 <data name="output_summary" format="html" label="${tool.name} (summary) on ${on_string}"/> |
125 </outputs> | 125 </outputs> |
126 <tests> | 126 <tests> |
127 <test> | 127 <test> |
161 | 161 |
162 **Additional Options** | 162 **Additional Options** |
163 | 163 |
164 * **Use Excel file for grouping and filtering?** - select Yes to filter desired SNP positions by group. A cached Excel spreadsheet provides the most widely used SNP positions for grouping, but a custom spreadhseet can be selected from the current history. | 164 * **Use Excel file for grouping and filtering?** - select Yes to filter desired SNP positions by group. A cached Excel spreadsheet provides the most widely used SNP positions for grouping, but a custom spreadhseet can be selected from the current history. |
165 * **Job Resource Parameters** - an administrator for the Galaxy instance must configure this tool to display this option, so it may not be available. If it is, you can choose the number of processors to use for tool execution. | 165 * **Job Resource Parameters** - an administrator for the Galaxy instance must configure this tool to display this option, so it may not be available. If it is, you can choose the number of processors to use for tool execution. |
166 * **Number of processes for job splitting** - Select the number of processes for splitting the job to shorten execution time. | |
167 </help> | 166 </help> |
168 <citations> | 167 <citations> |
169 <citation type="bibtex"> | 168 <citation type="bibtex"> |
170 @misc{None, | 169 @misc{None, |
171 journal = {None}, | 170 journal = {None}, |