annotate affy2vcf.xml @ 0:a1e53778a82b draft

Uploaded
author greg
date Fri, 12 Oct 2018 09:46:32 -0400
parents
children a2f0931898be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a1e53778a82b Uploaded
greg
parents:
diff changeset
1 <tool id="affr2vcf" name="Convert Affymetrix" version="1.9">
a1e53778a82b Uploaded
greg
parents:
diff changeset
2 <description>genotype calls and intensities to VCF</description>
a1e53778a82b Uploaded
greg
parents:
diff changeset
3 <requirements>
a1e53778a82b Uploaded
greg
parents:
diff changeset
4 <requirement type="package" version="1.9">bcftools-gtc2vcf-plugin</requirement>
a1e53778a82b Uploaded
greg
parents:
diff changeset
5 </requirements>
a1e53778a82b Uploaded
greg
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
a1e53778a82b Uploaded
greg
parents:
diff changeset
7 #set text_outputs_dir = 'text_outputs'
a1e53778a82b Uploaded
greg
parents:
diff changeset
8 export BCFTOOLS_PLUGINS=\$(dirname `which bcftools`)/../libexec/bcftools &&
a1e53778a82b Uploaded
greg
parents:
diff changeset
9 mkdir $text_outputs_dir &&
a1e53778a82b Uploaded
greg
parents:
diff changeset
10 bcftools +\$BCFTOOLS_PLUGINS/affy2vcf.so
a1e53778a82b Uploaded
greg
parents:
diff changeset
11 #if str($reference_genome_source_cond.reference_genome_source) == "history":
a1e53778a82b Uploaded
greg
parents:
diff changeset
12 --fasta-ref '$reference_genome_source_cond.history_item'
a1e53778a82b Uploaded
greg
parents:
diff changeset
13 #else:
a1e53778a82b Uploaded
greg
parents:
diff changeset
14 --fasta-ref '$reference_genome_source_cond.locally_cached_item'
a1e53778a82b Uploaded
greg
parents:
diff changeset
15 #end if
a1e53778a82b Uploaded
greg
parents:
diff changeset
16 --annot '$annot'
a1e53778a82b Uploaded
greg
parents:
diff changeset
17 --snp-posteriors '$snp_posteriors'
a1e53778a82b Uploaded
greg
parents:
diff changeset
18 --summary '$summary'
a1e53778a82b Uploaded
greg
parents:
diff changeset
19 --report '$report'
a1e53778a82b Uploaded
greg
parents:
diff changeset
20 --calls '$calls'
a1e53778a82b Uploaded
greg
parents:
diff changeset
21 --confidences '$confidences'
a1e53778a82b Uploaded
greg
parents:
diff changeset
22 #if str($output_gender_estimate_cond.output_gender_estimate) == "yes"
a1e53778a82b Uploaded
greg
parents:
diff changeset
23 --sex '$gender_estimate'
a1e53778a82b Uploaded
greg
parents:
diff changeset
24 #end if
a1e53778a82b Uploaded
greg
parents:
diff changeset
25 #if str($append_version) == "no":
a1e53778a82b Uploaded
greg
parents:
diff changeset
26 --no-version
a1e53778a82b Uploaded
greg
parents:
diff changeset
27 #end if
a1e53778a82b Uploaded
greg
parents:
diff changeset
28 --output '$output'
a1e53778a82b Uploaded
greg
parents:
diff changeset
29 --output-type $output_type
a1e53778a82b Uploaded
greg
parents:
diff changeset
30 --threads \${GALAXY_SLOTS:-4}
a1e53778a82b Uploaded
greg
parents:
diff changeset
31 ]]></command>
a1e53778a82b Uploaded
greg
parents:
diff changeset
32 <inputs>
a1e53778a82b Uploaded
greg
parents:
diff changeset
33 <conditional name="reference_genome_source_cond">
a1e53778a82b Uploaded
greg
parents:
diff changeset
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?">
a1e53778a82b Uploaded
greg
parents:
diff changeset
35 <option value="history" selected="true">Use a reference genome from my history</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
36 <option value="cached">Use a locally cached genome index</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
37 </param>
a1e53778a82b Uploaded
greg
parents:
diff changeset
38 <when value="history">
a1e53778a82b Uploaded
greg
parents:
diff changeset
39 <param name="history_item" type="data" format="fasta" label="Select reference genome" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
40 </when>
a1e53778a82b Uploaded
greg
parents:
diff changeset
41 <when value="cached">
a1e53778a82b Uploaded
greg
parents:
diff changeset
42 <param name="locally_cached_item" type="select" format="fasta" label="Fasta reference sequence">
a1e53778a82b Uploaded
greg
parents:
diff changeset
43 <options from_data_table="all_fasta">
a1e53778a82b Uploaded
greg
parents:
diff changeset
44 <column name="name" index="1"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
45 <column name="value" index="2"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
46 <column name="path" index="2"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
47 <filter type="sort_by" column="1"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
48 <validator type="no_options" message="No cached Fasta genome references are available." />
a1e53778a82b Uploaded
greg
parents:
diff changeset
49 </options>
a1e53778a82b Uploaded
greg
parents:
diff changeset
50 </param>
a1e53778a82b Uploaded
greg
parents:
diff changeset
51 </when>
a1e53778a82b Uploaded
greg
parents:
diff changeset
52 </conditional>
a1e53778a82b Uploaded
greg
parents:
diff changeset
53 <param name="annot" type="data" format="csv" label="Probeset annotation file" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
54 <param name="summary" type="data" format="txt" label="Apt-probeset genotype summary file" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
55 <param name="snp_posteriors" type="data" format="txt" label="Apt-probeset genotype snp-posteriors file" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
56 <param name="report" type="data" format="txt" label="Apt-probeset genotype report file" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
57 <param name="confidences" type="data" format="txt" label="Apt-probeset genotype confidences file" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
58 <param name="calls" type="data" format="txt" label="Apt-probeset genotype calls file" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
59 <conditional name="output_gender_estimate_cond">
a1e53778a82b Uploaded
greg
parents:
diff changeset
60 <param name="output_gender_estimate" type="select" force_select="true" label="Output apt-probeset-genotype gender estimate?">
a1e53778a82b Uploaded
greg
parents:
diff changeset
61 <option value="no" selected="true">No</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
62 <option value="yes">Yes</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
63 </param>
a1e53778a82b Uploaded
greg
parents:
diff changeset
64 <when value="no"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
65 <when value="yes"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
66 </conditional>
a1e53778a82b Uploaded
greg
parents:
diff changeset
67 <param name="append_version" type="select" force_select="true" label="Append version and command line to the header?">
a1e53778a82b Uploaded
greg
parents:
diff changeset
68 <option value="no" selected="true">No</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
69 <option value="yes">Yes</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
70 </param>
a1e53778a82b Uploaded
greg
parents:
diff changeset
71 <param name="output_type" type="select" force_select="true" label="Select format for output?">
a1e53778a82b Uploaded
greg
parents:
diff changeset
72 <option value="v" selected="true">Uncompressed VCF</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
73 <option value="z">Compressed VCF</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
74 <option value="u" selected="true">Uncompressed BCF</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
75 <option value="b">Compressed BCF</option>
a1e53778a82b Uploaded
greg
parents:
diff changeset
76 </param>
a1e53778a82b Uploaded
greg
parents:
diff changeset
77 </inputs>
a1e53778a82b Uploaded
greg
parents:
diff changeset
78 <outputs>
a1e53778a82b Uploaded
greg
parents:
diff changeset
79 <data name="output" format="vcf" />
a1e53778a82b Uploaded
greg
parents:
diff changeset
80 <data name="output_gender_estimate" format="txt" label="${tool.name} (gender estimate) on ${on_string}">
a1e53778a82b Uploaded
greg
parents:
diff changeset
81 <filter>output_gender_estimate_cond['output_gender_estimate'] == "yes"</filter>
a1e53778a82b Uploaded
greg
parents:
diff changeset
82 </data>
a1e53778a82b Uploaded
greg
parents:
diff changeset
83 </outputs>
a1e53778a82b Uploaded
greg
parents:
diff changeset
84 <tests>
a1e53778a82b Uploaded
greg
parents:
diff changeset
85 <test>
a1e53778a82b Uploaded
greg
parents:
diff changeset
86 <param name="reference_genome_source" value="history"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
87 <param name="history_item" value="GCF_000222465.1_Adig_1.1_genomic.fna" ftype="fasta"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
88 <param name="annot" value="annot.csv" ftype="csv"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
89 <param name="summary" value="summary.txt" ftype="txt"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
90 <param name="snp_posteriors" value="snp_posteriors.txt" ftype="txt"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
91 <param name="report" value="report.txt" ftype="txt"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
92 <param name="confidences" value="confidences.txt" ftype="txt"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
93 <param name="calls" value="calls.txt" ftype="txt"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
94 <output name="output" value="output.vcf" ftype="vcf"/>
a1e53778a82b Uploaded
greg
parents:
diff changeset
95 </test>
a1e53778a82b Uploaded
greg
parents:
diff changeset
96 </tests>
a1e53778a82b Uploaded
greg
parents:
diff changeset
97 <help>
a1e53778a82b Uploaded
greg
parents:
diff changeset
98 This tool converts Affymetrix genotype calls and intensity files to VCF format.
a1e53778a82b Uploaded
greg
parents:
diff changeset
99
a1e53778a82b Uploaded
greg
parents:
diff changeset
100 -----
a1e53778a82b Uploaded
greg
parents:
diff changeset
101
a1e53778a82b Uploaded
greg
parents:
diff changeset
102 **Required options**
a1e53778a82b Uploaded
greg
parents:
diff changeset
103
a1e53778a82b Uploaded
greg
parents:
diff changeset
104 **Other options**
a1e53778a82b Uploaded
greg
parents:
diff changeset
105 </help>
a1e53778a82b Uploaded
greg
parents:
diff changeset
106 <citations>
a1e53778a82b Uploaded
greg
parents:
diff changeset
107 <citation type="bibtex">
a1e53778a82b Uploaded
greg
parents:
diff changeset
108 @misc{None,
a1e53778a82b Uploaded
greg
parents:
diff changeset
109 journal = {None},
a1e53778a82b Uploaded
greg
parents:
diff changeset
110 author = {Genovese, Giulio},
a1e53778a82b Uploaded
greg
parents:
diff changeset
111 title = {None},
a1e53778a82b Uploaded
greg
parents:
diff changeset
112 year = {None},
a1e53778a82b Uploaded
greg
parents:
diff changeset
113 url = {https://github.com/freeseek/gtc2vcf},}
a1e53778a82b Uploaded
greg
parents:
diff changeset
114 </citation>
a1e53778a82b Uploaded
greg
parents:
diff changeset
115 </citations>
a1e53778a82b Uploaded
greg
parents:
diff changeset
116 </tool>