服务器上安装WGCNA

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
  1. 安装WGCNA包,常规的安装方法由于缺少大量的库,安装非常困难,找了一晚上终于找到Ubuntu官方安装WGCNA包的方法apt-get 或者apt
sudo apt-get update  #更新apt-get
sudo apt-get -y install r-cran-wgcna #安装wgcna包
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容