Mercurial > repos > artbio > artbio_bam_cleaning
view test-data/npipe.sh @ 10:ba3e6a71acb8 draft
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit 4a36bccf4c745cc7f1f13189140252721ff5e61d"
author | artbio |
---|---|
date | Fri, 31 Dec 2021 00:04:07 +0000 |
parents | 745f529127b8 |
children |
line wrap: on
line source
input="chr22_sample" && \ genome="chr22.fa" samtools index $input".bam" && \ sambamba view -h -t 8 --filter='mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped) and not(duplicate)' -f 'bam' ${input}".bam" \ | bamleftalign --fasta-reference $genome -c --max-iterations "5" - \ | samtools calmd -C 50 -b -@ 8 - $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"