install Bioconductor package and its dependencies
Hi! I am trying to install package "motifbreakR" from Bioconductor, but it seems it has too many dependencies that are not available on my computer. Is there a way to install a Bioconductor package and all its dependencies at once? Thanks!
• 11,489 views
•
link
2 answers
Maybe there is... for example, the github page has these instructions:
Getting prerequisite packages from Bioconductor
source("http://bioconductor.org/biocLite.R")
biocLite(c("BiocParallel", "motifStack", "BSgenome", "BiocGenerics",
"Biostrings", "GenomeInfoDb", "GenomicRanges", "Gviz", "S4Vectors",
"rtracklayer", "IRanges", "MotifDb", "BSgenome.Hsapiens.UCSC.hg19",
"SNPlocs.Hsapiens.dbSNP.20120608", "SNPlocs.Hsapiens.dbSNP142.GRCh37",
"VariantAnnotation", "matrixStats", "BiocStyle"))
install.packages(c("TFMPvalue", "knitr", "rmarkdown"))
• 1 views
•
link
Here is how it works for me:
conda create -n your_env
conda activate your_env
conda config --add channels bioconda
conda install bioconductor-motifbreakr
• 0 views
•
link
Log in to answer this question.
How are you installing this package? Dependencies are installed automatically, normally.
I am installing this package from R:
It seems there is a problem with "libcurl": "Package libcurl was not found in the pkg-config search path. Perhaps you should add the directory containing `libcurl.pc' to the PKG_CONFIG_PATH environment variable". Then configurations of all other packages fail.
If you have "devtools" package in your dependencies, there are some issues linked to libcurl and "devtools"
https://stackoverflow.com/questions/20923209/problems-installing-the-devtools-package
https://stackoverflow.com/questions/44228055/r-rstudio-install-devtools-fails
Maybe try :
Thanks a lot! This solved my problem!
On trying to install motifbreakerR, I get the following errors and warnings :
On installing gsl package, it exits as following :
Please help.
Have you tried installation using bioconda?
On doing so, there was slight progress and then it stopped at :
This is also the case when I try to install the MotIV package explicitly.
conda install bioconductor-motifbreakrStill not working in R.
Define "not working".
Which command did you use to get that?
On running the following on R studio :
Stop trying to compile things, use conda for EVERYTHING.
I need it to work in R studio.
Then use conda.
You mean to say install r and r studio using conda commands and then trying the same?
You can point rstudio to any R you want, so point it to the one from conda.
Done! Like you said, few of the dependencies such as rtracklayer, libiconv and gsl belonged to different versions or not present at all, for which I had to (re)install using conda and start a new R instance at the end of each installation, to check if it's properly installed or not. Thanks for your time.