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