# HG changeset patch # User artbio # Date 1615937926 0 # Node ID 15ada8e1580a56645df235ffa2a93f5822851684 # Parent a1462dd52f1753a9bb2edc99e6bb0b5887f21040 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit 13e2d0837000c2557f9590aa861a9fd5bc16cbcc" diff -r a1462dd52f17 -r 15ada8e1580a artbio_bam_cleaning.xml --- a/artbio_bam_cleaning.xml Tue Feb 16 00:19:57 2021 +0000 +++ b/artbio_bam_cleaning.xml Tue Mar 16 23:38:46 2021 +0000 @@ -1,4 +1,4 @@ - + on flags and PCR Duplicates and MD recalibration @@ -20,14 +20,21 @@ ln -f -s $input_bam.metadata.bam_index input.bam.bai && ln -s $input_bam input.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" - + #if $skip_rmdup == 'no': + | samtools rmdup -s - - | tee $input_base".filt1.dedup.bam" + #end if + | bamleftalign --fasta-reference reference.fa -c --max-iterations "5" - | samtools calmd -C 50 -b -@ \${GALAXY_SLOTS:-2} - reference.fa > $calmd && sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality <= 254' -f 'bam' -o $fullfilter $calmd ]]> + + + + @@ -38,8 +45,16 @@ - - + + + + + + + + + + diff -r a1462dd52f17 -r 15ada8e1580a test-data/calmd.bam Binary file test-data/calmd.bam has changed diff -r a1462dd52f17 -r 15ada8e1580a test-data/full.bam Binary file test-data/full.bam has changed diff -r a1462dd52f17 -r 15ada8e1580a test-data/match_chr21_DBA_974.filt1.dedup.bamleft.calmd.bam Binary file test-data/match_chr21_DBA_974.filt1.dedup.bamleft.calmd.bam has changed diff -r a1462dd52f17 -r 15ada8e1580a test-data/match_chr21_DBA_974.filt1.dedup.bamleft.calmd.filt2.bam Binary file test-data/match_chr21_DBA_974.filt1.dedup.bamleft.calmd.filt2.bam has changed diff -r a1462dd52f17 -r 15ada8e1580a test-data/normdup_calmd.bam Binary file test-data/normdup_calmd.bam has changed diff -r a1462dd52f17 -r 15ada8e1580a test-data/normdup_full.bam Binary file test-data/normdup_full.bam has changed