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)
相关推荐
就叫_这个吧2 小时前
Java递归方法实现面包屑导航
java·开发语言
fīɡЙtīиɡ ℡2 小时前
AI 应用系统设计
java·开发语言·人工智能
今天AI了吗3 小时前
Python 基础语法(一):常量、变量、输入输出与运算符
开发语言·数据库·人工智能·python·sql·深度学习·机器学习
TELL5214 小时前
selenium webdriver 第二次初始化的异常
开发语言·python
动词ing4 小时前
【C语言】自定义函数+指针入门
c语言·开发语言·算法
重生之后端学习5 小时前
283. 移动零[简单]✅
开发语言·数据结构·算法·leetcode·职场和发展
动词ing6 小时前
【C语言】结构体+文件基础
c语言·开发语言·数据结构
caimouse6 小时前
ReactOS 窗口系统分析(7):分层窗口与绘制辅助 — layered.c + draw.c
c语言·开发语言
丰锋ff6 小时前
基于 Qt 的智慧社区物业管理系统
开发语言·qt
夜不会漫长7 小时前
C++入门(1)
开发语言·c++·算法