-
Notifications
You must be signed in to change notification settings - Fork 0
/
per_gene.Rmd
48 lines (40 loc) · 1.04 KB
/
per_gene.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "Results per gene"
author: "Tim D. Smith"
date: "September 4, 2016"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(dplyr)
library(ggplot2)
library(readr)
library(reshape2)
devtools::load_all(".")
cqs = load_all_cqs()
melts = load_all_melt_curves()
```
```{r output, warning=FALSE, message=FALSE}
for(target in unique(cqs$Target)) {
cat(paste0("\n\n", target, " --------------------------"))
target.cqs = cqs %>% filter(Target == target)
target.melts = melts %>% filter(Target == target)
g = ggplot(target.melts, aes(Temperature, dF, color=as.factor(Col))) +
facet_wrap(~Condition) +
geom_line(alpha=0.7) +
theme_bw()
print(g)
g = ggplot(target.cqs, aes(Condition, Cq, color=Mouse)) +
geom_point() +
facet_grid(Timepoint~.) +
theme_bw()
print(g)
g = target.cqs %>%
fold_vs_gapdh %>%
ggplot(aes(Condition, FoldVsGapdh, color=Mouse)) +
geom_point() +
facet_grid(Timepoint~., scales="free_y") +
theme_bw()
print(g)
}
```