Hi, I'm having issues with Gviz plotting the highlights behind the data tracks:
The code used to produce the image:
library(Gviz) library(GenomicRanges) bigwig = "HCNE_density_hg19_mm10.bigWig" region = GRanges("chr3", IRanges(180436331, 182390735)) gene = GRanges("chr3", IRanges(181661924, 181764436)) # 100kb around SOX2 itrack = IdeogramTrack(genome="hg19") gtrack = GenomeAxisTrack(genome="hg19") cnetrack = DataTrack(range = bigwig, genome = "hg19", type = "horiz", name = "Mouse HCNEs") genetrack = UcscTrack(genome="hg19", chromosome=seqnames(region), track="refGene", from=start(region), to=end(region), trackType="GeneRegionTrack", rstarts="exonStarts", rends="exonEnds", gene="name2", symbol="name2", transcript="name", collapseTranscripts="longest") hltrack = HighlightTrack(trackList=list(cnetrack, genetrack), gene, genome="hg19") png("testplot.png", width=20, height=8, units="in", res=200) plot = plotTracks(list(itrack, gtrack, hltrack), col=NULL, transcriptAnnotation = "symbol", from=start(region), to=end(region), chromosome=as.character(seqnames(region)), main="SOX2") dev.off()
This was produced using R 3.1.1 with all dependencies fully up to date.
Thanks Florian, this sounds ideal. I see the package has passed checks and is now available to download, I'll give it a try.