Does Bedtools Intersect -V Consider Unmapped Reads "As Not In B"
1
0
Entering edit mode
12.8 years ago
bedtools intersect -v -abam my.bam -b myregions.gff > notinmyregions.bam

would we see reads with 4 in the FLAG field - i.e. unmapped reads in notinmyregions.bam

bedtools • 1.8k views
ADD COMMENT
1
Entering edit mode
12.8 years ago
Ying W ★ 4.3k

I dont think so, you could always pipe in unmapped reads only to bedtools and see if there are any results:

samtools view -f 0x04 –b my.bam | intersectBed –abam stdin -b myregions.gff > notinmyregions.bam
ADD COMMENT

Login before adding your answer.

Traffic: 2210 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6