# HG changeset patch # User wrtz # Date 1452811863 18000 # Node ID 818ab4af6410162350648de25de023e3a2dd86ce # Parent 22d009d3514561727bf1dc6f62a30152489f259c Uploaded diff -r 22d009d35145 -r 818ab4af6410 bcftools_query.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bcftools_query.xml Thu Jan 14 17:51:03 2016 -0500 @@ -0,0 +1,107 @@ + + Output VCF/BCF fields in user-defined format + + #if str( $input_file_index ) != "None": + ln -s -f $input input_file.${input.ext} && + ln -s -f $input_file_index input_file.${input.ext}.tbi && + #end if + + bcftools query + --output "${output_file}" + --format "${format}" + #if str( $regions_file ) != "None": + --regions-file "${regions_file}" + #end if + #if str( $regions ) != "": + --regions "${regions}" + #end if + #if str( $targets_file ) != "None": + --targets-file "${targets_file}" + #end if + #if str( $targets ) != "": + --targets "${targets}" + #end if + #if str( $samples_file ) != "None": + --samples-file "${samples_file}" + #end if + #if str( $samples ) != "": + --samples "${samples}" + #end if + #if str( $expr_cond.set_expr ) == "True": + #if str( $expr_cond.include_or_exclude ) == "include": + --include "${expr_cond.expr}" + #else + --exclude "${expr_cond.expr}" + #end if + #end if + #if str( $collapse ) != "None": + --collapse "${collapse}" + #end if + ${print_header} + ${list_samples} + ${allow_undef_tags} + + #if str( $input_file_index ) != "None": + input_file.${input.ext} + #else + $input + #end if + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**About this tool** + +**BCFtools query**: Extract fields from VCF or BCF files and output them in user-defined format. + +Please see https://samtools.github.io/bcftools/bcftools.html for more info on options. + +