Entering edit mode
7.5 years ago
Jeason Rad
▴
30
Hi, all. I am using samtools view .bam [region]
to extract all reads overlapping the region. I find some reads with INDEL and I want to filter them, only getting the reads with no INDEL. Which samtools options I should use?
Thanks, dariober, it working properly!
please check the green marks on the left to validate+close the question
Hi all. Any way to modify this so it finds read with deletions > 20bp?
Would give reads with exactly 20 bp, right? Is it possible to do > 20bp?
@shimbalama - If you really wanted to you could write an awk script that parses the cigar string and checks for a D operator > 20. But I think it would be easier to write a python script using the pysam package to parse the cigar string or see if Pierre's tools can do it (probably they can). If you get stuck, maybe open a new question for it.
ask as a new question please