Mercurial > repos > artbio > artbio_bam_cleaning
view test-data/pipe.sh @ 3:a1462dd52f17 draft
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit b022da54be013bf593ad96de6e7bd8b9e6bb5523"
author | artbio |
---|---|
date | Tue, 16 Feb 2021 00:19:57 +0000 |
parents | 65d6d2b554b3 |
children |
line wrap: on
line source
input="match_chr21_DBA_974" && \ genome="chr21.fa" && \ samtools index $input".bam" && \ sambamba view -h -t 8 --filter='mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped)' -f 'bam' $input".bam" \ | samtools rmdup - - \ tee $input".filt1.dedup.bam"| bamleftalign --fasta-reference $genome -c --max-iterations "5" - \ | samtools calmd -C 50 -b -@ 4 - $genome > $input".filt1.dedup.bamleft.calmd.bam" && \ sambamba view -h -t 8 --filter='mapping_quality <= 254' -f 'bam' -o $input".filt1.dedup.bamleft.calmd.filt2.bam" $input".filt1.dedup.bamleft.calmd.bam"