R语言5_安装Giotto

环境Ubuntu22/20, R4.1. 已开启科学上网

第一步,更新服务器环境,进入终端,键入如下命令,

bash 复制代码
apt-get update
apt install libcurl4-openssl-dev libssl-dev libxml2-dev libcairo2-dev libgtk-3-dev libhdf5-dev libmagick9-dev libcairo2-dev libxt-dev libgsl-dev libgdal-dev
# linux repo 	:: R repo
# ==============================
# libcairo2-dev :: systemfonts
# libgtk 		:: textshaping
# libhdf5-dev 	:: hdf5r
# libmagick9-dev:: magick
# libcairo2-dev libxt-dev :: Cairo
# libgsl-dev	:: RcppGSL
# libgdal-dev	:: gdal; terra

# below all for complete R repo :: magick
apt install libmagick++-dev librsvg2-dev libwebp-dev libpoppler-cpp-dev libtesseract-dev libleptonica-dev tesseract-ocr-eng libfftw3-dev cargo # r-cran-rgdal 

# below all for complete R repo :: car; FactoMineR
apt install liblapack-dev liblapack3 libopenblas-base libopenblas-dev libnlopt-dev

第二步,装CRAN上的包。进入R语言交互环境,键入如下命令,:

r 复制代码
# Bayes
install.packages("scales")
install.packages("ggplot2")
install.packages("ggbeeswarm")
install.packages("viridis")
install.packages("pheatmap")
install.packages("Cairo")
install.packages("ggrepel")
install.packages("systemfonts")
install.packages("textshaping")
install.packages("ragg")
install.packages("ggrastr")
install.packages("systemfonts")

# Giotto
install.packages("gmp")
install.packages("ClusterR")
install.packages('devtools')
install.packages('remotes')
install.packages("magick")
install.packages("RcppGSL")
install.packages("FactoMineR")

第三步,装BiocManager上的包。进入R语言交互环境,键入如下命令,

r 复制代码
# Bayes
if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")    
BiocManager::install("Rhdf5lib")	# need apt install libhdf5-dev
BiocManager::install("rhdf5filters")
BiocManager::install("GenomeInfoDbData")	# maybe need a VPN since it is big, about 10mB. Less than 5mB can be download without VPN.
BiocManager::install("BayesSpace")

# Giotto
if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("ComplexHeatmap")
Rfast
RcppGSL
RcppZiggurat

第四步,装GIthub上的包。进入R语言交互环境,键入如下命令安装Giotto,(推荐)

r 复制代码
library(remotes)
remotes::install_github("RubD/Giotto") 

或者不用C编译器装Giotto,(可选)

r 复制代码
# compilation problems (gfortran)?
# this version does not require C compilation
remotes::install_github("RubD/Giotto@cless") 

测试,

r 复制代码
library(Giotto)
相关推荐
binishuaio4 分钟前
Java 第11天 (git版本控制器基础用法)
java·开发语言·git
zz.YE6 分钟前
【Java SE】StringBuffer
java·开发语言
就是有点傻10 分钟前
WPF中的依赖属性
开发语言·wpf
洋24018 分钟前
C语言常用标准库函数
c语言·开发语言
进击的六角龙20 分钟前
Python中处理Excel的基本概念(如工作簿、工作表等)
开发语言·python·excel
wrx繁星点点21 分钟前
状态模式(State Pattern)详解
java·开发语言·ui·设计模式·状态模式
NoneCoder38 分钟前
Java企业级开发系列(1)
java·开发语言·spring·团队开发·开发
苏三有春39 分钟前
PyQt5实战——UTF-8编码器功能的实现(六)
开发语言·qt
Aniay_ivy1 小时前
深入探索 Java 8 Stream 流:高效操作与应用场景
java·开发语言·python
鸿儒5171 小时前
C++ lambda 匿名函数
开发语言·c++