Entering edit mode
gpwhiz
▴
10
@gpwhiz-19034
Last seen 5.9 years ago
Hello,
I am getting the following errors when using plotTracks in Gviz. here, I am just following examples provided in the vignette https://bioconductor.org/packages/release/bioc/vignettes/Gviz/inst/doc/Gviz.pdf
for plotting Annotation track, I used the following code
> data("cpgIslands") > atrack <- AnnotationTrack(cpgIslands,name="CpG") > plotTracks(atrack) Error in `rownames<-`(`*tmp*`, value = c("1", "10", "2", "3", "4", "5", : invalid rownames length
I also tried using the GeneRegiontrack and I again I get an error when executing the plotTracks about rownames
> data(geneModels) > gen <- genome(cpgIslands) > chr <- as.character(unique(seqnames(cpgIslands))) > grtrack <- GeneRegionTrack(geneModels, genome=gen,chromosome=chr, name="Gene Model") > plotTracks(grtrack) Error in `rownames<-`(`*tmp*`, value = c("ENST00000242109", "ENST00000345317", : invalid rownames length
I am following the directions from the tutorials, so I am confused as to what mistake i am making here.
Any advice is much appreciated.
Hi,
I have just checked the code in both release and level versions and it worked for me. Could you please your sessionInfo?
Best, Robert
Hi Robert!
Thank you for your prompt response.
This is my Sessioninfo
Thank you so much for helping me!!
Hi,
I also tried the traceback, but I don't understand the problem
I have just checked your sessionInfo and realised that you have a picture of packages from current release and some older ones, for example: GenomicRanges, GenomicFeatures, Biobase and few others. Can you please update your packages and try again?
Best
Robert