annotate vcfleftalign.xml @ 4:29f9b782727e draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
author iuc
date Thu, 23 Jan 2020 08:09:46 -0500
parents d2406f98a782
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
d2406f98a782 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit c2af291b241e37e0a55adbc1fc72a9fa37d93582
iuc
parents: 2
diff changeset
1 <tool id="vcfleftalign" name="VCFleftAlign:" version="@WRAPPER_VERSION@+galaxy0">
2
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
2 <description>Left-align indels and complex variants in VCF dataset</description>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
3 <macros>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
4 <import>macros.xml</import>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
5 </macros>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
6 <expand macro="requirements"/>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
7 <expand macro="stdio" />
4
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
8 <command><![CDATA[
2
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
9 #set $reference_fasta_filename = "localref.fa"
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
10 #if str( $reference_source.reference_source_selector ) == "history":
4
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
11 ln -s '${reference_source.ref_file}' '${reference_fasta_filename}' &&
2
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
12 #else:
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
13 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
14 #end if
4
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
15 vcfleftalign -r '${reference_fasta_filename}' -w "${window_size}" '${input_vcf}' > '${out_file1}'
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
16 ]]></command>
2
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
17 <inputs>
4
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
18 <param name="input_vcf" type="data" format="vcf" label="VCF dataset to left-align" />
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
19 <conditional name="reference_source">
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
20 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
21 <option value="cached">Locally cached</option>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
22 <option value="history">History</option>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
23 </param>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
24 <when value="cached">
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
25 <param name="ref_file" type="select" label="Select reference genome">
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
26 <options from_data_table="fasta_indexes">
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
27 </options>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
28 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
29 </param>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
30 </when>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
31 <when value="history"> <!-- FIX ME!!!! -->
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
32 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
33 </when>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
34 </conditional>
29f9b782727e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcfleftalign commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 3
diff changeset
35 <param name="window_size" type="integer" value="150" label="Use a window of this many bp when left-aligning" help="default = 150 bp" />
2
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
36 </inputs>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
37 <outputs>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
38 <data format="vcf" name="out_file1" />
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
39 </outputs>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
40 <tests>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
41 <test>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
42 <param name="reference_source_selector" value="history" />
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
43 <param name="input_vcf" value="vcflib-phix.vcf"/>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
44 <param name="ref_file" value="vcflib-test-genome-phix.fa" />
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
45 <param name="window_size" value="150" />
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
46 <output name="out_file1" file="vcfleftalign-test1.vcf"/>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
47 </test>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
48 </tests>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
49 <help>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
50
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
51 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.
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
52
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
53 ----
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
54
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
55 Vcfleftalign @IS_PART_OF_VCFLIB@
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
56 </help>
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
57 <expand macro="citations" />
8e02d116b0f9 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
58 </tool>