BEDtools accepts BAM-formatted files. You would need to place all your rRNA regions in BED format e.g. a simple illustration of 2 regions in a file called regions.bed
chr1 1 10 rRNA1
chr2 2 2333 rRNA2
chr2 2 2333 rRNA2
So if your reads are in a file called alignments.bam Then do
intersectBed -abam alignments.bam -b regions.bed -v > filtered.bam
If you're not comfortable doing this on the command line I suppose you could upload your BAM file to Galaxy and do the same operation with intersectBed.
Hope this helps.
Leave a comment: