annotate vcftools_consensus.xml @ 2:ee2618c3b7b7 draft default tip

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