annotate vcfs2fasta.xml @ 14:f72039c5faa4 draft

Uploaded
author ulfschaefer
date Wed, 16 Dec 2015 07:29:05 -0500
parents
children a2ffbf5f50c1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
1 <tool id="vcfs2fasta" name="VCFs to fasta" version="1.0">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
2 <description>Takes a set of VCF files and outputs a multi fasta file with only the variant positions.</description>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
3 <requirements>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
4 <requirement type="package" version="2.7.10">python</requirement>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
5 <requirement type="package" version="0.6.7">pyvcf</requirement>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
6 <requirement type="package" version="3.11">pyyaml</requirement>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
7 <requirement type="package" version="2.0.2">bintrees</requirement>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
8 <requirement type="package" version="1.66">biopython</requirement>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
9 <requirement type="package" version="1.4">matplotlib</requirement>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
10 </requirements>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
11 <stdio>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
12 <!-- Assume anything other than zero is an error -->
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
13 <exit_code range="1:" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
14 <exit_code range=":-1" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
15 </stdio>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
16 <command interpreter="bash">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
17 vcfs2fasta.sh
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
18 $output
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
19 #if str($mix_cond.mix) == "yes":
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
20 $mix_cond.mix_value
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
21 #else
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
22 NOTTHERE
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
23 #end if
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
24 #if str($cols_cond.cols) == "yes":
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
25 $cols_cond.column_ns
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
26 #else
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
27 NOTTHERE
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
28 #end if
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
29 #if str($sample_cond.sample) == "yes":
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
30 $sample_cond.sample_ns
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
31 #else
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
32 NOTTHERE
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
33 #end if
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
34 #if str($reference_cond.reference) == "yes":
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
35 $reference_cond.ref_fa
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
36 #else
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
37 NOTTHERE
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
38 #end if
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
39 #if str($include_cond.include) == "yes":
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
40 $include_cond.in_bed
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
41 #else
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
42 NOTTHERE
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
43 #end if
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
44 #if str($exclude_cond.exclude) == "yes":
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
45 $exclude_cond.ex_bed
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
46 #else
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
47 NOTTHERE
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
48 #end if
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
49 #for $i, $input_vcf in enumerate( $input_vcfs ):
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
50 "${input_vcf}"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
51 #end for
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
52 </command>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
53
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
54 <inputs>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
55 <param name="input_vcfs" type="data" multiple="true" format="vcf" label="Input VCF file(s)" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
56 <conditional name="mix_cond">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
57 <param name="mix" type="select" label="With Mixtures" help="Specify this option with a threshold to output mixtures above this threshold.">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
58 <option value="yes">Specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
59 <option value="no" selected="true">Do not specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
60 </param>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
61 <when value="yes">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
62 <param name="mix_value" type="float" value="0.5" label="Mixture value" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
63 </when>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
64 </conditional>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
65 <conditional name="cols_cond">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
66 <param name="cols" type="select" label="Column Ns" help="Keeps columns with fraction of Ns above specified threshold.">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
67 <option value="yes">Specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
68 <option value="no" selected="true">Do not specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
69 </param>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
70 <when value="yes">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
71 <param name="column_ns" type="float" value="0.5" label="Column Ns value" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
72 </when>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
73 </conditional>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
74 <conditional name="sample_cond">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
75 <param name="sample" type="select" label="Sample Ns" help="Keeps samples with fraction of Ns above specified threshold.">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
76 <option value="yes">Specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
77 <option value="no" selected="true">Do not specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
78 </param>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
79 <when value="yes">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
80 <param name="sample_ns" type="float" value="0.5" label="Sample Ns value" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
81 </when>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
82 </conditional>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
83 <conditional name="reference_cond">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
84 <param name="reference" type="select" label="Reference genome file" help="If path to reference specified, then whole genome will be outputted.">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
85 <option value="yes">Specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
86 <option value="no" selected="true">Do not specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
87 </param>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
88 <when value="yes">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
89 <param name="ref_fa" type="data" format="fasta" label="Reference fasta file" help="Fasta format"/>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
90 </when>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
91 </conditional>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
92 <conditional name="include_cond">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
93 <param name="include" type="select" label="Include region" help="Specify regions to include in a bed file.">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
94 <option value="yes">Specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
95 <option value="no" selected="true">Do not specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
96 </param>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
97 <when value="yes">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
98 <param name="in_bed" type="data" format="bed" label="Include regions bed file" help="bed format"/>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
99 </when>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
100 </conditional>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
101 <conditional name="exclude_cond">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
102 <param name="exclude" type="select" label="Exclude region" help="Specify regions to exclude in a bed file.">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
103 <option value="yes">Specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
104 <option value="no" selected="true">Do not specify</option>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
105 </param>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
106 <when value="yes">
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
107 <param name="ex_bed" type="data" format="bed" label="Exclude regions bed file" help="bed format"/>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
108 </when>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
109 </conditional>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
110 </inputs>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
111
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
112 <outputs>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
113 <data format="fasta" name="output" label="${tool.name} on ${on_string}: FASTA file" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
114 </outputs>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
115 <test>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
116 <param name="input_vcfs" value="1_short.vcf" ftype="vcf" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
117 <param name="input_vcfs" value="2_short.vcf" ftype="vcf" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
118 <output name="output" file="testresult.fa" ftype="fasta" />
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
119 </test>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
120 <help>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
121
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
122 </help>
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
123 </tool>