首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >一. 生信入门环境搭建

一. 生信入门环境搭建

原创
作者头像
白胖胖
发布2024-03-15 23:03:04
发布2024-03-15 23:03:04
2870
举报

随手记

代码语言:js
复制
dev.off() #关闭画板
libPaths() # 包安装路径

【NO.1】 学习班学习准备工作

大家把电脑配置一下,参考视频 https://www.bilibili.com/video/av80872684 根据这个做准备工作

【1】首先是必备软件安装,根据自己的操作系统

百度网盘:https://pan.baidu.com/s/1upnRTXwkI0hvxuuA2Gm49w 提取码: cnrv

【2】然后是R包安装,跟着指引来:http://www.bio-info-trainee.com/3727.html

【3】尽早完成准备工作,如果学有余力,就看看我们B站视频,主要是linux和R基础, https://space.bilibili.com/338686099

【4】遇到报错先看【答疑文档】: https://docs.qq.com/doc/DT2VMdmN2Y0F5SHlr

【NO.2】R包安装代码

代码语言:js
复制
rm(list = ls()) 
options()$repos 
options()$BioC_mirror
#options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")
options(BioC_mirror="http://mirrors.tuna.tsinghua.edu.cn/bioconductor/")
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
options()$repos 
options()$BioC_mirror

# https://bioconductor.org/packages/release/bioc/html/GEOquery.html
if (!requireNamespace("BiocManager", quietly = TRUE))
 install.packages("BiocManager") 
BiocManager::install(c("GSEABase","GSVA","clusterProfiler" ),ask = F,update = F)
BiocManager::install(c("GEOquery","limma","impute" ),ask = F,update = F)
BiocManager::install(c("org.Hs.eg.db","hgu133plus2.db" ),ask = F,update = F)

# 下面代码被我注释了,意思是这些代码不需要运行,因为它过时了,很多旧教程就忽略
# 在代码前面加上 # 这个符号,代码代码被注释,意思是不会被运行
# source("https://bioconductor.org/biocLite.R") 
# library('BiocInstaller') 
# options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/") 
# BiocInstaller::biocLite("GEOquery")
# BiocInstaller::biocLite(c("limma"))
# BiocInstaller::biocLite(c("impute"))

# 但是接下来的代码又需要运行啦
options()$repos
install.packages('WGCNA')
install.packages(c("FactoMineR", "factoextra"))
install.packages(c("ggplot2", "pheatmap","ggpubr"))
library("FactoMineR")
library("factoextra")

library(GSEABase)
library(GSVA)
library(clusterProfiler)
library(ggplot2)
library(ggpubr)
library(hgu133plus2.db)
library(limma)
library(org.Hs.eg.db)
library(pheatmap)

以上均来自生信技能树

生信技能树专辑----单细胞思路、单细胞进阶、单细胞高级分析、单细胞天地

小洁邮箱:xjsun1221<xjsun1221@163.com

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 随手记
  • 【NO.1】 学习班学习准备工作
    • 【1】首先是必备软件安装,根据自己的操作系统
    • 【2】然后是R包安装,跟着指引来:http://www.bio-info-trainee.com/3727.html
    • 【3】尽早完成准备工作,如果学有余力,就看看我们B站视频,主要是linux和R基础, https://space.bilibili.com/338686099
    • 【4】遇到报错先看【答疑文档】: https://docs.qq.com/doc/DT2VMdmN2Y0F5SHlr
  • 【NO.2】R包安装代码
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档