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
|
2
|
12 > ./file &&
|
|
13 cfsan_snp_pipeline merge_vcfs ./file &&
|
|
14 mv snpma.vcf '$output'
|
0
|
15 ]]></command>
|
|
16 <inputs>
|
1
|
17 <param name="input_vcf_collection" type="data_collection" format="vcf" collection_type="list" label="Collection of VCF files"/>
|
0
|
18 </inputs>
|
|
19 <outputs>
|
2
|
20 <data name="output" label="SNP matrix" format="vcf"/>
|
0
|
21 </outputs>
|
|
22 <tests>
|
|
23 <test>
|
|
24 <param name="input_vcf_collection">
|
|
25 <collection type="list">
|
|
26 <element name="sample1" value="samples/sample1/consensus.vcf" ftype="vcf"/>
|
|
27 <element name="sample2" value="samples/sample2/consensus.vcf" ftype="vcf"/>
|
|
28 <element name="sample3" value="samples/sample3/consensus.vcf" ftype="vcf"/>
|
|
29 <element name="sample4" value="samples/sample4/consensus.vcf" ftype="vcf"/>
|
|
30 </collection>
|
|
31 </param>
|
|
32 <output name="output" ftype="vcf">
|
|
33 <assert_contents>
|
2
|
34 <has_size value="31888" delta="100"/>
|
0
|
35 </assert_contents>
|
|
36 </output>
|
|
37 </test>
|
|
38 </tests>
|
|
39 <help><![CDATA[
|
|
40 **What it does**
|
|
41
|
|
42 Merges the consensus vcf files from all samples into a single multi-vcf file.
|
|
43
|
|
44 **More information**
|
|
45
|
|
46 CFSAN SNP Pipeline `merge sites documentation <https://snp-pipeline.readthedocs.io/en/latest/cmd_ref.html#merge-sites>`_
|
|
47 ]]></help>
|
|
48 <expand macro="citations"/>
|
|
49 </tool>
|
|
50
|