-
Notifications
You must be signed in to change notification settings - Fork 0
/
Biclustering_Dashboard.Rmd
74 lines (58 loc) · 1.75 KB
/
Biclustering_Dashboard.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
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
---
title: "Gene Expression Biclustering"
author: "Bryan Lewis"
output:
flexdashboard::flex_dashboard:
orientation: rows
social: menu
source_code: embed
runtime: shiny
---
```{r global, include=FALSE}
# load data in 'global' chunk so it can be shared by all users of the dashboard
library(biclust)
data(BicatYeast)
set.seed(1)
res <- biclust(BicatYeast, method=BCPlaid(), verbose=FALSE)
```
Inputs {.sidebar}
-----------------------------------------------------------------------
```{r}
selectInput("clusterNum", label = h3("Cluster number"),
choices = list("1" = 1, "2" = 2, "3" = 3, "4" = 4, "5" = 5),
selected = 1)
```
Microarray data matrix for 80 experiments with Saccharomyces Cerevisiae
organism extracted from R's `biclust` package.
Sebastian Kaiser, Rodrigo Santamaria, Tatsiana Khamiakova, Martin Sill, Roberto
Theron, Luis Quintales, Friedrich Leisch and Ewoud De Troyer. (2015). biclust:
BiCluster Algorithms. R package version 1.2.0.
http://CRAN.R-project.org/package=biclust
Row
-----------------------------------------------------------------------
### Heatmap
```{r}
num <- reactive(as.integer(input$clusterNum))
col = colorRampPalette(c("red", "white", "darkblue"), space="Lab")(10)
renderPlot({
p = par(mai=c(0,0,0,0))
heatmapBC(BicatYeast, res, number=num(), xlab="", ylab="",
order=TRUE, useRaster=TRUE, col=col)
par(p)
})
```
Row {.tabset}
-----------------------------------------------------------------------
### Parallel Coordinates
```{r}
renderPlot(
parallelCoordinates(BicatYeast, res, number=num())
)
```
### Data for Selected Cluster
```{r}
# only display table for values in cluster 4
renderTable(
BicatYeast[which(res@RowxNumber[, num()]), which(res@NumberxCol[num(), ])]
)
```