|
4
|
1 <tool id="affr2vcf" name="Convert Affymetrix" version="1.9">
|
|
|
2 <description>genotype calls and intensities to VCF</description>
|
|
|
3 <requirements>
|
|
|
4 <requirement type="package" version="1.9">bcftools-gtc2vcf-plugin</requirement>
|
|
|
5 </requirements>
|
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
|
|
7 #set text_outputs_dir = 'text_outputs'
|
|
|
8 mkdir $text_outputs_dir &&
|
|
|
9 bcftools +affy2vcf.so
|
|
7
|
10 #if str($reference_genome_source_cond.reference_genome_source) == "history":
|
|
|
11 --fasta_ref '$reference_genome_source_cond.history_item'
|
|
|
12 #else:
|
|
|
13 --fasta_ref '$reference_genome_source_cond.locally_cached_item'
|
|
|
14 #end if
|
|
4
|
15 --annot '$annot'
|
|
|
16 --snp-posteriors '$text_outputs_dir/snp_posteriors.txt'
|
|
|
17 --summary '$text_outputs_dir/summary.txt'
|
|
|
18 --report '$text_outputs_dir/report.txt'
|
|
|
19 --calls '$text_outputs_dir/calls.txt'
|
|
|
20 --confidences '$text_outputs_dir/confidences.txt'
|
|
7
|
21 #if str($output_gender_estimate) == "yes"
|
|
4
|
22 --sex '$text_outputs_dir/gender_estimate.txt'
|
|
|
23 #end if
|
|
7
|
24 #if str($append_version) == "no":
|
|
4
|
25 --no-version
|
|
|
26 #end if
|
|
|
27 --output '$output'
|
|
|
28 --output_type $output_type
|
|
|
29 --threads \${GALAXY_SLOTS:-4}
|
|
|
30 ]]></command>
|
|
|
31 <inputs>
|
|
|
32 <param name="annot" type="data" format="csv" label="Probeset annotation file" />
|
|
7
|
33 <conditional name="reference_genome_source_cond">
|
|
|
34 <param name="reference_genome_source" type="select" label="Will you select a reference reference genome from your history or use a locally cached genome index?">
|
|
5
|
35 <option value="history" selected="true">Use a reference genome from my history</option>
|
|
|
36 <option value="cached">Use a locally cached genome index</option>
|
|
|
37 </param>
|
|
|
38 <when value="history">
|
|
7
|
39 <param name="history_item" type="data" format="fasta" label="Select reference genome" />
|
|
5
|
40 </when>
|
|
|
41 <when value="cached">
|
|
7
|
42 <param name="locally_cached_item" type="select" format="fasta" label="Fasta reference sequence">
|
|
5
|
43 <options from_data_table="all_fasta">
|
|
|
44 <column name="name" index="1"/>
|
|
|
45 <column name="value" index="2"/>
|
|
|
46 <column name="path" index="2"/>
|
|
|
47 <filter type="sort_by" column="1"/>
|
|
|
48 <validator type="no_options" message="No cached Fasta genome references are available." />
|
|
|
49 </options>
|
|
|
50 </param>
|
|
|
51 </when>
|
|
|
52 </conditional>
|
|
7
|
53 <param name="output_gender_estimate" type="select" force_select="true" label="Output apt-probeset-genotype gender estimate?">
|
|
|
54 <option value="no" selected="true">No</option>
|
|
|
55 <option value="yes">Yes</option>
|
|
|
56 </param>
|
|
|
57 <param name="append_version" type="select" force_select="true" label="Append version and command line to the header?">
|
|
|
58 <option value="no" selected="true">No</option>
|
|
|
59 <option value="yes">Yes</option>
|
|
|
60 </param>
|
|
|
61 <param name="output_type" type="select" force_select="true" label="Select format for output?">
|
|
|
62 <option value="v" selected="true">Uncompressed VCF</option>
|
|
|
63 <option value="z">Compressed VCF</option>
|
|
|
64 <option value="u" selected="true">Uncompressed BCF</option>
|
|
|
65 <option value="b">Compressed BCF</option>
|
|
|
66 </param>
|
|
4
|
67 </inputs>
|
|
|
68 <outputs>
|
|
|
69 <collection name="txt_outputs" type="list" label="${tool.name} (reports) on ${on_string}">
|
|
|
70 <discover_datasets pattern="__name__" directory="output" format="txt" />
|
|
|
71 </collection>
|
|
|
72 <data name="output" format="vcf" />
|
|
|
73 </outputs>
|
|
|
74 <tests>
|
|
|
75 <test>
|
|
|
76 </test>
|
|
|
77 </tests>
|
|
|
78 <help>
|
|
|
79 This tool converts Affymetrix genotype calls and intensity files to VCF format.
|
|
|
80
|
|
|
81 -----
|
|
|
82
|
|
|
83 **Required options**
|
|
|
84
|
|
|
85 **Other options**
|
|
|
86 </help>
|
|
|
87 <citations>
|
|
|
88 <citation type="bibtex">
|
|
|
89 @misc{None,
|
|
|
90 journal = {None},
|
|
|
91 author = {Genovese, Giulio},
|
|
|
92 title = {None},
|
|
|
93 year = {None},
|
|
|
94 url = {https://github.com/freeseek/gtc2vcf},}
|
|
|
95 </citation>
|
|
|
96 </citations>
|
|
|
97 </tool>
|