mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Allow selecting the expression dataset
This commit is contained in:
parent
2f24812c90
commit
510fafeb6e
15 changed files with 110 additions and 57 deletions
11
R/server.R
11
R/server.R
|
|
@ -1,8 +1,19 @@
|
|||
#' Server implementing the main user interface.
|
||||
#' @noRd
|
||||
server <- function(input, output, session) {
|
||||
dataset <- reactive({
|
||||
analysis <- if (input$dataset == "hpa_tissues") {
|
||||
ubigen::hpa_tissues
|
||||
} else {
|
||||
ubigen::gtex_all
|
||||
}
|
||||
|
||||
merge(analysis, ubigen::genes, by = "gene")
|
||||
})
|
||||
|
||||
ranked_data <- reactive({
|
||||
rank_genes(
|
||||
data = dataset(),
|
||||
cross_sample_metric = input$cross_sample_metric,
|
||||
cross_sample_weight = input$cross_sample_weight,
|
||||
level_metric = input$level_metric,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue