Linux 服务器上安装WGCNA包
1. Linux安装最新R语言
WGCNA基因数目太多个人电脑跑不动,鸟枪不行换大炮
首先,找到R语言国内镜像https://mirrors.tuna.tsinghua.edu.cn/CRAN/,如何在ubuntu上安装最新版R语言
# update indices
sudo apt update -qq
# install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
# add the signing key (by Michael Rutter) for these repos
# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
然后就可以愉快的使用下面的命名安装了
sudo apt install --no-install-recommends r-base
- 安装WGCNA包,常规的安装方法由于缺少大量的库,安装非常困难,找了一晚上终于找到Ubuntu官方安装WGCNA包的方法apt-get 或者apt
sudo apt-get update #更新apt-get
sudo apt-get -y install r-cran-wgcna #安装wgcna包