# HG changeset patch # User iuc # Date 1496949692 14400 # Node ID 2d95ed0b720a4a534106728653969915ea94d463 # Parent 40174941cbdae00325d1f57d66781e0e25c7ee43 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit e2075caee2ecdc6aed15a356e5328c5ca09cfb13 diff -r 40174941cbda -r 2d95ed0b720a bcftools_concat.xml --- a/bcftools_concat.xml Thu Apr 13 17:44:25 2017 -0400 +++ b/bcftools_concat.xml Thu Jun 08 15:21:32 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@