Mercurial > repos > devteam > vcfleftalign
annotate vcfleftalign.xml @ 4:50cf7cabae50 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 12:58:13 +0000 |
parents | 9c4a2ef55965 |
children |
rev | line source |
---|---|
3
9c4a2ef55965
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
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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"/> |
f0982f54fef1
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
50cf7cabae50
"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
f0982f54fef1
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" |
f0982f54fef1
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
50cf7cabae50
"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
f0982f54fef1
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: |
f0982f54fef1
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 ) |
f0982f54fef1
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
50cf7cabae50
"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}' |
50cf7cabae50
"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
f0982f54fef1
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
50cf7cabae50
"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" /> |
50cf7cabae50
"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"> |
50cf7cabae50
"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"> |
50cf7cabae50
"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> |
50cf7cabae50
"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> |
50cf7cabae50
"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> |
50cf7cabae50
"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"> |
50cf7cabae50
"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"> |
50cf7cabae50
"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"> |
50cf7cabae50
"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> |
50cf7cabae50
"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"/> |
50cf7cabae50
"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> |
50cf7cabae50
"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> |
50cf7cabae50
"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!!!! --> |
50cf7cabae50
"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" /> |
50cf7cabae50
"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> |
50cf7cabae50
"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> |
50cf7cabae50
"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
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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" /> |
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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" /> |
f0982f54fef1
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"/> |
f0982f54fef1
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" /> |
f0982f54fef1
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" /> |
f0982f54fef1
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"/> |
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
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> |
f0982f54fef1
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
0
diff
changeset
|
50 |
f0982f54fef1
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. |
f0982f54fef1
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
0
diff
changeset
|
52 |
f0982f54fef1
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
0
diff
changeset
|
53 ---- |
f0982f54fef1
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
0
diff
changeset
|
54 |
f0982f54fef1
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@ |
f0982f54fef1
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> |
f0982f54fef1
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" /> |
f0982f54fef1
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> |