0
|
1 <tool id="cfsan_snp_pipeline_merge_vcfs" name="CFSAN SNP Pipeline: merge vcfs" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
|
|
2 <description>from multiple samples</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements"/>
|
|
7 <command detect_errors="exit_code"><![CDATA[
|
1
|
8 python '$__tool_directory__/snp_wind.py' ./ -p 'consensus.vcf'
|
|
9 #for $input_vcf in $input_vcf_collection
|
|
10 -n '$input_vcf.element_identifier' -f '$input_vcf'
|
|
11 #end for
|
|
12 > ./file
|
0
|
13 && cfsan_snp_pipeline merge_vcfs ./file
|
|
14 ]]></command>
|
|
15 <inputs>
|
1
|
16 <param name="input_vcf_collection" type="data_collection" format="vcf" collection_type="list" label="Collection of VCF files"/>
|
0
|
17 </inputs>
|
|
18 <outputs>
|
|
19 <data name="output" format="vcf"/>
|
|
20 </outputs>
|
|
21 <tests>
|
|
22 <test>
|
|
23 <param name="input_vcf_collection">
|
|
24 <collection type="list">
|
|
25 <element name="sample1" value="samples/sample1/consensus.vcf" ftype="vcf"/>
|
|
26 <element name="sample2" value="samples/sample2/consensus.vcf" ftype="vcf"/>
|
|
27 <element name="sample3" value="samples/sample3/consensus.vcf" ftype="vcf"/>
|
|
28 <element name="sample4" value="samples/sample4/consensus.vcf" ftype="vcf"/>
|
|
29 </collection>
|
|
30 </param>
|
|
31 <output name="output" ftype="vcf">
|
|
32 <assert_contents>
|
|
33 <has_size value="0" delta="100"/>
|
|
34 </assert_contents>
|
|
35 </output>
|
|
36 </test>
|
|
37 </tests>
|
|
38 <help><![CDATA[
|
|
39 **What it does**
|
|
40
|
|
41 Merges the consensus vcf files from all samples into a single multi-vcf file.
|
|
42
|
|
43 **More information**
|
|
44
|
|
45 CFSAN SNP Pipeline `merge sites documentation <https://snp-pipeline.readthedocs.io/en/latest/cmd_ref.html#merge-sites>`_
|
|
46 ]]></help>
|
|
47 <expand macro="citations"/>
|
|
48 </tool>
|
|
49
|