Entering edit mode
2.5 years ago
irfanwustl
▴
90
Using samtools view -L FILE command we can extract reads which are in the FILE regions. Is there a way to extract reads which are OUTSIDE of the FILE regions?
Thanks
I would suggest 2 options: 1) Create a bed file with the complementary regions to your current region file and run samtools with that new bed file. 2) Use
bedtools intersect
, applying-v
argument.