annotate vcfleftalign.xml @ 3:520aae0d09e2 draft default tip

Uploaded
author anton
date Mon, 15 Sep 2014 14:52:58 -0400
parents 42d8be06ca03
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
42d8be06ca03 Updated tool version to 0.0.2
Anton Nekrutenko <anton@bx.psu.edu>
parents: 1
diff changeset
1 <tool id="vcfleftalign" name="VCFleftAlign:" version="0.0.2">
0
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
2 <requirements>
3
520aae0d09e2 Uploaded
anton
parents: 2
diff changeset
3 <requirement type="package" version="8a5602bf07">vcflib</requirement>
0
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
4 <!-- <requirement type="package" version="0.1.18">samtools</requirement> -->
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
5 </requirements>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
6 <description>Left-align indels and complex variants in VCF dataset</description>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
7 <command>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
8 #set $reference_fasta_filename = "localref.fa"
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
9 #if str( $reference_source.reference_source_selector ) == "history":
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
10 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
11 #else:
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
12 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
13 #end if
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
14 vcfleftalign -r "${reference_fasta_filename}" -w "${window_size}" "${input_vcf}" > "${out_file1}"</command>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
15 <inputs>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
16 <param name="input_vcf" type="data" format="vcf" label="VCF dataset to left-align" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
17 <conditional name="reference_source">
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
18 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
19 <option value="cached">Locally cached</option>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
20 <option value="history">History</option>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
21 </param>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
22 <when value="cached">
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
23 <param name="ref_file" type="select" label="Select reference genome">
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
24 <options from_data_table="fasta_indexes">
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
25 </options>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
26 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
27 </param>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
28 </when>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
29 <when value="history"> <!-- FIX ME!!!! -->
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
30 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
31 </when>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
32 </conditional>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
33 <param name="window_size" type="integer" value="150" label="Use a window of this many bp when left-aligning" help="default = 150 bp" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
34 </inputs>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
35 <outputs>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
36 <data format="vcf" name="out_file1" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
37 </outputs>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
38 <stdio>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
39 <exit_code range="1:" level="fatal" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
40 </stdio>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
41 <tests>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
42 <test>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
43 <param name="reference_source_selector" value="history" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
44 <param name="input_vcf" value="vcflib-phix.vcf"/>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
45 <param name="ref_file" value="vcflib-test-genome-phix.fa" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
46 <param name="window_size" value="150" />
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
47 <output name="out_file1" file="vcfleftalign-test1.vcf"/>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
48 </test>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
49 </tests>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
50 <help>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
51
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
52 Left-aligns variants in VCF dataset. Window size is determined dynamically according to the entropy of the regions flanking the indel. These must have entropy > 1 bit/bp, or be shorter than ~5kb.
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
53
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
54 ----
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
55
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
56 Vcfleftalign is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
57
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
58 </help>
ba62eabd3217 Imported from capsule None
anton
parents:
diff changeset
59 </tool>