# HG changeset patch # User wrtz # Date 1452811835 18000 # Node ID 4c0acb64c5fc56ec04cc6fc9f7accb3c6fbbaf8b # Parent e32ce96a0e303b35449e5aa07173180effdc111c Uploaded diff -r e32ce96a0e30 -r 4c0acb64c5fc bcftools_filter.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bcftools_filter.xml Thu Jan 14 17:50:35 2016 -0500 @@ -0,0 +1,134 @@ + + Apply fixed-threshold filters + + #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 filter + --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 + #if str( $targets_file ) != "None": + --targets-file "${targets_file}" + #end if + #if str( $targets ) != "": + --targets "${targets}" + #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( $mode_plus ) == "true": + #if str( $mode_x ) == "true": + --mode +x + #else + --mode + + #end if + #elif str( $mode_x ) == "true" + --mode x + #end if + #if str( $soft_filter_cond.set_soft_filter ) == "True": + #if str( $soft_filter_cond.string_or_plus_cond.string_or_plus ) == "use_plus": + --soft-filter + + #else + --soft-filter "${soft_filter_cond.string_or_plus_cond.str}" + #end if + #end if + #if str( $set_gts_cond.set_gts ) == "True": + #if str( $set_gts_cond.gts ) == "period": + --set-GTs . + #else + --set-GTs 0 + #end if + #end if + + #if str( $input_file_index ) != "None": + input_file.${input.ext} + #else + $input + #end if + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**About this tool** + +**BCFtools filter**: Apply fixed-threshold filters. + +Please see https://samtools.github.io/bcftools/bcftools.html for more info on options. + +