Skip to content

Commit

Permalink
translate comments into english
Browse files Browse the repository at this point in the history
  • Loading branch information
gaospecial committed Dec 9, 2020
1 parent 3082562 commit fb98fed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions raw-data-process.Rmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "原始数据处理"
title: "raw data process"
output: github_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## 生长曲线数据处理
## growth curve data

```{r}
## read qPCR raw data
Expand All @@ -31,12 +31,12 @@ results <- results %>%
dplyr::rename(sample=`Sample Name`,species=`Target Name`) %>%
left_join(meta,by="sample")
## remove unspecific
## remove unspecific control
results <- results %>%
filter(!(condition=="all" & species=="PP")) %>%
filter(!(condition=="none" & species=="EC"))
## 计算定量数据
## quantify
cal_quantity <- function(ct){10^(-.2922*ct+12.077)}
results <- results %>% mutate(quantity=cal_quantity(CT)*dilution) %>%
filter(quantity > 1e5)
Expand All @@ -52,9 +52,9 @@ write.csv(qPCR_data, file = "data/qPCR-data.csv",row.names = FALSE)

## RNA-seq

### 鉴定差异表达基因
### Identifing differentially expressed genes

ht-seq counts 结果出发。
Start from ht-seq counts.

```{r deseq}
ht_counts <- readRDS("data/rna/ht_counts.rds")
Expand All @@ -64,7 +64,7 @@ myDESeqMatrix <- function(ht_counts=ht_counts, org=NULL) {
require(dplyr)
require(tidyr)
require(tibble)
# 过滤和创建 matrix
if (!is.null(org)){
ht_counts <- ht_counts %>% filter(organism==org) %>%
filter(ratio0 != ifelse(org=="EC","none","all"))
Expand All @@ -91,7 +91,7 @@ dds.PP <- DESeqDataSetFromMatrix(countData = mat.PP$count_data,
design = ~ group)
# run DESeq()
dds.EC <- DESeq(dds.EC) # this step is time consuming 标准化
dds.EC <- DESeq(dds.EC) # this step is time consuming, normalization
dds.PP <- DESeq(dds.PP)
# get deg
Expand Down

0 comments on commit fb98fed

Please sign in to comment.