Skip to content

Commit 43f1fc7

Browse files
committed
Provide info about Supplementary and some edits
1 parent 81d9719 commit 43f1fc7

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

vignettes/supplementary.Rmd

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ counts_tt <-
5353
# shorten sample name
5454
mutate(sample=str_remove(sample, "SRR1039")) %>%
5555
56-
# convert to tidybulk object
56+
# convert to tidybulk tibble
5757
tidybulk(.sample=sample, .transcript=geneID, .abundance=counts)
5858
```
5959

@@ -67,8 +67,7 @@ counts_tt %>%
6767

6868
We can also check how many counts we have for each sample by making a bar plot. This helps us see whether there are any major discrepancies between the samples more easily.
6969

70-
```{r}
71-
# make barplot of counts
70+
```{r out.width = "40%"}
7271
ggplot(counts_tt, aes(x=sample, weight=counts, fill=sample)) +
7372
geom_bar() +
7473
theme_bw()
@@ -78,14 +77,14 @@ As we are using ggplot2, we can also easily view by any other variable that's a
7877

7978
We can colour by dex treatment.
8079

81-
```{r}
80+
```{r out.width = "40%"}
8281
ggplot(counts_tt, aes(x=sample, weight=counts, fill=dex)) +
8382
geom_bar() +
8483
theme_bw()
8584
```
8685
We can colour by cell line.
8786

88-
```{r}
87+
```{r out.width = "40%"}
8988
ggplot(counts_tt, aes(x=sample, weight=counts, fill=cell)) +
9089
geom_bar() +
9190
theme_bw()
@@ -94,7 +93,7 @@ ggplot(counts_tt, aes(x=sample, weight=counts, fill=cell)) +
9493

9594
## How to examine normalised counts with boxplots
9695

97-
```{r}
96+
```{r out.width = "40%"}
9897
# scale counts
9998
counts_scaled <- counts_tt %>% scale_abundance(factor_of_interest = dex)
10099
@@ -112,7 +111,7 @@ counts_scaled %>%
112111

113112
## How to create MDS plot
114113

115-
```{r}
114+
```{r out.width = "40%"}
116115
airway %>%
117116
tidybulk() %>%
118117
scale_abundance(factor_of_interest=dex) %>%
@@ -127,7 +126,7 @@ airway %>%
127126

128127
MA plots enable us to visualise amount of expression (logCPM) versus logFC. Highly expressed genes are towards the right of the plot. We can also colour significant genes (e.g. genes with FDR < 0.05)
129128

130-
```{r}
129+
```{r out.width = "40%"}
131130
# perform differential testing
132131
counts_de <-
133132
counts_tt %>%
@@ -148,7 +147,7 @@ counts_de %>%
148147

149148
A more informative MA plot, integrating some of the packages in tidyverse.
150149

151-
```{r warning=FALSE}
150+
```{r out.width = "40%", warning=FALSE}
152151
counts_de %>%
153152
pivot_transcript() %>%
154153
@@ -167,9 +166,9 @@ counts_de %>%
167166
```
168167

169168

170-
## How to perform gene set analysis
169+
## How to perform gene enrichment analysis
171170

172-
To run below you'll need the `clusterProfiler` and `org.Hs.eg.db` packages. This is just one suggestion, if you have other suggestions for how to do a 'tidy' pathway analysis feel free to [let us know](https://github.com/stemangiola/bioc_2020_tidytranscriptomics/blob/master/CONTRIBUTING.md).
171+
To run below you'll need the `clusterProfiler` and `org.Hs.eg.db` packages. This is just one suggestion, adapted from [here](https://simon-anders.github.io/data_analysis_course/lecture9.html). If you have other suggestions for how to do a 'tidy' pathway analysis feel free to [let us know](https://github.com/stemangiola/bioc_2020_tidytranscriptomics/blob/master/CONTRIBUTING.md).
173172

174173
```{r eval=FALSE}
175174
library(clusterProfiler)

vignettes/tidytranscriptomics.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The tidytranscriptomics approach abstracts out the coding-related complexity and
8282
* Create plots that summarise the information content of the data and analysis results
8383

8484
### Acknowledgements
85-
This material was adapted from an R for RNA sequencing workshop first run [here](http://combine-australia.github.io/2016-05-11-RNAseq/).
85+
This material was adapted from an R for RNA sequencing workshop first run [here](http://combine-australia.github.io/2016-05-11-RNAseq/). Use of the airway and pasilla datasets was inspired by the [DESeq2 vignette](http://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html).
8686

8787
```{r, echo=FALSE, out.width = "100px"}
8888
knitr::include_graphics("../inst/vignettes/tidybulk_logo.png")
@@ -537,6 +537,9 @@ strip_chart %>% ggplotly(tooltip = c("label", "y"))
537537
- Dimensionality reduction (PCA or MDS) plots are very important for exploring the data
538538
- Density plots, volcano plots, strip-charts and heatmaps are useful visualisation tools for evaluating the hypothesis testing.
539539

540+
## Supplementary
541+
Some things we didn't have time to cover in this workshop can be found in the [Supplementary material](https://stemangiola.github.io/bioc_2020_tidytranscriptomics/articles/supplementary.html).
542+
540543
## Exercises
541544

542545
Try to apply what you've learned to another dataset. This dataset was generated from the pasilla package, which obtained the data from the paper by [@brooks2011conservation]. Here we provide it as a SummarizedExperiment object. The dataset has 7 samples from Drosophila (fruitfly): 3 treated with siRNA knockdown of the pasilla gene and 4 untreated controls.

0 commit comments

Comments
 (0)