annotate vcftools_consensus.xml @ 0:79f5d34da277 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
author devteam
date Fri, 25 Nov 2016 07:30:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
1 <tool id="vcftools_consensus" name="Consensus" version="0.1.11">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
2 <description>Apply VCF variants to a fasta file to create consensus sequence</description>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
3
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
4 <requirements>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
5 <requirement type="package" version="0.1.19">samtools</requirement>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
6 <requirement type="package" version="1.3.2">htslib</requirement>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
7 <requirement type="package" version="0.1.11">vcftools</requirement>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
8 </requirements>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
9
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
10 <stdio>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
11 <!--<regex match=".*" source="both" level="log" description="tool progress"/>-->
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
12 <exit_code range="1:" level="fatal" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
13 </stdio>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
14
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
15 <command>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
16 <![CDATA[
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
17 ln -s '${variants}' variants.vcf &&
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
18 vcf-sort variants.vcf | bgzip -c > variants.sorted.vcf.gz &&
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
19
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
20 tabix -p vcf variants.sorted.vcf.gz &&
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
21
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
22 #if $ref_genome_source.index_source == 'history':
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
23 ln -s '${ref_genome_source.ref_file}' reference.fasta &&
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
24 samtools faidx reference.fasta &&
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
25 #end if
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
26
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
27 cat
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
28 #if $ref_genome_source.index_source == 'builtin'
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
29 '${ ref_genome_source.reference_genome.fields.path }'
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
30 #else
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
31 reference.fasta
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
32 #end if
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
33 | vcf-consensus variants.sorted.vcf.gz > '${output}'
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
34 ]]>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
35 </command>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
36 <inputs>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
37 <conditional name="ref_genome_source">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
38 <param name="index_source" type="select" label="Reference genome source">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
39 <option value="builtin">Built-in genome</option>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
40 <option value="history">History</option>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
41 </param>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
42 <when value="builtin">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
43 <param name="reference_genome" type="select">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
44 <options from_data_table="fasta_indexes">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
45 <filter column="2" type="sort_by" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
46 <validator message="No suitable reference genomes found" type="no_options" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
47 </options>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
48 </param>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
49 </when>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
50 <when value="history">
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
51 <param name="ref_file" type="data" format="fasta" label="Reference genome" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
52 </when>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
53 </conditional>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
54 <param name="variants" label="Datasets containing Variants" type="data" format="vcf" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
55 </inputs>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
56
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
57 <outputs>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
58 <data name="output" format="fasta"/>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
59 </outputs>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
60
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
61 <tests>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
62 <test>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
63 <param name="index_source" value="history" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
64 <param ftype="fasta" name="ref_file" value="reference.fasta" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
65 <param ftype="vcf" name="variants" value="sample1.vcf" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
66 <output name="output" ftype="fasta" file="output1.fasta" />
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
67 </test>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
68 </tests>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
69
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
70 <help>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
71 Please see the VCFtools `documentation`__ for help and further information.
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
72
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
73 .. __: http://vcftools.sourceforge.net/docs.html
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
74 </help>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
75 <citations>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
76 <citation type="doi">10.1093/bioinformatics/btr330</citation>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
77 </citations>
79f5d34da277 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcftools/vcftools_consensus commit 5d67d705695dfee875bda85aa02ddf38924790a7
devteam
parents:
diff changeset
78 </tool>