# HG changeset patch # User wrtz # Date 1452811853 18000 # Node ID 22d009d3514561727bf1dc6f62a30152489f259c # Parent 3ebaa7bd2773278a87534cd218eaea95b014b14d Uploaded diff -r 3ebaa7bd2773 -r 22d009d35145 bcftools_norm.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bcftools_norm.xml Thu Jan 14 17:50:53 2016 -0500 @@ -0,0 +1,153 @@ + + Left-align and normalize indels, check if REF alleles match reference, change multiallelic 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 + #if str( $fasta_ref_cond.set_fasta_ref ) == "True": + #if str( $fasta_ref_cond.fasta_ref_index ) != "None": + ln -s -f $fasta_ref_cond.fasta_ref fasta_ref_file.${fasta_ref.ext}.fa && + ln -s -f $fasta_ref_cond.fasta_ref_index fasta_ref_file.${fasta_ref.ext}.fa.fai && + #end if + #end if + bcftools norm + --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( $check_ref_cond.set_check_ref ) == "True": + #if str( $check_ref_cond.warn ) == "true": + #if str( $check_ref_cond.check_ref ) == "None": + --check-ref "w" + #else + --check-ref "w${check_ref_cond.check_ref}" + #end if + #else + --check-ref "${check_ref_cond.check_ref}" + #end if + #end if + #if str( $fasta_ref_cond.set_fasta_ref ) == "True": + #if str( $fasta_ref_cond.fasta_ref_index ) != "None": + --fasta-ref "fasta_ref_file.${fasta_ref.ext}.fa" + #else + --fasta-ref "${fasta_ref}" + #end if + #end if + #if str( $multiallelics_cond.set_multiallelics ) == "True": + #if str( $multiallelics_cond.minus_or_plus ) == "minus": + #if str ( $multiallelics_cond.multiallelics ) != "None": + --multiallelics "-${multiallelics_cond.multiallelics}" + #else + --multiallelics "-" + #end if + #else + #if str ( $multiallelics_cond.multiallelics ) != "None": + --multiallelics "+${multiallelics_cond.multiallelics}" + #else + --multiallelics "+" + #end if + #end if + #end if + #if str( $rm_dup ) != "None": + --rm-dup "${rm_dup}" + #end if + ${do_not_normalize} + ${strict_filter} + #if str( $site_win ) != "": + --site-win "${site_win}" + #end if + #if str( $input_file_index ) != "None": + input_file.${input.ext} + #else + $input + #end if + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**About this tool** + +**BCFtools norm**: Left-align and normalize indels, check if REF alleles match the reference, split multiallelic sites into multiple rows, recover multiallelics from multiple rows. Left-alignment and normalization will only be applied if the --fasta-ref option is supplied. + +Please see https://samtools.github.io/bcftools/bcftools.html for more info on options. + + +