# HG changeset patch # User iuc # Date 1484999462 18000 # Node ID 67c573d9c1ec80a92408ae6f6414de16faa6c00b # Parent e051a63ca6b0d30ebaffd81732f7fa6497736a00 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 5725fea947162618d77de7b8011d18b2f16c7094 diff -r e051a63ca6b0 -r 67c573d9c1ec bcftools_annotate.xml --- a/bcftools_annotate.xml Wed Jul 13 10:49:12 2016 -0400 +++ b/bcftools_annotate.xml Sat Jan 21 06:51:02 2017 -0500 @@ -13,12 +13,12 @@ #set $annotation_file = None #set $annotation_hdr = None #set $section = $sec_annofile -#if $section.annofile.anno_fmt == 'vcf': +#if $section.annofile.anno_fmt == 'vcf': #set $annotation_file = 'annotations.vcf.gz' bgzip -c "$section.annofile.annotations" > $annotation_file && bcftools index $annotation_file && #elif $section.annofile.anno_fmt == 'tab': - #if $section.annofile.annotations.ext == 'bed' + #if $section.annofile.annotations.is_of_type('bed') #set $annotation_file = 'annotations.bed.gz' bgzip -c "$section.annofile.annotations" > $annotation_file && tabix -s 1 -b 2 -e 3 $annotation_file && @@ -87,7 +87,7 @@
- + @@ -99,9 +99,9 @@ @@ -114,12 +114,12 @@ - Assign ID on the fly using the given format. - By default all existing IDs are replaced. - If the format string is preceded by "+", only missing IDs will be set. + By default all existing IDs are replaced. + If the format string is preceded by "+", only missing IDs will be set. For example: '%CHROM\_%POS\_%REF\_%FIRST_ALT' @@ -127,17 +127,17 @@
- + ^(\^?[A-Z]+(/\w+)?(,\^?[A-Z]+(/\w+)?)*)?$ -
diff -r e051a63ca6b0 -r 67c573d9c1ec macros.xml --- a/macros.xml Wed Jul 13 10:49:12 2016 -0400 +++ b/macros.xml Sat Jan 21 06:51:02 2017 -0500 @@ -21,7 +21,7 @@ bcftools 2>&1 | grep 'Version:' - + 10.1093/bioinformatics/btp352 @@ -45,20 +45,20 @@ $input_vcf && bcftools index $input_vcf && -#elif $input_file.datatype.file_ext == 'vcf_bgzip' +#elif $input_file.is_of_type('vcf_bgzip') ln -s "$input_file" $input_vcf -#elif $input_file.datatype.file_ext == 'bcf' +#elif $input_file.is_of_type('bcf') #set $input_vcf = 'input.bcf' - ln -s "$input_file" $input_vcf && + ln -s "$input_file" $input_vcf && #if $input_file.metadata.bcf_index: ln -s $input_file.metadata.bcf_index ${input_vcf}.csi && - #else + #else bcftools index $input_vcf && #end if -#elif $input_file.datatype.file_ext == 'bcf_bgzip' +#elif $input_file.is_of_type('bcf_bgzip') ln -s "$input_file" $input_vcf #end if ]]> @@ -77,21 +77,21 @@ #set $vcfs_list_file = 'vcfs_list' #for (i,input_file) in enumerate($input_files): #set $input_vcf = 'input' + str($i) + '.vcf.gz' - #if $input_file.datatype.file_ext == 'vcf' + #if $input_file.is_of_type('vcf') bgzip -c "$input_file" > $input_vcf && bcftools index $input_vcf && - #elif $input_file.datatype.file_ext == 'vcf_bgz' + #elif $input_file.is_of_type('vcf_bgz') ln -s "$input_file" $input_vcf - #elif $input_file.datatype.file_ext == 'bcf' + #elif $input_file.is_of_type('bcf') #set $input_vcf = 'input' + str($i) + '.bcf.gz' ## bgzip -c "$input_file" > $input_vcf && ln -s "$input_file" $input_vcf && #if $input_file.metadata.bcf_index: ln -s $input_file.metadata.bcf_index ${input_vcf}.csi && - #else + #else bcftools index $input_vcf && #end if - #elif $input_file.datatype.file_ext == 'bcfvcf_bgz' + #elif $input_file.is_of_type('bcfvcf_bgz') ln -s "$input_file" $input_vcf && #end if echo '$input_vcf' >> $vcfs_list_file && @@ -225,7 +225,7 @@ - ^([^ \t\n\r\f\v,]+(,[^ \t\n\r\f\v,]+)*)?$ @@ -272,7 +272,7 @@ - ^(\w+(:\d+(-\d+)?)?(,\w+(:\d+(-\d+)?)?)*)?$ @@ -299,7 +299,7 @@ $targets_path && @@ -331,7 +331,7 @@ - ^(\w+(:\d+(-\d+)?)?(,\w+(:\d+(-\d+)?)?)*)?$ @@ -339,7 +339,6 @@ - true @@ -359,15 +358,15 @@ - ^(\w+(,\w+)*)?$ - - - @@ -417,7 +416,7 @@ - ^([^,]+(,[^,]+)*)?$ @@ -444,7 +443,7 @@ Output Type ----------- -Output compressed BCF (b), or uncompressed VCF (v). +Output compressed BCF (b), or uncompressed VCF (v). Use the BCF option when piping between bcftools subcommands to speed up performance by removing unecessary compression/decompression and VCF<->BCF conversion.