mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Reintroduce mean expression as metric
This commit is contained in:
parent
0ee713a966
commit
882891da53
2 changed files with 17 additions and 2 deletions
|
|
@ -2,11 +2,15 @@
|
|||
#' @noRd
|
||||
server <- function(input, output, session) {
|
||||
ranked_data <- reactive({
|
||||
total_weight <- abs(input$cross_sample_weight) + abs(input$sd_expression)
|
||||
total_weight <- abs(input$cross_sample_weight) +
|
||||
abs(input$mean_expression) +
|
||||
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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue