comparison bcftools_convert_to_vcf.xml @ 5:7b50ab23976c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 9d03fe38504a35d11660dadb44cb1beee32fcf4e
author iuc
date Thu, 13 Apr 2017 17:41:29 -0400
parents 19167fd970a3
children 367ba501b6eb
comparison
equal deleted inserted replaced
4:19167fd970a3 5:7b50ab23976c
4 <macros> 4 <macros>
5 <token name="@EXECUTABLE@">convert</token> 5 <token name="@EXECUTABLE@">convert</token>
6 <import>macros.xml</import> 6 <import>macros.xml</import>
7 </macros> 7 </macros>
8 <expand macro="requirements"> 8 <expand macro="requirements">
9 <requirement type="package" version="1.3.1">samtools</requirement> 9 <expand macro="samtools_requirement"/>
10 </expand> 10 </expand>
11 <expand macro="version_command" /> 11 <expand macro="version_command" />
12 <command detect_errors="aggressive"><![CDATA[ 12 <command detect_errors="aggressive"><![CDATA[
13 @PREPARE_ENV@ 13 @PREPARE_ENV@
14 #set $input_vcf = None 14 #set $input_vcf = None
15 #if $convert.convert_from == 'gvcf': 15 #if $convert.convert_from == 'gvcf':
16 #set $input_vcf = 'input.vcf.gz' 16 #set $input_vcf = 'input.vcf.gz'
17 #if $convert.input_file.is_of_type('vcf') 17 #if $convert.input_file.is_of_type('vcf')
18 bgzip -c "$convert.input_file" > $input_vcf && 18 bgzip -c '$convert.input_file' > $input_vcf &&
19 bcftools index $input_vcf && 19 bcftools index $input_vcf &&
20 #elif $convert.input_file.is_of_type('vcf_bgzip') 20 #elif $convert.input_file.is_of_type('vcf_bgzip')
21 ln -s "$convert.input_file" $input_vcf 21 ln -s '$convert.input_file' $input_vcf
22 #elif $convert.input_file.is_of_type('bcf') 22 #elif $convert.input_file.is_of_type('bcf')
23 #set $input_vcf = 'input.bcf' 23 #set $input_vcf = 'input.bcf'
24 ln -s "$convert.input_file" $input_vcf && 24 ln -s '$convert.input_file' $input_vcf &&
25 bcftools index $input_vcf && 25 bcftools index $input_vcf &&
26 #elif $convert.input_file.is_of_type('bcf_bgzip') 26 #elif $convert.input_file.is_of_type('bcf_bgzip')
27 ln -s "$convert.input_file" $input_vcf && 27 ln -s '$convert.input_file' $input_vcf &&
28 #end if 28 #end if
29 #end if 29 #end if
30 #set $section = $convert 30 #set $section = $convert
31 @PREPARE_FASTA_REF@ 31 @PREPARE_FASTA_REF@
32 32
34 34
35 @OUTPUT_TYPE@ 35 @OUTPUT_TYPE@
36 36
37 #set $section = $convert 37 #set $section = $convert
38 #if $convert.convert_from == 'gen_sample': 38 #if $convert.convert_from == 'gen_sample':
39 --gensample2vcf "$convert.input_file,$convert.input_sample" 39 --gensample2vcf '$convert.input_file,$convert.input_sample'
40 #elif $convert.convert_from == 'hap_sample': 40 #elif $convert.convert_from == 'hap_sample':
41 --hapsample2vcf "$convert.input_file,$convert.input_sample" 41 --hapsample2vcf '$convert.input_file,$convert.input_sample'
42 #elif $convert.convert_from == 'hap_legend_sample': 42 #elif $convert.convert_from == 'hap_legend_sample':
43 --haplegendsample2vcf "$convert.input_file,$convert.input_legend,$convert.input_sample" 43 --haplegendsample2vcf '$convert.input_file,$convert.input_legend,$convert.input_sample'
44 #elif $convert.convert_from == 'gvcf': 44 #elif $convert.convert_from == 'gvcf':
45 @FASTA_REF@ 45 @FASTA_REF@
46 --gvcf2vcf $input_vcf 46 --gvcf2vcf $input_vcf
47 #elif $convert.convert_from == 'tsv': 47 #elif $convert.convert_from == 'tsv':
48 @FASTA_REF@ 48 @FASTA_REF@
49 @SAMPLES@ 49 @SAMPLES@
50 @COLUMNS@ 50 @COLUMNS@
51 --tsv2vcf "$convert.input_file" 51 --tsv2vcf '$convert.input_file'
52 #end if 52 #end if
53 > "$output_file" 53 > '$output_file'
54 ]]> 54 ]]>
55 </command> 55 </command>
56 <inputs> 56 <inputs>
57 <conditional name="convert"> 57 <conditional name="convert">
58 <param name="convert_from" type="select" label="convert from"> 58 <param name="convert_from" type="select" label="convert from">