Gviz is an amazing package. But I found that the junction numbers reported from sashimi plot were quite different from the junction numbers generated by “summarizeJunctions” command from GenomicAlignments package. I got junction numbers with following codes:
alTrack <- AlignmentsTrack(system.file(package = "Gviz","extdata","gapped.bam"), isPaired =T,chromosome="chr12",genome="hg19")
plotTracks(alTrack, from = afrom, to = ato,chromosome = "chr12",type=c("coverage","sashimi","pileup"))
tmp<-readGAlignmentPairs(system.file(package = "Gviz","extdata","gapped.bam"))
The largest junction numbers from GenomicAlignments is 30, but junction numbers in Gviz plot seems to be less than 20. I’m confused with this difference. Please advise. Many thanks.
Plus: I noticed that the junction numbers from GenomicAlignments were basically consistent with those from IGV sashimi plot.