Files
jcutmirror/docs/zh/bioconductor.mdx
2024-02-16 13:11:30 +08:00

32 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
mirrorId: bioconductor
---
Bioconductor 为高通量基因组数据的分析和可视化提供开源工具。Bioconductor 多数软件包采用 R 统计编程语言开发。Bioconductor 每年释出两个版本,并有活跃的用户社区。
使用方法:[Bioconductor](https://www.bioconductor.org/) 镜像源配置文件之一是 `.Rprofile`linux 下位于 `~/.Rprofile`, Windows 下位于 `~\library\base\R\Rprofile`)。
在文末添加如下语句或在 R/RStudio 终端下键入:
```R
options(BioC_mirror="https://mirrors.jcut.edu.cn/bioconductor")
```
即可使用该 Bioconductor 镜像源安装 Bioconductor 软件包。命令如下:
```R
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("$package_name")
```
### 离线使用
如果您的网络环境处于校内但无法访问公网,在完成下列步骤后,即可正常使用 Bioconductor 镜像。
1. 确保 BiocManager 的版本不低于 `1.30.12`。
2. 使用一台可以访问公网的设备,访问 [https://bioconductor.org/config.yaml](https://bioconductor.org/config.yaml) 下载 `config.yaml`,并将该文件拷贝到 BiocManager 所在的校内设备上。然后,在 `~/.Rprofile` 添加如下配置:
```R
options(
BIOCONDUCTOR_CONFIG_FILE = "file:///path/to/config.yaml" # config.yaml 所在的路径
)
```