Skip to content

Commit

Permalink
tweaks to visualisation section
Browse files Browse the repository at this point in the history
  • Loading branch information
fruce-ki committed Sep 5, 2016
1 parent ee47f8e commit ae89206
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 296 deletions.
16 changes: 8 additions & 8 deletions inst/doc/tutorial.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,22 @@ plot_gene(mydtu, "MIX6", vals="proportions")
# The ERROR BARS represent 2 standard deviations from the mean count across replicates.
plot_gene(mydtu, "MIX6", vals="counts")

## ------------------------------------------------------------------------
# Proportion change VS significance.
plot_overview(mydtu, type="volcano")
## ----eval=FALSE----------------------------------------------------------
# # Proportion change VS significance.
# plot_overview(mydtu, type="volcano")

## ------------------------------------------------------------------------
# Distribution of maximum proportion change.
plot_overview(mydtu, type="maxdprop")
## ----eval=FALSE----------------------------------------------------------
# # Distribution of maximum proportion change.
# plot_overview(mydtu, type="maxdprop")

## ------------------------------------------------------------------------
library(ggplot2)

myplot <- plot_overview(mydtu, "volcano")
myplot # display

# Change scale of y axis to linear.
myplot2 <- myplot + scale_y_continuous(trans = "identity")
# Change title.
myplot2 <- myplot + ggtitle("My epic title")
myplot2

## ----eval=FALSE----------------------------------------------------------
Expand Down
15 changes: 7 additions & 8 deletions inst/doc/tutorial.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -591,24 +591,24 @@ Possibly the most common plot in differential expression is the volcano plot, wh
the statistical significance. As it is difficult to define a single p-value and a single effect size at the gene level,
the volcano can only be plotted at the transcript level.

```{r}
```{r eval=FALSE}
# Proportion change VS significance.
plot_overview(mydtu, type="volcano")
```

And this is what it looks like on a larger dataset:
This is what it looks like on a larger dataset:
![Dprop VS sig](./fig/volcano.jpg)

The next command plots the largest change in proportion seen within each gene, against the number of genes showing
such change. This is a way to inspect what effect sizes are present in the data. As an additional layer of information,
they are colour-coded by their DTU call.

```{r}
```{r eval=FALSE}
# Distribution of maximum proportion change.
plot_overview(mydtu, type="maxdprop")
```

And this is what it looks like on a larger dataset:
This is what it looks like on a larger dataset:
![Max Dprop](./fig/maxdprop.jpg)


Expand All @@ -624,8 +624,8 @@ library(ggplot2)
myplot <- plot_overview(mydtu, "volcano")
myplot # display
# Change scale of y axis to linear.
myplot2 <- myplot + scale_y_continuous(trans = "identity")
# Change title.
myplot2 <- myplot + ggtitle("My epic title")
myplot2
```

Expand Down Expand Up @@ -714,8 +714,7 @@ mydtu <- call_DTU(annot = myannot, slo = myslo, name_A = "controls",
As measure of confidence in the DTU calls, we take the fraction of iterations that returned a positive DTU call for
the given gene/transcript. A positive call is considered confident if the fraction of positive calls exceeds the threshold (`>= conf_thresh`).
A negative call is considered confident if the fraction of positive calls is below the complement of the threshold (`<= 1 - conf_thresh`).

The default confidence threshold is somewhat strict, but can be over-ridden.
The default confidence threshold can be over-ridden.

```{r eval=FALSE}
mydtu <- call_DTU(annot = myannot, slo = myslo, name_A = "controls",
Expand Down
56 changes: 25 additions & 31 deletions inst/doc/tutorial.html

Large diffs are not rendered by default.

Empty file removed vignettes/.build.timestamp
Empty file.
Binary file added vignettes/fig/maxdprop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/fig/maxdprop.png
Binary file not shown.
Binary file added vignettes/fig/volcano.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/fig/volcano.png
Binary file not shown.
241 changes: 0 additions & 241 deletions vignettes/tutorial.R

This file was deleted.

15 changes: 7 additions & 8 deletions vignettes/tutorial.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -591,24 +591,24 @@ Possibly the most common plot in differential expression is the volcano plot, wh
the statistical significance. As it is difficult to define a single p-value and a single effect size at the gene level,
the volcano can only be plotted at the transcript level.

```{r}
```{r eval=FALSE}
# Proportion change VS significance.
plot_overview(mydtu, type="volcano")
```

And this is what it looks like on a larger dataset:
This is what it looks like on a larger dataset:
![Dprop VS sig](./fig/volcano.jpg)

The next command plots the largest change in proportion seen within each gene, against the number of genes showing
such change. This is a way to inspect what effect sizes are present in the data. As an additional layer of information,
they are colour-coded by their DTU call.

```{r}
```{r eval=FALSE}
# Distribution of maximum proportion change.
plot_overview(mydtu, type="maxdprop")
```

And this is what it looks like on a larger dataset:
This is what it looks like on a larger dataset:
![Max Dprop](./fig/maxdprop.jpg)


Expand All @@ -624,8 +624,8 @@ library(ggplot2)
myplot <- plot_overview(mydtu, "volcano")
myplot # display
# Change scale of y axis to linear.
myplot2 <- myplot + scale_y_continuous(trans = "identity")
# Change title.
myplot2 <- myplot + ggtitle("My epic title")
myplot2
```

Expand Down Expand Up @@ -714,8 +714,7 @@ mydtu <- call_DTU(annot = myannot, slo = myslo, name_A = "controls",
As measure of confidence in the DTU calls, we take the fraction of iterations that returned a positive DTU call for
the given gene/transcript. A positive call is considered confident if the fraction of positive calls exceeds the threshold (`>= conf_thresh`).
A negative call is considered confident if the fraction of positive calls is below the complement of the threshold (`<= 1 - conf_thresh`).

The default confidence threshold is somewhat strict, but can be over-ridden.
The default confidence threshold can be over-ridden.

```{r eval=FALSE}
mydtu <- call_DTU(annot = myannot, slo = myslo, name_A = "controls",
Expand Down
Binary file modified vignettes/tutorial_files/figure-html/unnamed-chunk-27-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae89206

Please sign in to comment.