0
|
1 <tool id="vcfleftalign" name="VCFleftAlign:" version="0.0.1">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="586c5ae5d57a38dae6b32ea831fb1f7cfa14c9bd">vcflib</requirement>
|
|
4 <!-- <requirement type="package" version="0.1.18">samtools</requirement> -->
|
|
5 </requirements>
|
|
6 <description>Left-align indels and complex variants in VCF dataset</description>
|
|
7 <command>
|
|
8 #set $reference_fasta_filename = "localref.fa"
|
|
9 #if str( $reference_source.reference_source_selector ) == "history":
|
|
10 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &&
|
|
11 #else:
|
|
12 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
|
|
13 #end if
|
|
14 vcfleftalign -r "${reference_fasta_filename}" -w "${window_size}" "${input_vcf}" > "${out_file1}"</command>
|
|
15 <inputs>
|
|
16 <param name="input_vcf" type="data" format="vcf" label="VCF dataset to left-align" />
|
|
17 <conditional name="reference_source">
|
|
18 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
|
|
19 <option value="cached">Locally cached</option>
|
|
20 <option value="history">History</option>
|
|
21 </param>
|
|
22 <when value="cached">
|
|
23 <param name="ref_file" type="select" label="Select reference genome">
|
|
24 <options from_data_table="fasta_indexes">
|
|
25 </options>
|
|
26 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
27 </param>
|
|
28 </when>
|
|
29 <when value="history"> <!-- FIX ME!!!! -->
|
|
30 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
|
|
31 </when>
|
|
32 </conditional>
|
|
33 <param name="window_size" type="integer" value="150" label="Use a window of this many bp when left-aligning" help="default = 150 bp" />
|
|
34 </inputs>
|
|
35 <outputs>
|
|
36 <data format="vcf" name="out_file1" />
|
|
37 </outputs>
|
|
38 <stdio>
|
|
39 <exit_code range="1:" level="fatal" />
|
|
40 </stdio>
|
|
41 <tests>
|
|
42 <test>
|
|
43 <param name="reference_source_selector" value="history" />
|
|
44 <param name="input_vcf" value="vcflib-phix.vcf"/>
|
|
45 <param name="ref_file" value="vcflib-test-genome-phix.fa" />
|
|
46 <param name="window_size" value="150" />
|
|
47 <output name="out_file1" file="vcfleftalign-test1.vcf"/>
|
|
48 </test>
|
|
49 </tests>
|
|
50 <help>
|
|
51
|
|
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.
|
|
53
|
|
54 ----
|
|
55
|
|
56 Vcfleftalign is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
|
|
57
|
|
58 </help>
|
|
59 </tool>
|