a b/vignettes/src/part16.Rmd
1
---
2
title: "Part 16"
3
output:
4
  BiocStyle::html_document
5
---
6
7
```{r, message=FALSE, include=!exists(".standalone"), eval=!exists(".standalone")}
8
library("BloodCancerMultiOmics2017")
9
library("ggplot2")
10
library("dplyr")
11
library("gridExtra")
12
```
13
14
```{r echo=FALSE}
15
plotDir = ifelse(exists(".standalone"), "", "part16/")
16
if(plotDir!="") if(!file.exists(plotDir)) dir.create(plotDir)
17
```
18
19
20
# Response to cytokines in CLL
21
22
In order to find out whether the cytokines have pro-survival effect on patient cells the drug sreen was performed.
23
`r length(unique(cytokineViab$Patient))` patient samples were exposed to 6 different cytokines. The viability of the treated cells were normalized by untreated controls.
24
25
Load the drug response dataset.
26
```{r}
27
data("cytokineViab")
28
```
29
30
Plot the drug response curves.
31
```{r cytokinesC0, fig.width=8, fig.height=6, warning=FALSE, fig.path=plotDir, dev=c("png", "pdf")}
32
cond <- c("IL-2", "IL-4", "IL-10", "IL-21", "LPS", "IgM")
33
34
for (i in cond){  
35
  plot = ggplot(
36
    filter(cytokineViab, Duplicate%in%c("1"), Stimulation==i, Timepoint=="48h"),
37
    aes(x=as.factor(Cytokine_Concentration2), y=Normalized_DMSO, colour=mtor,
38
        group=interaction(Patient))) +
39
    ylab("viability") + xlab("c(stimulation)") + ylim(c(0.8, 1.4)) +
40
    geom_line() + geom_point() + ggtitle(i) + theme_bw() + guides(color="none")
41
  
42
    assign(paste0("p",i), plot)
43
}
44
45
grid.arrange(`pIL-2`,`pIL-10`,`pIL-4`,`pIL-21`,pLPS, pIgM, nrow=2)
46
```
47
48
IL-10 had a pro-survival effect on the majority of samples, but not on those in the mTOR group.
49
IL-4 and IL-21 had pro-survival effects on most samples, including the mTOR group.
50
51
```{r, include=!exists(".standalone"), eval=!exists(".standalone")}
52
sessionInfo()
53
```
54
55
```{r, message=FALSE, warning=FALSE, include=FALSE}
56
rm(list=ls())
57
```