Plotting Genomic Overlaps with GRanges
0
0
Entering edit mode
16 months ago
joe_genome ▴ 50

I have come up with two approaches using two different findOverlaps methods (Genomic Alignments R package) for which I have opted to use subsetbyOverlaps as this suits my needs better. I'm trying to plot the genomic coordinates that overlap, was trying with the GViz package but not sure if this is suitable.

Wondering what others have done about this?

I have created two separate BAM Files as input which I'ver converted into GRanges objects for further manipulation:

BAM1 <-  readGAlignments(BAM1, use.names=T, param=ScanBamParam(what=c("seq", "mapq", "flag", "isize", "qual")))

BAM2 <-  readGAlignments(BAM1, use.names=T, param=ScanBamParam(what=c("seq", "mapq", "flag", "isize", "qual")))

BAM1_Range  <- as(BAM1, "GRanges")
BAM2_Range  <- as(BAM2, "GRanges")
overlap_regions <- subsetByOverlaps(BAM1_Range, BAM2_Range)

Thanks :)

NGS R GRanges • 394 views
ADD COMMENT

Login before adding your answer.

Traffic: 2721 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