# HG changeset patch # User wrtz # Date 1452811880 18000 # Node ID bb21cedd0dc99aea725cf5c2c871c6f08161e892 # Parent 9d96f73b875f4c40db01fa47e37fd214c1c00a59 Uploaded diff -r 9d96f73b875f -r bb21cedd0dc9 bcftools_view.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bcftools_view.xml Thu Jan 14 17:51:20 2016 -0500 @@ -0,0 +1,224 @@ + + Convert, view, subset, and filter VCF/BCF files + + #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 view + ${drop_genotypes} + ${header_only} + ${no_header} + --output-file "${output_file}" + --output-type "${output_type}" + #if str( $regions ) != "": + --regions "${regions}" + #end if + #if str( $targets ) != "": + --targets "${targets}" + #end if + #if str( $samples ) != "": + --samples "${samples}" + #end if + #if str( $regions_file ) != "None": + --regions-file "${regions_file}" + #end if + #if str( $targets_file ) != "None": + --targets-file "${targets_file}" + #end if + #if str( $samples_file ) != "None": + --samples-file "${samples_file}" + #end if + #if str( $apply_filters ) != "": + --apply-filters "${apply_filters}" + #end if + #if str( $min_ac_cond.set_min_ac ) == "True": + --min-ac $min_ac_cond.min_ac:$min_ac_cond.min_ac_type + #end if + #if str( $max_ac_cond.set_max_ac ) == "True": + --max-ac $max_ac_cond.max_ac:$max_ac_cond.max_ac_type + #end if + #if str( $min_af_cond.set_min_af ) == "True": + --min-af $min_af_cond.min_af:$min_af_cond.min_af_type + #end if + #if str( $max_af_cond.set_max_af ) == "True": + --max-af $max_af_cond.max_af:$max_af_cond.max_af_type + #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( $genotype_cond.set_genotype ) == "True": + #if str( $genotype_cond.include_or_exclude ) == "include": + --genotype $genotype_cond.genotype + #else + --genotype ^$genotype_cond.genotype + #end if + #end if + #if str( $var_type_cond.set_var_type ) == "True": + #if str( $var_type_cond.include_or_exclude ) == "include": + --types $var_type_cond.var_types + #else + --exclude-types $var_type_cond.var_types + #end if + #end if + ${uncalled} + ${exclude_uncalled} + ${private} + ${exclude_private} + + #if str( $input_file_index ) != "None": + input_file.${input.ext} + #else + $input + #end if + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**About this tool** + +**BCFtools view**: View, subset and filter VCF or BCF files by position and filtering expression. Convert between VCF and BCF. Former bcftools subset. + +Please see https://samtools.github.io/bcftools/bcftools.html for more info on options. + +