Hi, I have been trying to install EnsDb.Hsapiens.v75 or other versions of it including v.79, and I got some warning and error messages. I think it might be because I am using M2 Mac chip, and I was wondering if there's a way to install the package. I could install GenomeInfoDb through Bioconductor in R, but EnsDb.Hsapiens.v75 is the only thing I've known couldn't be installed on my Mac. Thank you!
Code should be placed in three backticks as shown below
# if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("EnsDb.Hsapiens.v75")
#
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2:
cannot open URL 'https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/data/annotation/bin/macosx/big-sur-arm64/contrib/4.2:
cannot open URL 'https://bioconductor.org/packages/3.15/data/annotation/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/data/experiment/bin/macosx/big-sur-arm64/contrib/4.2:
cannot open URL 'https://bioconductor.org/packages/3.15/data/experiment/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/workflows/bin/macosx/big-sur-arm64/contrib/4.2:
cannot open URL 'https://bioconductor.org/packages/3.15/workflows/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2:
cannot open URL 'https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘GenomicAlignments’ ‘Rhtslib’ ‘rtracklayer’ ‘Rsamtools’
sessionInfo( )
Thank you so much for your reply! I tried the code, but I couldn't install AnnotationHub. I got a warning message that I would need to load required package named BioGenerics. Then I tried to install BioGenerics and got the same warning messages that I put in my post:
You could try running in emulation mode by using the Intel build (the first one, R-4.2.1.pkg), instead of the M1 build.
Thank you so much! It worked!!