# HG changeset patch # User wrtz # Date 1452811642 18000 # Node ID 2cffdec901f5828f91c24787f93b01a579101fa3 # Parent cd5b729e6cc30cc1832b92ad86982b18d56fb0c1 Uploaded diff -r cd5b729e6cc3 -r 2cffdec901f5 bcftools_merge.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bcftools_merge.xml Thu Jan 14 17:47:22 2016 -0500 @@ -0,0 +1,75 @@ + + Merge multiple VCF/BCF files + + #for $i, $inp in enumerate( $inputs ): + #if str( $inp.input_file_index ) != "None": + ln -s -f "${inp.input}" "input_file_${i}.${inp.input.ext}" && + ln -s -f "${inp.input_file_index}" "input_file_${i}.${inp.input.ext}.tbi" && + #end if + #end for + /Volumes/drive2/galaxy/dist/tools/bcftools/bcftools merge + --output "${output_file}" + --output-type "${output_type}" + #if str( $regions_file ) != "None": + --regions-file "${regions_file}" + #end if + #if str( $regions ) != "": + --regions "${regions}" + #end if + ${force_samples} + #if str( $info_rules ) != "": + --info-rules "${info_rules}" + #end if + #if str( $merge ) != "None": + --merge "${merge}" + #end if + + #for $i, $inp in enumerate( $inputs ): + #if str( $inp.input_file_index ) != "None": + "input_file_${i}.${inp.input.ext}" + #else + "${inp.input}" + #end if + #end for + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**About this tool** + +**BCFtools merge**: Merge multiple VCF/BCF files from non-overlapping sample sets to create one multi-sample file. For example, when merging file A.vcf.gz containing samples S1, S2 and S3 and file B.vcf.gz containing samples S3 and S4, the output file will contain four samples named S1, S2, S3, 2:S3 and S4. + +Please see https://samtools.github.io/bcftools/bcftools.html for more info on options. + + \ No newline at end of file