-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab.Rmd
More file actions
120 lines (70 loc) · 5.58 KB
/
Copy pathlab.Rmd
File metadata and controls
120 lines (70 loc) · 5.58 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
title: "<i class='fas fa-flask' style='margin-left:4px;margin-right:4px;'></i> Lab"
output:
bookdown::html_document2:
toc: true
toc_float: true
toc_depth: 4
number_sections: true
theme: flatly
highlight: tango
df_print: default
code_folding: "none"
self_contained: false
keep_md: false
encoding: 'UTF-8'
css: "assets/lab.css"
---
```{r,child="assets/header-lab.Rmd"}
```
This page contains links to different tutorials that are used in this course. The tutorials are well documented and should be easy to follow.
<div class="instruction">
Input code blocks are displayed like shown below. The code language is displayed above the block. Shell scripts (**SH**) are to be executed in the linux terminal such as bash. **R** scripts are to be run in R either through the terminal, RGui or RStudio.
```{sh,eval=FALSE,block.title=TRUE}
command
```
<i class="fas fa-exclamation-circle"></i> Note <i class="fas fa-lightbulb"></i> Tip <i class="fas fa-comments"></i> Discuss <i class="fas fa-clipboard-list"></i> Task
</div>
<br>
This topic covers retrieving data needed for all the exercises in the entire course can be found in the following link.
[<i class="fas fa-link"></i> <span class="large">Downloading data</span>](lab_download.html)
Some pre-course R warm-up below, if you fancy that:
[<i class="fas fa-link"></i> <span class="large">R warmup</span>](https://immuntech.github.io/Bioinformatics_Workshop_ImmTech/Data/2019-10-15/R_exercise_Lokesh.html)
# Introduction
Most of the analyses is carried out in R and it will be useful to learn some basics in R that are very much necessary for this course. Even if you have learnt these things already, it is good to freshen up your memory.
[<i class="fas fa-link"></i> <span class="large">Introduction to R</span>](lab_r.html)
# Main lab
## Data
In most of the exercises, we will use RNA-seq data (Illumina short reads) from the human A431 cell line. It is an epidermoid carcinoma cell line which is often used to study cancer and the cell cycle, and as a sort of positive control of epidermal growth factor receptor (EGFR) expression. A431 cells express very high levels of EGFR, in contrast to normal human fibroblasts.
The A431 cells were treated with gefinitib, which is an EGFR inhibitor and is used (under the trade name Iressa) as a drug to treat cancers with mutated and overactive EGFR. In the experiment, RNA was extracted at four time points: before the gefinitib treatment (t=0), and two, six and twenty-four hours after treatment (t=2, t=6, t=24, respectively), and sequenced using an Illumina HiSeq instrument in triplicates (thus there are 3x4=12 samples).
This data is part of the transcriptomics course that is also given by NBIS. We will use some of the `counts table` that was generated in the course after different transformations like manual filtering for low counts, VST and DESeq2. You don't have to know what these exactly mean to do these exercises :) These are basically the same data at different stages of the transcriptomics analysis.
## ggplot basics 1
Below is the link for the basic plotting exercise. there will be some basic plotting exercises first using R base graphics and comparing them to the grid graphics using `ggplot2`. Followed by practicing the first basics in ggplot: geoms, colors and aesthetics.
[<i class="fas fa-link"></i> <span class="large">Geoms, colors and aesthetics</span>](lab_base_grid.html)
## ggplot basics 2
Below is the link for the second exercise where you will look into facets, barplots and errorbars.
[<i class="fas fa-link"></i> <span class="large">Facets, barplots and errorbars</span>](lab_gg_2.html)
## ggplot basics 3
Below is the link for the third exercise where you will look into facets, barplots and errorbars.
[<i class="fas fa-link"></i> <span class="large">Axes, labels, legends and themes</span>](lab_gg_3.html)
## Combining plots
In this part of the lab, we will look into: how one can combine different plots that we have made using different tools. Also to look into some of the advantages of `cowplot` and `ggpubr`.
[<i class="fas fa-link"></i> <span class="large">Combining plots</span>](lab_gg_4.html)
## PCA and Heatmaps
Here, we look into building PCA plots with `ggplot`. We will also look into making heatmaps with both `pheatmap` and `geom_tile` in `ggplot`.
[<i class="fas fa-link"></i> <span class="large">PCA and Heatmap</span>](lab_pca_hmap.html)
# Optional exercises
Below are specific exercises for people who are interested in specific topics.
## Phylogenetic trees
Below are some exercises in working with phylogenetic trees in R using mainly a package called `ggtree`.
[<i class="fas fa-link"></i> <span class="large">Phylogenetic trees</span>](lab_phylo.html)
## Map-data using ggmap
Below is if you want publication-grade phylogenetic trees.
[<i class="fas fa-link"></i> <span class="large">Map-data using ggmap</span>](lab_ggmap.html)
# Solutions to exercises:
Here I have compiled all the solutions for the different exercises in each of the sections:
[<i class="fas fa-link"></i> <span class="large">Solutions</span>](solutions.html)
# Extra Tutorial for ggplot
In the following link, you can find several different ways to use `ggplot` and obtain incredible visualizations of the data. Depending on the kind of data you have and the kind of visualization you would like to see, you can follow it on the table contents in this following page:
[<i class="fas fa-link"></i> <span class="large">Top 50 ggplot2 Visualizations</span>](http://r-statistics.co/Top50-Ggplot2-Visualizations-MasterList-R-Code.html)
**End of document**