Or just BiocManager::install("satijalab/azimuth") since this will install from GitHub and take care of CRAN and Bioc dependencies. Wouldn't that do?
I want to annotation my clusters by Azimuth package.... I tried to install 'Azimuth' packages several code but it didn't work. If you know, please teach how to install Azimuth. Or If you know another tip to annotation please tell me. Thank you so much!! fist tried code is
devtools::install_github("satijalab/azimuth", "seurat5")
devtools::install_github("satijalab/azimuth")
second tried code is
if (!requireNamespace('remotes', quietly = TRUE) {
install.packages('remotes')
}
remotes::install_github('satijalab/azimuth', ref = 'master')
2 answers
igraph can't be loaded it's visible from the fact that azimuth needed igraph, so it automatically tried to install it but failed, and because it failed azimuth did not install either. Run the install command for igraph it will fail but it will tell you what are the dependencies for it. And also try to install it's dependencies one by one. Rinse and repeat. There will be dependencies that you have to install from the command line and not rStudio. Most likely it will be tedious.
Yes, I finally did :-D
install.packages("BiocManager")
library(BiocManager)
# DirichletMultinomial #
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DirichletMultinomial", force = TRUE)
library(DirichletMultinomial)
# TFBSTools #
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("TFBSTools")
library(TFBSTools)
# BSgenome.Hsapiens.UCSC.hg38 #
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
options(timeout=10000)
BiocManager::install("BSgenome.Hsapiens.UCSC.hg38", force = TRUE)
library(BSgenome.Hsapiens.UCSC.hg38) # Error in library(BSgenome.Hsapiens.UCSC.hg38) : there is no package called ‘BSgenome.Hsapiens.UCSC.hg38’ a
BiocManager::valid()
BiocManager::install(version = "3.20")
options(timeout = 3000) # I also used ethernet connection
BiocManager::install("BSgenome.Hsapiens.UCSC.hg38")
library(BSgenome.Hsapiens.UCSC.hg38)
.rs.restartR()
library(BiocManager)
library(DirichletMultinomial)
library(TFBSTools)
library(BSgenome.Hsapiens.UCSC.hg38)
library(usethis)
library(devtools)
devtools::install_github("satijalab/azimuth", "seurat5")
Log in to answer this question.
It is difficult to help without seeing the error messages. Also set
quietly=FALSEto see what is happening in the console.ERROR: dependency ‘BSgenome.Hsapiens.UCSC.hg38’ is not available for package ‘Azimuth’. did you installed it? Also check ifigraphcan be laoded.Then I should download all annotation files before install 'Azimuth'? Thanks for help!
Yes, you need to have installed all packages azimuth depends on.