Entering edit mode
When I try and create the topGOdata object, I get an error warning about a zero-length vector. I've recently moved to a Mac (see session info). Previously I had no issues using topGO on a linux box, under R-3.6.3 (with an up to date bioconductor). I was hoping someone might have gotten a similar error and could help me troubleshoot? I'm not certain where to start looking.
Quick Start Example from the vignette:
> library(topGO)
> library(ALL)
> data(ALL)
> data(geneList)
>
> affyLib <- paste(annotation(ALL), "db", sep = ".")
> library(package = affyLib, character.only = TRUE)
>
> sampleGOdata <- new("topGOdata",
+ description = "Simple session", ontology = "BP",
+ allGenes = geneList, geneSel = topDiffGenes, nodeSize = 10,
+ annot = annFUN.db, affyLib = affyLib)
Building most specific GOs .....
( 1647 GO terms found. )
Build GO DAG topology ..........
Error in if (node == GENE.ONTO.ROOT) return(2) :
argument is of length zero
There is also a warning message:
> warnings()
Warning message:
In result_fetch(res@ptr, n = n) :
SQL statements must be issued with dbExecute() or dbSendStatement() instead of dbGetQuery() or dbSendQuery().
Session Info:
> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.4
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats4 parallel stats graphics grDevices
[6] utils datasets methods base
other attached packages:
[1] hgu95av2.db_3.2.3 org.Hs.eg.db_3.11.0
[3] ALL_1.29.0 org.Mm.eg.db_3.11.0
[5] topGO_2.40.0 SparseM_1.78
[7] GO.db_3.11.0 AnnotationDbi_1.50.0
[9] IRanges_2.22.1 S4Vectors_0.26.0
[11] Biobase_2.48.0 graph_1.66.0
[13] BiocGenerics_0.34.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.4.6 bit_1.1-15.2 lattice_0.20-41
[4] rlang_0.4.6 blob_1.2.1 tools_4.0.0
[7] grid_4.0.0 DBI_1.1.0 matrixStats_0.56.0
[10] bit64_0.9-7 digest_0.6.25 vctrs_0.2.4
[13] memoise_1.1.0 RSQLite_2.2.0 compiler_4.0.0
[16] pkgconfig_2.0.3
I think that the issue may be with the new GO.db package, as elaborated here:
There may be an issue with that, but I just ran the code using R-4.0.0 and Bioc11 and it works for me on Windows. So I sort of doubt the issue is any problems with GO.db (although there may be other silent issues).
e.g.
Urp. Maybe it is a problem with the current GO.db package. The topGO package makes use of the old BiMap interface, and does this under the hood:
Which is the equivalent of
Which in previous versions gave
And this looks different as well
So let's wait for Kayla to update GO.db and that should make all this work again.
Perhaps you can now re-try: https://support.bioconductor.org/p/130753/
Et voila