Hi,
I have one question, I need to get reads after filtration. Than normally I get health reads (health = reads after filtration, satisfy the conditions), but I need to get reads, which I remove.
For example I set filtration to get reads with mapQ bigger than 10, I used samtools view -bg 10 ...
and I get reads with mapQ bigger than 10, but I want reads with mapq lower than ten.
Could you please help if it is possible. And other option, compare the raw bam file and filtrate bam file and get the difference between them.
Could you help me pls or do you know some tool to do this?
Oh, I finished it by awk, same like you wrote, sorry for this stupid question.