-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
95 lines (69 loc) · 3.39 KB
/
README.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# sparrow.shiny
<!-- badges: start -->
[![R build status](https://github.com/lianos/sparrow.shiny/workflows/R-CMD-check/badge.svg)](https://github.com/lianos/sparrow.shiny/actions)
![pkgdown](https://github.com/lianos/sparrow.shiny/workflows/pkgdown/badge.svg)
[![Project Status: Active](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![codecov](https://codecov.io/gh/lianos/sparrow.shiny/branch/main/graph/badge.svg)](https://codecov.io/gh/lianos/sparrow.shiny)
<!-- badges: end -->
The `sparrow.shiny` package provides an interactive shiny applications that
enables users to explore the results of a gene set enrichment analysis performed
using the [sparrow][]
Although this is a standalone package, it's really only used as an "enhancement"
to the sparrow package itself, as well as providing shiny modules to the
[FacileAnalysis][] package, too.
All that of that is to say: there isn't much end-user stuff here to play with.
[sparrow]: https://github.com/lianos/sparrow/actions
[FacileAnalysis]: https://github.com/facilebio/FacileAnalysis
# Usage
More thorough documentation of the shiny application will be provided in the
near future in the form of a vignette, or more likely a screen cast.
In the meantime, this will just have to get you started:
```{r eval = FALSE, message=FALSE, warning=FALSE}
vm <- sparrow::exampleExpressionSet(dataset = 'tumor-vs-normal', do.voom = TRUE)
gdb <- sparrow::exampleGeneSetDb()
sr <- sparrow::seas(gdb, vm, vm$design, "tumor", methods = c("camera", "fry"))
sparrow.shiny::explore(sr)
```
The `explore` function will launch the application and load it with the
`SparrowResult` object produced by the call to the `sparrow::seas()` function.
You can then explore the results of the "camera" or "fry" analysis through
there.
Users can serialize `SparrowResult` objects to `*.rds` files on their
filesystem, which can also be loaded individually once the application is
launched.
# Application Deployment
Analysts can simply launch the `sparrow.shiny::explore()` application from
their workstation, however these applications can also be deployed to a shiny
server.
## Docker
The [`inst/docker`](inst/docker) folder provides examples of how to containerize
and deploy this application in different contexts.
The [`Dockerfile-base`](inst/docker/Dockerfile-base) creates a
docker image that, when run, launches the shiny app on
`http://container.ip/sparrow` (ie. `http://localhost/sparrow`).
## ShinyProxy
The [`Dockerfile-shinyproxy`](inst/docker/Dockerfile-shinyproxy)
creates an image that can be deployed via a
[ShinyProxy server](https://www.shinyproxy.io/).
Notes on setting up a ShinyProxy server on AWS are provided in the
[`aws-ubuntu-deployment.md`](inst/docker/aws-ubuntu-deployment.md) file.
# Installation
The sparrow suite of package will soon be submitted to bioconductor and
installable via the recommended `BiocManager` mechanism. In the meantime, these
packages can be installed like so:
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("lianos/sparrow.shiny")
```