哈佛大学——差异表达分析(二)R语言复习

DGE分析流程理解在RNAseq数据上执行统计分析时的注意事项从基因计数开始(在比对和计数之后)对计数数据进行QC使用DESeq2对计数数据进行差异表达分析,获得差异显著的基因列表分析结果可视化对差异表达基因列表进行功能分析R语言复习Q&A学习目标描述R使用的各种数据类型和数据结构(包括tibbles)使用R中的函数并描述如何获取参数帮助描述如何在R中安装和使用包使用dplyr包中的管道(%>%)描述ggplot2用于绘图的语法Setting upLet
摘要由CSDN通过智能技术生成

DGE分析流程

  1. 理解在RNAseq数据上执行统计分析时的注意事项
  2. 从基因计数开始(在比对和计数之后)
  3. 对计数数据进行QC
  4. 使用DESeq2对计数数据进行差异表达分析,获得差异显著的基因列表
  5. 分析结果可视化
  6. 对差异表达基因列表进行功能分析

R语言复习Q&A

学习目标

  1. 描述R使用的各种数据类型和数据结构(包括tibbles)
  2. 使用R中的函数并描述如何获取参数帮助
  3. 描述如何在R中安装和使用包
  4. 使用dplyr包中的管道(%>%)
  5. 描述ggplot2用于绘图的语法

Setting up

  1. Let’s create a new project directory for this review:
  • Create a new project called R_refresher
  • Create a new R script called reviewing_R.R
  • Create the following folders in the project directory - data, figures
  • Download a counts file to the data folder by right-clicking here

答:在Rstudio新建Project即可,并保存Rscript
创建文件夹,使用: dir.create('data') dir.create('figures')

  • Now that we have our directory structure setup, let’s load our libraries and read in our data:
  • Load the tidyverse library.
  • Use read.csv() to read in the downloaded file and save it in the object/variable counts
    • What is the syntax for a function?
    • How do we get help for using a function?
  • What is the data structure of counts?
    • What main data structures are available in R?
  • What are the data types of the columns?
    • What data types are available in R?

答:

> library('tidyverse')
> counts <- read.csv('./data/raw_counts_mouseKO.csv')
> head(counts)
                         KO1
ENSMUSG00000000001 5424.6698
ENSMUSG00000000003    0.0000
ENSMUSG00000000028  689.5080
ENSMUSG00000000031    0.0000
ENSMUSG00000000037  282.2818
ENSMUSG00000000049    0.0000
                           KO2
ENSMUSG00000000001 5957.837616
ENSMUSG00000000003    0.000000
ENSMUSG00000000028  724.080013
ENSMUSG00000000031    8.581689
ENSMUSG00000000037  217.760359
ENSMUSG00000000049   33.254045
                          KO3
ENSMUSG00000000001 5451.39192
ENSMUSG00000000003    0.00000
ENSMUSG00000000028  618.82944
ENSMUSG00000000031    0.00000
ENSMUSG00000000037  210.84479
ENSMUSG00000000049    5.27112
                           KO4
ENSMUSG00000000001 4182.126698
ENSMUSG00000000003    0.00000
  • 2
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值