Hello, I am trying to construct an annotation file and convert hg19 coordinates to hg38. The start of my code is as follows:
library(minfi)
library(rtracklayer)
library(GenomicRanges)
allAnn=getAnnotation(hgscNorm)
However, I receive the following error:
> allAnn=getAnnotation(hgscNorm)
Error in is(object, "MethylSet") : object 'hgscNorm' not found
I have tried installing hgscNorm with:
> BiocManager::install("hgscNorm")
but I get the following output:
Bioconductor version 3.8 (BiocManager 1.30.4), R 3.5.3 (2019-03-11)
Installing package(s) 'hgscNorm'
installation path not writeable, unable to update packages: Matrix, mgcv
Warning message:
package ‘hgscNorm’ is not available (for R version 3.5.3)
I have also tried:
> BiocInstaller::biocLite(c("hgscNorm"))
but get the following output:
BioC_mirror: http://bioconductor.org
Using Bioconductor version 2.13 (BiocInstaller 1.32.1), R version 3.5.3.
Temporarily using Bioconductor version 2.13
Installing package(s) 'hgscNorm'
Warning: unable to access index for repository http://bioconductor.org/packages/2.13/bioc/bin/macosx/el-capitan/contrib/3.5:
cannot open URL 'http://bioconductor.org/packages/2.13/bioc/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
Warning: unable to access index for repository http://bioconductor.org/packages/2.13/data/annotation/bin/macosx/el-capitan/contrib/3.5:
cannot open URL 'http://bioconductor.org/packages/2.13/data/annotation/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
Warning: unable to access index for repository http://bioconductor.org/packages/2.13/data/experiment/bin/macosx/el-capitan/contrib/3.5:
cannot open URL 'http://bioconductor.org/packages/2.13/data/experiment/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
Warning: unable to access index for repository http://bioconductor.org/packages/2.13/extra/bin/macosx/el-capitan/contrib/3.5:
cannot open URL 'http://bioconductor.org/packages/2.13/extra/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
Warning messages:
1: package ‘hgscNorm’ is not available (for R version 3.5.3)
2: installed directory not writable, cannot update packages 'Matrix', 'mgcv'
Do you know what the problem is and how I can install hgscNorm?
Thank you, Brendan
Thank you. You're absolutely right. To clarify for others who may view this:
My previous code was the following:
Read in IDAT methylation array data to build minfi object:
Now I can liftover the annotation from hg19 to hg38 (what I was originally trying to do):