Centos 系列 安装ArchR

Analyzing single-cell regulatory chromatin in R. • ArchRicon-default.png?t=N7T8https://www.archrproject.com/

ArchR is a scalable software package for integrative single-cell chromatin accessibility analysis

一、Installation of ArchR (Ideal)

ArchR is designed to be run on Unix-based operating systems such as macOS and linux. ArchR is NOT supported on Windows or other operating systems.

ArchR installation currently requires devtools and BiocManager for installation of GitHub and Bioconductor packages. Run the following commands to install the various dependencies used by ArchR:

# First, install devtools (for installing GitHub packages) if it isn’t already installed:
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")

# Then, install BiocManager
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")

# install ArchR:
devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())

# Lastly, install all of the ArchR dependencies that arent installed by default:

library(ArchR)
ArchR::installExtraPackages()

二 、Installation of ArchR(Reality)

理想是丰满的,现实很骨感。

2.1 解决依赖问题。

# dependencies
# install.packages(c("pkgdown", "roxygen2", "rversions", "urlchecker"))

# Warning
# Note:【libicui18n.so.58】: cannot open shared object file: No such file or directory
# ERROR: dependency ‘xml2’ is not available for package ‘pkgdown’
# 如果没有安装。
sudo yum install libicu-devel
sudo dnf install libicu-devel

# 进入R
remove.packages("xml2")

# 查看版本
sudo dnf install libicu60
ldconfig -p | grep icui18n
        libicui18n.so.67 (libc6,x86-64) => /lib64/libicui18n.so.67
        libicui18n.so.60 (libc6,x86-64) => /lib64/libicui18n.so.60
        libicui18n.so (libc6,x86-64) => /lib64/libicui18n.so

# 编译安装 或 软连接
sudo ln -s /lib64/libicui18n.so.60 /lib64/libicui18n.so.58
# or
sudo ln -s /usr/include/locale.h /usr/include/xlocale.h

wget https://github.com/unicode-org/icu/archive/release-58-3.tar.gz
tar xvzf release-58-3.tar.gz
cd icu-release-58-3/icu4c/source
./configure
make -j 16
make install

ls /usr/local/lib | grep libicu
#选择一个路径: 选择一个 R 默认搜索的路径,例如 /usr/lib64/R/lib。
sudo ln -s /usr/local/lib/libicui18n.so.58 /usr/lib64/R/lib/libicui18n.so.58
sudo ln -s /usr/local/lib/libicui18n.so.58 /lib64/libicui18n.so.58
# 或者修改bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
source .bashrc

2.2 基本按照Github的流程安装,Seurat需要自己安装,具体步骤在我的另一篇博客

# xml2 需要【libicui18n.so.58】
# 导致 "pkgdown", "roxygen2", "rversions", "urlchecker"没有安装成功
# 进入R
install.packages("xml2") 
install.packages(c("pkgdown", "roxygen2", "rversions", "urlchecker"))
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")

# 从官方的github下载,可能会报网络问题,多试几次,当前是1.0.2版本。
devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())

# 另一种办法是
BiocManager::install("ArchR")

# 第三种选择是先下载,再安装
# /path/to 改为 你的实际路径
# https://api.github.com/repos/GreenleafLab/ArchR/tarball/master
library(devtools)
install_local("/path/to/GreenleafLab-ArchR-v1.0.2-8-gd9e741c.tar", repos = NULL, type = "source")


library(ArchR)
# Seurat未自动安装
ArchR::installExtraPackages()

相关推荐

  1. Arch Linux安装macOS

    2024-05-04 09:10:02       28 阅读
  2. arch liunx安装android studio

    2024-05-04 09:10:02       52 阅读
  3. arch linux上安装docker

    2024-05-04 09:10:02       57 阅读
  4. Centos系统上nginx安装

    2024-05-04 09:10:02       46 阅读
  5. CentOS系统工具安装

    2024-05-04 09:10:02       68 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-04 09:10:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-04 09:10:02       101 阅读
  3. 在Django里面运行非项目文件

    2024-05-04 09:10:02       82 阅读
  4. Python语言-面向对象

    2024-05-04 09:10:02       91 阅读

热门阅读

  1. CMakeLists.txt 简单地语法介绍

    2024-05-04 09:10:02       33 阅读
  2. Electron试用 SQLite

    2024-05-04 09:10:02       38 阅读
  3. 华为试题之删除最少字符

    2024-05-04 09:10:02       31 阅读
  4. sqlalchemy单条记录查询函数对比

    2024-05-04 09:10:02       34 阅读
  5. 优化SQL的方法

    2024-05-04 09:10:02       38 阅读
  6. 前端初学者的 CSS 入门

    2024-05-04 09:10:02       29 阅读
  7. 蓝桥杯国赛备赛复习——数据结构

    2024-05-04 09:10:02       33 阅读
  8. 网络安全运维类面试非技术问题

    2024-05-04 09:10:02       31 阅读
  9. Python闭包:深入解析与使用场景

    2024-05-04 09:10:02       32 阅读