jjcui8595
deepin
2022-07-06 16:47 感谢分享
Reply Like 0 View the author
感谢分享
支持,已经为 arch 打包了
我为 CellMix 写了个 patch, 让他可以在 R4.2.1 上面使用了。
= 1.20.0), biomaRt, knitr
diff --git a/NAMESPACE b/NAMESPACE
index 20fff59..10f0d8b 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -261,7 +261,7 @@ exportMethods(subset)
exportMethods(summary)
import(AnnotationDbi)
import(Biobase)
-import(BiocInstaller)
+import(BiocManager)
import(DBI)
import(GSEABase)
import(NMF)
diff --git a/R/utils.R b/R/utils.R
index eb78f62..1a2ee1c 100644
--- a/R/utils.R
+++ b/R/utils.R
@@ -389,7 +389,7 @@ askUser <- function (msg, allowed = c("y", "n"), idefault = "n", default = "n",
#' @return \code{TRUE} if the package was successfully loaded/found (installed),
#' \code{FALSE} otherwise.
#'
-#' @import BiocInstaller
+#' @import BiocManager
#' @keywords internal
uq_requirePackage <- function(package, lib=NULL, ..., load=TRUE, msg=NULL, quiet=TRUE, prependLF=FALSE
, ptype=c('CRAN-like', 'BioC', 'BioCSoft', 'BioCann')){
@@ -443,7 +443,7 @@ uq_requirePackage <- function(package, lib=NULL, ..., load=TRUE, msg=NULL, quiet
if( install_type == 'CRAN' ){
pkginstall <- install.packages
}else{ # Bioconductor
- if( !reqpkg('BiocInstaller') ){ # get biocLite from bioconductor.org
+ if( !reqpkg('BiocManager') ){ # get biocLite from bioconductor.org
# use internal sourceURL to avoid issues with proxies
sourceURL("http://www.bioconductor.org/biocLite.R")
}
diff --git a/README.md b/README.md
index 3ea6948..9258045 100755
--- a/README.md
+++ b/README.md
@@ -13,13 +13,13 @@ See Algorithms for a list of all available d
## Installation
```R
# install biocLite if not already there
-if( !require(BiocInstaller) ){
+if( !require(BiocManager) ){
# enable Bioconductor repositories
# -> add Bioc-software
setRepositories()
- install.packages('BiocInstaller')
- library(BiocInstaller)
+ install.packages('BiocManager')
+ library(BiocManager)
}
# or alternatively do:
# source('http://www.bioconductor.org/biocLite.R')
diff --git a/vignettes/CellMix-unitTests.Rnw b/vignettes/CellMix-unitTests.Rnw
index 441e244..7855e76 100644
--- a/vignettes/CellMix-unitTests.Rnw
+++ b/vignettes/CellMix-unitTests.Rnw
@@ -109,7 +109,7 @@ Total execution time
stringr~0.6.2, synchronicity~1.1.0
\item Loaded via a namespace (and not attached):
AnnotationForge~1.2.1, beeswarm~0.1.5, bibtex~0.3-5,
- BiocInstaller~1.10.1, codetools~0.2-8, colorspace~1.2-2,
+ BiocManager~1.10.1, codetools~0.2-8, colorspace~1.2-2,
dichromat~2.0-0, doParallel~1.0.1, foreach~1.4.0,
genefilter~1.42.0, ggplot2~0.9.3.1, gridBase~0.4-6, gtable~0.1.2,
gtools~2.7.1, IRanges~1.18.1, iterators~1.0.6, labeling~0.1,
diff --git a/vignettes/Introduction.Rnw b/vignettes/Introduction.Rnw
index d75caed..69e9c7d 100644
--- a/vignettes/Introduction.Rnw
+++ b/vignettes/Introduction.Rnw
@@ -130,12 +130,12 @@ after the user gives permission to do so.}:
<>=
# install biocLite
-install.packages('BiocInstaller')
+install.packages('BiocManager')
# or alternatively do:
# source('http://www.bioconductor.org/biocLite.R')
# install GEOquery (NB: might ask you to update some of your packages)
-library(BiocInstaller)
+library(BiocManager)
biocLite('GEOquery')
@
diff --git a/vignettes/SampleAnalysis.Rnw b/vignettes/SampleAnalysis.Rnw
index f18a351..4d31d6a 100644
--- a/vignettes/SampleAnalysis.Rnw
+++ b/vignettes/SampleAnalysis.Rnw
@@ -121,13 +121,13 @@ repository, using standard package installation commands:
<>=
# install biocLite if not already there
-if( !require(BiocInstaller) ){
+if( !require(BiocManager) ){
# enable Bioconductor repositories
# -> add Bioc-software
setRepositories()
- install.packages('BiocInstaller')
- library(BiocInstaller)
+ install.packages('BiocManager')
+ library(BiocManager)
}
# or alternatively do:
# source('http://www.bioconductor.org/biocLite.R')
Popular Ranking
ChangePopular Events
More
一、安装方法概览 二、安装步骤
1、Conda 和 R 环境安装
在上一篇安装 CellMix 的日记中已经详细介绍,这里不再赘述。参见: https://www.learndiary.com/2022/05/linux-conda-cellmix/ ,这篇日记中还有一些 R 包安装的知识点小结和一些有用的参考网址。
2、在 Conda 中安装依赖包
3、安装专门的生物信息软件管理器及依赖包
在 R 环境下执行下列命令:
这时会让选择CRAN镜像,我这里选“20: China (Guangzhou) [https]”,即输入20回车即可。
这时会询问是否更新旧的 'Cario'、'stringi'包,这时选不更新 n,后面有这样的询问同样选 n
Update all/some/none? [a/s/n]: n
这时会询问是否更新软件包,这里直接回车略过不更新。
然后,会提示安装147个软件包,后面还会警告包"locfit"找不到,如下:
Installing 147 packages: lattice, Matrix, MASS, survival, Biobase, BiocGenerics, rlang, Rcpp, codetools, ProtGenerics, iterators, foreach, doParallel, plyr, XML, zlibbioc, preprocessCore, affyio, utf8, crayon, cli, colorspace, vctrs, pkgconfig, pillar, magrittr, fansi, ellipsis, viridisLite, RColorBrewer, R6, munsell, lifecycle, labeling, farver, nlme, withr, tibble, scales, mgcv, isoband, gtable, glue, digest, ggplot2, limma, affy, S4Vectors, Rhdf5lib, ncdf4, later, fastmap, base64enc, lazyeval, jsonlite, htmltools, purrr, tidyselect, generics, cpp11, dplyr, yaml, sys, askpass, openssl, mime, bitops, formatR, futile.options, lambda.r, BH, snow, futile.logger, stringr, parallelly, listenv, globals, future, SQUAREM, numDeriv, progressr, future.apply, lava, KernSmooth, prodlim, class, nnet, rpart, timeDate, tidyr, lubridate, ipred, hardhat, gower, data.table, proxy, RcppParallel, cachem, bit, scrime, multtest, mzID, MALDIquant, pcaMethods, impute, vsn, IRanges, BiocParallel, mzR, promises, crosstalk, htmlwidgets, httr, caTools, gtools, fastmatch, gridExtra, reshape2, recipes, pROC, ModelMetrics, e1071, stringfish, RApiSerialize, prettyunits, hms, plogr, memoise, DBI, blob, bit64, graph, siggenes, MSnbase, plotly, igraph, gplots, glasso, fgsea, edgeR, crmn, caret, qs, Rserve, progress, RSQLite, RBGL
Warning: dependency ‘locfit’ is not available
这里我们不干预,让它自动完成安装。
这里先安装上 locfit,命令如下:上述命令长时间运行完成后,会报告依赖“edgeR”找不到。如下: