Hi all,
I have just created my db using makeOrgPackageFromNCBI() for Verticillium dahliae. I have used the following code:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("AnnotationHub")
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("AnnotationForge")
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("biomaRt")
install.packages("devtools")
devtools::install_version("dbplyr", version = "2.3.4") #downgrade dbplyr
library(AnnotationHub)
library(AnnotationForge)
hub <- AnnotationHub()
query(hub, c("Verticillium"))
makeOrgPackageFromNCBI(version = "0.1",
author = "L. Fiorentino <luigi.fiorentnino@wur.nl>",
maintainer = "L. Fiorentino",
outputDir = "C:/Users/Luigi/Desktop/WUR/R_Directory/org.Vd",
tax_id = "498257 ",
genus = "Verticillium",
species = "dahliae")
I could obtain the org.Vdahliae.eg.db
Now, I am running clusterProfiler
and AnnnotationDb
to perform GO analysis but when I try to install the db package I get the following error:
> if (!require("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
> BiocManager::install("org.Vdahliae.eg.db", force = TRUE)
'getOption("repos")' replaces Bioconductor standard repositories, see
'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.18 (BiocManager 1.30.23), R 4.3.0 (2023-04-21 ucrt)
Installing package(s) 'org.Vdahliae.eg.db'
Installation paths not writeable, unable to update packages
path: C:/Program Files/R/R-4.3.0/library
packages:
boot, class, cluster, codetools, foreign, KernSmooth, lattice, mgcv, nlme,
nnet, rpart, spatial, survival
Messaggio di avvertimento:
the package "org.Vdahliae.eg.db" is not available for this version of R
Please, do you have any idea on how to solve this problem? Is there a specific code to use to install the db package I created or is it just with the code used above?
I have already tried to upgrade BiocManager to version 3.18, R to 4.3 and RStudio to the latest version.
Thanks, Luigi
FWIW: based on previous posts it is suggested to install like this:
Also very important, did you see this message?
this means that you don't have sufficient user rights to install/update packages on that location, and this may interfere with installing the
OrgDb
. I suggest you fix that!Thanks again Guido, I will try to run the script you have suggested and see if I can install the package.
Yes, I have seen this message as well (
Installation paths not writeable, unable to update packages
) but when I load libraries it seems to work well. Would you have any idea on how to solve it? I am working on my own computer, I do not understand why there should not be sufficient user rights.Thanks again, Luigi
I have arranged the code again following the other post and also the script you suggested. Now, I managed to install
org.Vdahliae.eg.db
. Yet, it still appears theInstallation paths not writeable, unable to update packages
warning message.