Mercurial > repos > sanbi-uwc > vcf_to_alignment
annotate vcf_to_alignment.xml @ 3:62fbd3f96b30 draft
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
author | sanbi-uwc |
---|---|
date | Fri, 03 Feb 2017 05:56:11 -0500 |
parents | a0c85f2d74a5 |
children | f58178c0f00d |
rev | line source |
---|---|
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="utf-8" ?> |
3
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
2 <tool id="vcf_to_alignment" name="Generate FASTA alignment from VCF collection" version="0.3"> |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
3 <description>Generate a multiple sequence alignment given a collection of variants and a reference sequence</description> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
4 <requirements> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
5 <requirement type="package" version="1.67">biopython</requirement> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
6 <requirement type="package" version="0.6.8">pyvcf</requirement> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
7 <requirement type="package" version="2.1.0">intervaltree</requirement> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
8 </requirements> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
9 <command detect_errors="aggressive"><![CDATA[ |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
10 #if str($reference.source) == 'history': |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
11 ln -s '${reference.history}' reference.fasta && |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
12 #end if |
3
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
13 python $__tool_directory__/vcf_to_msa.py |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
14 $remove_invariant_sites |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
15 --vcf_files |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
16 #for $vcf_file in $vcf_inputs: |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
17 '${vcf_file.element_identifier}^^^${vcf_file}' |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
18 #end for |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
19 --reference_file |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
20 #if str($reference.source) == 'history': |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
21 reference.fasta |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
22 #else |
1
4b9ddf64558d
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit c467fa511c437e11ea72b912975d64631b8d0f98
sanbi-uwc
parents:
0
diff
changeset
|
23 '${reference.builtin.fields.path}' |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
24 #end if |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
25 --output_file '${output_alignment}' |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
26 ]]> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
27 </command> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
28 <inputs> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
29 <param name="vcf_inputs" type="data_collection" format="vcf" collection_type="list" label="Variants (VCF format)" /> |
3
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
30 <param name="remove_invariant_sites" type="boolean" truevalue="--remove_invariant" falsevalue="" label="Remove invariant sites from alignment" /> |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
31 <conditional name="reference" label="Reference sequence source"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
32 <param name="source" type="select"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
33 <option value="history" selected="True">History</option> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
34 <option value="builtin">Built-in</option> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
35 </param> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
36 <when value="history"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
37 <param name="history" type="data" format="fasta" label="Reference sequence" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
38 </when> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
39 <when value="builtin"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
40 <param name="builtin" type="select" label="Reference sequence (FASTA format)"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
41 <options from_data_table="all_fasta" /> |
1
4b9ddf64558d
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit c467fa511c437e11ea72b912975d64631b8d0f98
sanbi-uwc
parents:
0
diff
changeset
|
42 <validator type="no_options" message="No FASTA datasets are available for the selected input dataset" /> |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
43 </param> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
44 </when> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
45 </conditional> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
46 </inputs> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
47 <outputs> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
48 <data name="output_alignment" format="fasta" label="Alignment ${on_string}" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
49 </outputs> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
50 <tests> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
51 <test> |
3
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
52 <param name="remove_invariant_sites" value="False" /> |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
53 <param name="vcf_inputs"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
54 <collection type="list"> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
55 <element name="vcf_inputs.vcf1" value="vcf1.vcf" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
56 <element name="vcf_inputs.vcf2" value="vcf2.vcf" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
57 <element name="vcf_inputs.vcf3" value="vcf3.vcf" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
58 </collection> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
59 </param> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
60 <param name="history" value="reference.fasta" ftype="fasta" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
61 <output name="output_alignment" value="output1.fasta" /> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
62 </test> |
3
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
63 <test> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
64 <param name="remove_invariant_sites" value="True" /> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
65 <param name="vcf_inputs"> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
66 <collection type="list"> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
67 <element name="vcf_inputs.vcf1" value="vcf1.vcf" /> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
68 <element name="vcf_inputs.vcf2" value="vcf2.vcf" /> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
69 <element name="vcf_inputs.vcf3" value="vcf3.vcf" /> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
70 </collection> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
71 </param> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
72 <param name="history" value="reference.fasta" ftype="fasta" /> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
73 <output name="output_alignment" value="output2.fasta" /> |
62fbd3f96b30
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
sanbi-uwc
parents:
2
diff
changeset
|
74 </test> |
0
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
75 </tests> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
76 <help><![CDATA[ |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
77 Using the SNPs identified by the VCF files given as input, generates a sequence including the |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
78 SNPs by combining them with the reference and then combines the sequences into a FASTA |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
79 format alignment file. |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
80 ]]> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
81 </help> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
82 <citations></citations> |
cc255feec53b
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit bc8fd85986b54f9d000e7d5869876fc9e479b6eb
sanbi-uwc
parents:
diff
changeset
|
83 </tool> |