Remove mean expression from score

This commit is contained in:
Elias Projahn 2022-05-30 20:25:50 +02:00
parent d495af011a
commit 780e608ee1
2 changed files with 4 additions and 25 deletions

View file

@ -2,15 +2,11 @@
#' @noRd
server <- function(input, output) {
ranked_data <- reactive({
total_weight <- abs(input$cross_sample_weight) +
abs(input$mean_expression) +
abs(input$sd_expression)
total_weight <- abs(input$cross_sample_weight) + abs(input$sd_expression)
data <- data.table::copy(ubigen::genes)
data[, score :=
(input$cross_sample_weight * get(input$cross_sample_metric) +
input$mean_expression * mean_expression_normalized +
input$sd_expression * sd_expression_normalized) /
total_weight]