Help! install methylkit package
3
3
Entering edit mode
8.6 years ago
wql_zcq ▴ 40

hello, today I failed to installed methylkit package.

install.packages("methylKit_0.9.2.tar.gz",repos=NULL,type="source")

  • installing source package 'methylKit' ... * R * data * exec * inst ** preparing package for lazy loading

Error : objects 'DataFrame', 'Rle', 'elementMetadata', 'elementMetadata<-' are not exported by 'namespace:IRanges' ERROR: lazy loading failed for package 'methylKit'

  • removing 'C:/Program Files/R/R-3.2.5/library/methylKit'
  • restoring previous 'C:/Program Files/R/R-3.2.5/library/methylKit' Warning messages:

1: running command '"C:/PROGRA~1/R/R-32~1.5/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.5\library" "methylKit_0.9.2.tar.gz"' had status 1

2: In install.packages("methylKit_0.9.2.tar.gz", repos = NULL, type = "source") : installation of package ‘methylKit_0.9.2.tar.gz’ had non-zero exit status

unlink("methylKit_0.9.2.tar.gz")

library("methylkit")

Error in library("methylkit") : there is no package called ‘methylkit’

The methods of install packages were:

install.packages( c("data.table","devtools")) source("http://bioconductor.org/biocLite.R") biocLite(c("GenomicRanges","IRanges")) library(devtools) install_github("al2na/methylKit",build_vignettes=FALSE) download.file("http://methylkit.googlecode.com/files/methylKit_0.9.2.tar.gz",destfile="methylKit_0.9.2.tar.gz") install.packages("methylKit_0.9.2.tar.gz",repos=NULL,type="source") unlink("methylKit_0.9.2.tar.gz")

I dont know which function is wrong. Could you help me in solving it?

R software error ChIP-Seq • 7.2k views
ADD COMMENT
1
Entering edit mode
8.6 years ago
Shicheng Guo ★ 9.6k

If your OS is linux, you can copy the following to the terminal and install methylKit.

mkdir methykit
wget https://cran.rstudio.com/src/contrib/devtools_1.11.0.tar.gz
wget https://cran.rstudio.com/src/contrib/httr_1.1.0.tar.gz
wget https://cran.rstudio.com/src/contrib/memoise_1.0.0.tar.gz
wget https://cran.rstudio.com/src/contrib/whisker_0.3-2.tar.gz
wget https://cran.rstudio.com/src/contrib/rstudioapi_0.5.tar.gz
wget https://cran.rstudio.com/src/contrib/jsonlite_0.9.19.tar.
wget https://cran.rstudio.com/src/contrib/git2r_0.14.0.tar.gz
wget https://cran.rstudio.com/src/contrib/withr_1.0.1.tar.gz

R
install.packages("git2r_0.14.0.tar.gz")
install.packages("httr_1.1.0.tar.gz")
install.packages("memoise_1.0.0.tar.gz")
install.packages("rstudioapi_0.5.tar.gz")
install.packages("whisker_0.3-2.tar.gz")
install.packages("withr_1.0.1.tar.gz")

source("http://bioconductor.org/biocLite.R")
biocLite("httr")
biocLite("memoise")
biocLite("whisker")
biocLite("rstudioapi")
biocLite("jsonlite")
biocLite("git2r")
biocLite("withr")
install.packages("devtools_1.11.0.tar.gz")
library("devtools")
install_github("al2na/methylKit",build_vignettes=FALSE)

After this, Just use the following to check whether it has been successfully installed.

library("methylKit")

After you install it, you can remove the folder of methykit. It is not useful after the installation.

ADD COMMENT
0
Entering edit mode

Thank you, I try it.

ADD REPLY
1
Entering edit mode
8.6 years ago

Installation instructions specified here: https://code.google.com/archive/p/methylkit/ appear different from what you tried.

ADD COMMENT
0
Entering edit mode

I installed methylkit package according to the instructions from https://code.google.com/archive/p/methylkit/, but failed.

ADD REPLY
1
Entering edit mode
8.4 years ago
Guangchuang Yu ★ 2.6k

try this one:

source("http://bioconductor.org/biocLite.R")
biocLite(c('IRanges', 'data.table', 'S4Vectors', 'GenomeInfoDb', 'KernSmooth', 
                 'qvalue', 'emdbook', 'Rsamtools', 'gtools', 'fastseg', 'rtracklayer', 
                 'mclust', 'R.utils', 'limma', 'Rcpp', 'Rhtslib', 'zlibbioc'))
install.packages('methylkit', repos = "http://www.bioconductor.org/packages/devel/bioc")

or the easiest way:

source("http://bioconductor.org/biocLite.R")
useDevel(TRUE)
biocLite("methylKit")
useDevel(FALSE)
ADD COMMENT

Login before adding your answer.

Traffic: 2194 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