Skip to content

Commit

Permalink
fix linked plots not highlighting due to NA values
Browse files Browse the repository at this point in the history
  • Loading branch information
clabornd committed Oct 8, 2021
1 parent bcdb2ae commit 288a63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srv_ui_elements/visualize_linked_plots_UI.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ list(
g1_samples = linked_plots_table()[row1, 'Group 1 Samples'] %>% stringr::str_extract_all(paste(sampnames, collapse="|")) %>% purrr::pluck(1)
g2_samples = linked_plots_table()[row1, 'Group 2 Samples'] %>% stringr::str_extract_all(paste(sampnames, collapse="|")) %>% purrr::pluck(1)

edata_inds = revals$peakData2$e_data %>% select(g1_samples) %>% rowSums() %>% {. != 0}
edata_inds = revals$peakData2$e_data %>% select(g1_samples) %>% rowSums(na.rm = T) %>% {. != 0}

##

Expand Down Expand Up @@ -147,7 +147,7 @@ list(
sampnames = revals$peakData2$f_data[,getFDataColName(revals$peakData2)]
g1_samples = linked_plots_table()[row2, 'Group 1 Samples'] %>% stringr::str_extract_all(paste(sampnames, collapse="|")) %>% purrr::pluck(1)
g2_samples = linked_plots_table()[row2, 'Group 2 Samples'] %>% stringr::str_extract_all(paste(sampnames, collapse="|")) %>% purrr::pluck(1)
edata_inds = revals$peakData2$e_data %>% select(g1_samples) %>% rowSums() %>% {. != 0}
edata_inds = revals$peakData2$e_data %>% select(g1_samples) %>% rowSums(na.rm=T) %>% {. != 0}

scatter_types = c('Van Krevelen Plot', 'Kendrick Plot', 'Custom Scatter Plot')

Expand Down

0 comments on commit 288a63e

Please sign in to comment.