0
|
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 export BCFTOOLS_PLUGINS=\$(dirname `which bcftools`)/../libexec/bcftools &&
|
|
9 mkdir $text_outputs_dir &&
|
|
10 bcftools +\$BCFTOOLS_PLUGINS/affy2vcf.so
|
|
11 #if str($reference_genome_source_cond.reference_genome_source) == "history":
|
|
12 --fasta-ref '$reference_genome_source_cond.history_item'
|
|
13 #else:
|
|
14 --fasta-ref '$reference_genome_source_cond.locally_cached_item'
|
|
15 #end if
|
|
16 --annot '$annot'
|
|
17 --snp-posteriors '$snp_posteriors'
|
|
18 --summary '$summary'
|
|
19 --report '$report'
|
|
20 --calls '$calls'
|
|
21 --confidences '$confidences'
|
|
22 #if str($output_gender_estimate_cond.output_gender_estimate) == "yes"
|
1
|
23 --sex '$output_gender_estimate'
|
0
|
24 #end if
|
|
25 #if str($append_version) == "no":
|
|
26 --no-version
|
|
27 #end if
|
|
28 --output '$output'
|
|
29 --output-type $output_type
|
|
30 --threads \${GALAXY_SLOTS:-4}
|
|
31 ]]></command>
|
|
32 <inputs>
|
1
|
33 <param name="annot" type="data" format="csv" label="Probeset annotation file" />
|
|
34 <param name="summary" type="data" format="txt" label="Apt-probeset genotype summary file" />
|
|
35 <param name="snp_posteriors" type="data" format="txt" label="Apt-probeset genotype snp-posteriors file" />
|
|
36 <param name="report" type="data" format="txt" label="Apt-probeset genotype report file" />
|
|
37 <param name="confidences" type="data" format="txt" label="Apt-probeset genotype confidences file" />
|
|
38 <param name="calls" type="data" format="txt" label="Apt-probeset genotype calls file" />
|
0
|
39 <conditional name="reference_genome_source_cond">
|
1
|
40 <param name="reference_genome_source" type="select" label="Choose the source for the reference genome">
|
0
|
41 <option value="history" selected="true">Use a reference genome from my history</option>
|
|
42 <option value="cached">Use a locally cached genome index</option>
|
|
43 </param>
|
|
44 <when value="history">
|
|
45 <param name="history_item" type="data" format="fasta" label="Select reference genome" />
|
|
46 </when>
|
|
47 <when value="cached">
|
|
48 <param name="locally_cached_item" type="select" format="fasta" label="Fasta reference sequence">
|
|
49 <options from_data_table="all_fasta">
|
|
50 <column name="name" index="1"/>
|
|
51 <column name="value" index="2"/>
|
|
52 <column name="path" index="2"/>
|
|
53 <filter type="sort_by" column="1"/>
|
1
|
54 <validator type="no_options" message="No cached Fasta genome references are available for the build associated with the selected probeset annotation file." />
|
0
|
55 </options>
|
|
56 </param>
|
|
57 </when>
|
|
58 </conditional>
|
|
59 <conditional name="output_gender_estimate_cond">
|
|
60 <param name="output_gender_estimate" type="select" force_select="true" label="Output apt-probeset-genotype gender estimate?">
|
|
61 <option value="no" selected="true">No</option>
|
|
62 <option value="yes">Yes</option>
|
|
63 </param>
|
|
64 <when value="no"/>
|
|
65 <when value="yes"/>
|
|
66 </conditional>
|
|
67 <param name="append_version" type="select" force_select="true" label="Append version and command line to the header?">
|
|
68 <option value="no" selected="true">No</option>
|
|
69 <option value="yes">Yes</option>
|
|
70 </param>
|
1
|
71 <param name="output_type" type="select" force_select="true" label="Select format for output">
|
0
|
72 <option value="v" selected="true">Uncompressed VCF</option>
|
|
73 <option value="z">Compressed VCF</option>
|
|
74 <option value="u" selected="true">Uncompressed BCF</option>
|
|
75 <option value="b">Compressed BCF</option>
|
|
76 </param>
|
|
77 </inputs>
|
|
78 <outputs>
|
|
79 <data name="output" format="vcf" />
|
|
80 <data name="output_gender_estimate" format="txt" label="${tool.name} (gender estimate) on ${on_string}">
|
|
81 <filter>output_gender_estimate_cond['output_gender_estimate'] == "yes"</filter>
|
|
82 </data>
|
|
83 </outputs>
|
|
84 <tests>
|
|
85 <test>
|
|
86 <param name="reference_genome_source" value="history"/>
|
1
|
87 <param name="history_item" value="sub50_adig_genome.fasta" ftype="fasta"/>
|
|
88 <param name="annot" value="axiom_acropsnp_coral_annotation.r1.csv" ftype="csv"/>
|
|
89 <param name="summary" value="sub50_axiomgt1.summary.txt" ftype="txt"/>
|
|
90 <param name="snp_posteriors" value="sub50_axiomgt1.snp_posteriors.txt" ftype="txt"/>
|
|
91 <param name="report" value="axiomgt1.report.txt" ftype="txt"/>
|
|
92 <param name="confidences" value="sub50_axiomgt1.confidences.txt" ftype="txt"/>
|
|
93 <param name="calls" value="sub50_axiomgt1.calls.txt" ftype="txt"/>
|
0
|
94 <output name="output" value="output.vcf" ftype="vcf"/>
|
|
95 </test>
|
|
96 </tests>
|
|
97 <help>
|
|
98 This tool converts Affymetrix genotype calls and intensity files to VCF format.
|
|
99
|
|
100 -----
|
|
101
|
|
102 **Required options**
|
|
103
|
1
|
104 * **Probeset annotation file** - probeset annotation file produced by the sequencing run.
|
|
105 * **Apt-probeset genotype summary file** - apt-probeset genotype summary file produced by the sequencing run.
|
|
106 * **Apt-probeset genotype snp-posteriors file** - apt-probeset genotype snp-posteriors file produced by the sequencing run.
|
|
107 * **Apt-probeset genotype report file** - apt-probeset genotype report file produced by the sequencing run.
|
|
108 * **Apt-probeset genotype confidences file** - apt-probeset genotype confidences file produced by the sequencing run.
|
|
109 * **Apt-probeset genotype calls file** - apt-probeset genotype calls file produced by the sequencing run.
|
|
110 * **Choose the source for the reference genome** - select a reference genome from your history or one installed into your local Galaxy environment by a data manager tool.
|
|
111
|
0
|
112 **Other options**
|
1
|
113
|
|
114 * **Output apt-probeset-genotype gender estimate** - output apt-probeset-genotype gender estimate into an additional dataset.
|
|
115 * **Append version and command line to the header** - append version and command line to the header of the output VCF dataset.
|
|
116 * **Select format for output** - select one of uncompressed/compressed VCF/BCF.
|
0
|
117 </help>
|
|
118 <citations>
|
|
119 <citation type="bibtex">
|
|
120 @misc{None,
|
|
121 journal = {None},
|
|
122 author = {Genovese, Giulio},
|
|
123 title = {None},
|
|
124 year = {None},
|
|
125 url = {https://github.com/freeseek/gtc2vcf},}
|
|
126 </citation>
|
|
127 </citations>
|
|
128 </tool>
|