Entering edit mode
13.1 years ago
axelwilhelm
▴
120
Hi all
I'm wondering if there is a way to exclude regions in samtools view.
Now I awk and sed lines away in post processing via piping.
Wouldn't it save time and space to just pileup more than one region at once into a file?
Maybe this is a dumb question but I don't have the software now while I'm wondering so I can't experiment.
For example:
samtools view chrY:2709520-3709520, chrY:17443438-27443438 ǀ samtools mpileup...
samtools view chrY:2709520-3709520 AND chrY:17443438-27443438 ǀ samtools mpileup.
samtools view chrY:2709520-3709520: chrY:17443438-27443438 ǀ samtools mpileup...
...
update 2021: use option
-M
to go faster with an indexed bam.