# HG changeset patch # User artbio # Date 1602168904 0 # Node ID b550841f568b6b32f3b94f75351a6aa2d2651865 # Parent 65d6d2b554b33a980a7df3df3075806bfaac007e "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit 2d441fd84bf17c0899d0b57ea35c84cb83b77119" diff -r 65d6d2b554b3 -r b550841f568b artbio_bam_cleaning.xml --- a/artbio_bam_cleaning.xml Fri Oct 02 00:17:33 2020 +0000 +++ b/artbio_bam_cleaning.xml Thu Oct 08 14:55:04 2020 +0000 @@ -1,4 +1,4 @@ - + on flags and PCR Duplicates and MD recalibration @@ -19,27 +19,44 @@ #set input_base = 'input' ln -f -s $input_bam.metadata.bam_index input.bam.bai && ln -s $input_bam input.bam && - sambamba view -h -t 8 --filter='mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped)' -f 'bam' $input_base".bam" + sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped)' -f 'bam' $input_base".bam" | samtools rmdup - - |tee $input_base".filt1.dedup.bam"| bamleftalign --fasta-reference reference.fa -c --max-iterations "5" - - | samtools calmd -C 50 -b -@ \${GALAXY_SLOTS:-2} - reference.fa > $input_base".filt1.dedup.bamleft.calmd.bam" && - sambamba view -h -t 8 --filter='mapping_quality <= 254' -f 'bam' -o $input_base".filt1.dedup.bamleft.calmd.filt2.bam" $input_base".filt1.dedup.bamleft.calmd.bam" + | samtools calmd -C 50 -b -@ \${GALAXY_SLOTS:-2} - reference.fa > $calmd + #if $pipeline == 'fullfilter': + && sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality <= 254' -f 'bam' -o $fullfilter $calmd + #end if ]]> + + + + - - + + pipeline == 'CalMD' + + + pipeline == 'fullfilter' + + + + + + + + + -