Ludvig commited on
Commit
9856d69
·
1 Parent(s): c38363b

Adds log-scaled intensities. Disables DEV mode

Browse files
Files changed (3) hide show
  1. .gitignore +2 -0
  2. design.py +8 -1
  3. plot.R +3 -6
.gitignore CHANGED
@@ -132,3 +132,5 @@ dmypy.json
132
  test_app.py
133
 
134
  test_confusion_matrix.png
 
 
 
132
  test_app.py
133
 
134
  test_confusion_matrix.png
135
+
136
+ small_example-kopi.csv
design.py CHANGED
@@ -281,7 +281,14 @@ def design_section(
281
  key="intensity_by",
282
  label="Intensity based on",
283
  default="Counts",
284
- options=["Counts", "Normalized (%)"],
 
 
 
 
 
 
 
285
  get_setting_fn=get_uploaded_setting,
286
  type_=str,
287
  )
 
281
  key="intensity_by",
282
  label="Intensity based on",
283
  default="Counts",
284
+ options=[
285
+ "Counts",
286
+ "Normalized (%)",
287
+ "Log Counts",
288
+ "Log2 Counts",
289
+ "Log10 Counts",
290
+ "Arcsinh Counts",
291
+ ],
292
  get_setting_fn=get_uploaded_setting,
293
  type_=str,
294
  )
plot.R CHANGED
@@ -5,7 +5,7 @@ library(dplyr)
5
  library(ggplot2)
6
  library(jsonlite)
7
 
8
- dev_mode <- TRUE
9
 
10
  option_list <- list(
11
  make_option(c("--data_path"),
@@ -285,11 +285,8 @@ if (isTRUE(design_settings$show_tile_border)) {
285
  tile_border_color <- design_settings$tile_border_color
286
  }
287
 
288
- intensity_by <- ifelse(
289
- tolower(design_settings$intensity_by) == "counts",
290
- "counts",
291
- "normalized"
292
- )
293
 
294
  confusion_matrix_plot <- tryCatch(
295
  {
 
5
  library(ggplot2)
6
  library(jsonlite)
7
 
8
+ dev_mode <- FALSE
9
 
10
  option_list <- list(
11
  make_option(c("--data_path"),
 
285
  tile_border_color <- design_settings$tile_border_color
286
  }
287
 
288
+ intensity_by <- tolower(design_settings$intensity_by)
289
+ if (grepl("normalized", intensity_by)) intensity_by <- "normalized"
 
 
 
290
 
291
  confusion_matrix_plot <- tryCatch(
292
  {