R programmin RNA seq
1
0
Entering edit mode
15 months ago

Hi everyone, I'm trying to use edgeR for DE, but I could't install edger in R, I'm using MacBook Air Catalina. Which version of R best for my Mac and also including edgeR and DESeq2? Is anyone have idea about that? Thank you so much. kindly

problems edgeR • 1.7k views
ADD COMMENT
3
Entering edit mode

Install latest version of R for macOS (make sure to select correct version for intel or apple silicone, aka m1/m2), then install latest version of RStudio for macOS, then in the console run:

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("edgeR")

Which I got from: https://bioconductor.org/packages/release/bioc/html/edgeR.html

ADD REPLY
0
Entering edit mode

In which steps did you encounter problems? A good way of installing/updating packages is my using a package manager. You can use something like brew in macOS to manage your packages.

ADD REPLY
0
Entering edit mode

when ı try to load edgeR package, the come true. Actually I did all this step, I used brew, biomanager. I deleted R and reinstall on Mac, its still the same.

ADD REPLY
0
Entering edit mode

Error: package or namespace load failed for ‘edgeR’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘locfit

this is error

ADD REPLY
2
Entering edit mode

There is probably a missing build dependency. Try working your way up to dependencies. Install missing R packages one by one e.g install.packages("locfit") and post the error messages.

ADD REPLY
0
Entering edit mode

install.packages("locfit") Warning in install.packages : package ‘locfit’ is not available (for R version 3.5.2)

this error come true

ADD REPLY
1
Entering edit mode
15 months ago
Gordon Smyth ★ 7.0k

The error message that you show (Error: ... there is no package called locfit) would arise when you try to load edgeR library(edgeR). This shows that you have in fact successfully installed edgeR itself but haven't installed edgeR's dependencies. If you check back to the page https://bioconductor.org/packages/edgeR/, you will see that edgeR imports locfit and Rcpp. If you don't have those packages installed already then you need:

library("BiocManager")
install("locfit")
install("Rcpp")
install("edgeR")

then you will be able to load edgeR. You will need to have limma installed as well but the error message suggests you have that already.

It is typical for Bioconductor packages to have dependencies and edgeR has fewer than most. You'll need to go through this process of installing the other packages that they depend on for any Bioconductor package that you want to work with.

ADD COMMENT

Login before adding your answer.

Traffic: 1852 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6