# HG changeset patch # User artbio # Date 1640893987 0 # Node ID b12e50bcddd252480cd4373205b1b4467331e89a # Parent 745f529127b8998c469f0ead11aca8882230da29 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit 710fd3796d363d7c1b2bf87793b0c31de62e8d71" diff -r 745f529127b8 -r b12e50bcddd2 artbio_bam_cleaning.xml --- a/artbio_bam_cleaning.xml Mon Dec 20 19:44:29 2021 +0000 +++ b/artbio_bam_cleaning.xml Thu Dec 30 19:53:07 2021 +0000 @@ -1,4 +1,4 @@ - + on flags and PCR Duplicates and MD recalibration @@ -22,9 +22,9 @@ sambamba view -h -t \${GALAXY_SLOTS:-2} --filter="mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped) and not(duplicate)" -f "bam" ${input_base}".bam" | bamleftalign --fasta-reference reference.fa -c --max-iterations "5" - | samtools calmd -C 50 -b -@ \${GALAXY_SLOTS:-2} - reference.fa - #if $filter_MQ_255 == 'no': + #if $specify_outputs == 'just_calMD': > $calmd - #else if $filter_MQ_255 == 'yes': + #else if $specify_outputs == 'calMDandMQ' or $specify_outputs == 'both': | tee $calmd | sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality <= 254' -f 'bam' /dev/stdin > $fullfilter #end if @@ -32,33 +32,44 @@ - - - + help="The tool first generates MD-recalibrated alignements, then discards + aberrant Mapping Quality alignements generated by calMD recalibration. + One, the other, or both types of outputs can be retained by the tool"> + + + - + + specify_outputs == 'just_calMD' or specify_outputs == 'both' + - filter_MQ_255 == "yes" + specify_outputs == 'calMDandMQ' or specify_outputs == 'both' + + + + + + + + - +