# HG changeset patch # User iuc # Date 1495806178 14400 # Node ID d1ea6dede90045ea548e74321ee6b94d118c256c # Parent 292e2014228af1b292766bcfa7a8ee894818500c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit a82f063287a78c9a237d1d0596b1176632581d42 diff -r 292e2014228a -r d1ea6dede900 bcftools_concat.xml --- a/bcftools_concat.xml Thu Apr 13 17:35:46 2017 -0400 +++ b/bcftools_concat.xml Fri May 26 09:42:58 2017 -0400 @@ -1,5 +1,5 @@ - + Concatenate or combine VCF/BCF files concat @@ -18,13 +18,17 @@ ## Default section #set $section = $sec_default -#if $section.overlaps.allow_overlaps == 'yes': - --allow-overlaps - #if $section.overlaps.rm_dups: - --rm-dups $section.overlaps.rm_dups +#if $section.mode.naive == "yes": + --naive +#else: + #if $section.mode.overlaps.allow_overlaps == 'yes': + --allow-overlaps + #if $section.mode.overlaps.rm_dups: + --rm-dups $section.mode.overlaps.rm_dups + #end if #end if + ${section.mode.ligate} #end if -${section.ligate} ${section.compact_PS} #if $section.min_PQ: --min-PQ "${section.min_PQ}" @@ -38,7 +42,11 @@ ## Primary Input/Outputs @INPUT_FILES@ +#if $sec_default.mode.naive == "yes" and $output_type == 'v': +> output.gz && bcftools index output.gz && bcftools view -O v -o '$output_file' output.gz +#else: > '$output_file' +#end if ]]> @@ -47,31 +55,43 @@
- - - - First coordinate of the next file can precede last record of the current file. - + + + + - - - - - ]]> - - - - - - + + + + + + First coordinate of the next file can precede last record of the current file. + + + + + + + + ]]> + + + + + + + + + + - - - + + + + + + + + + + + + @@ -123,6 +154,12 @@ Concatenate or combine VCF/BCF files. All source files must have the same sample columns appearing in the same order. The program can be used, for example, to concatenate chromosome VCFs into one VCF, or combine a SNP VCF and an indel VCF into one. The input files must be sorted by chr and position. The files must be given in the correct order to produce sorted VCF on output unless the -a, --allow-overlaps option is specified. + +Naive concatenation is useful when using a galaxy workflow that splits a BAM file by chromosome, processes each in parallel, then bcftools concat merges the results into a single VCF file: + +BAM -> bamtools split => bcftools mpileup => bcftools call => bcftools concat -> VCF + + @REGIONS_HELP@ @BCFTOOLS_MANPAGE@#@EXECUTABLE@