常用R包安装命令

 if (!requireNamespace("BiocManager", quietly = TRUE))

  install.packages("BiocManager")

BiocManager::install(

c("AnnoProbe",

"stringr",

"tinyarray",

"dplyr",

"survival",

"glmnet",

"survminer",

"devtools",

"My.stepwise",

"oncoPredict",

"gtools",

"reshape2",

"ggpubr",

"future.apply",

"ggplot2",

"GenomicFeatures",

"TCGAbiolinks" ,

"TxDb.Hsapiens.UCSC.hg19.knownGene",

"org.Hs.eg.db",

"preprocessCore","sva")

)

# Install the DynNom package.

install.packages("https://cran.r-project.org/src/contrib/Archive/DynNom/DynNom_5.0.2.tar.gz", repos=NULL, type="source")

install_version("SeuratObject", version = "4.1.3",repos = "http://cran.us.r-project.org")

devtools::install_github("cran/DynNom")

加载R包

> library(AnnoProbe)

> library(stringr)

> library(tinyarray)

> library(dplyr)

> library(survival)

> library(glmnet)

> library(survminer)

> library(My.stepwise)

> library(oncoPredict)

> library(GenomicFeatures)

> library(gtools)

> library(reshape2)

> library(ggpubr)

> library(future.apply)

> library(TCGAbiolinks)

> library(ggplot2)

> library(TxDb.Hsapiens.UCSC.hg19.knownGene)

> library(org.Hs.eg.db)

> library(preprocessCore)

> library(sva)

> library(DynNom)

本站原创,如若转载,请注明出处:https://www.ouq.net/2952.html

(0)
打赏 微信打赏,为服务器增加50M流量 微信打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量
上一篇 06/29/2024 23:21
下一篇 06/30/2024 00:10

相关推荐

  • Rstudio/Rstudio Server enable Copilot-Rstudio Server打开Copilot

    Rstudio Server 默认是关闭Copilot Copilot is turned off by default. Copilot is turned off with copilot-enabled=0 in /etc/rstud…

    R 06/05/2025
    105
  • R_Code: KEGG analysis

    library(clusterProfiler) library(org.Hs.eg.db) # 读取输入数据文件 file_path <- “C:/Users/Lamarck/Desktop/UP_genes_ENSEMBL_ENT…

    R 06/02/2025
    129
  • R_Code:GO and Functional GO

    GO analysis: library(AnnotationDbi) library(org.Hs.eg.db) #基因注释包 library(clusterProfiler) #富集包 # 读取CSV文件 file_path <-…

    R 06/02/2025
    129
  • R_Code:WGCNA and WGCNA_Get_Gene_Length

    library(WGCNA) library(DESeq2) # enableWGCNAThreads(nThreads = 10) # 在处理数据框(data.frame)时,不会自动给将String类型转换成factor类型 optio…

    R 06/02/2025
    133
  • R_Code:RNAseq_GSEA_analysis

    library(clusterProfiler) # GSEA 和富集分析主力包 library(org.Hs.eg.db) # 人类注释数据库(ENTREZID 与 SYMBOL 等 ID 转换) library(enrichplot) …

    R 06/02/2025
    132