Skip to content

Commit

Permalink
fix runscatter again
Browse files Browse the repository at this point in the history
  • Loading branch information
burlab committed Apr 4, 2024
1 parent 2506770 commit 37f2514
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/plots_QC.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ plot_runscatter <- function(data,
base_size = 12,
show_gridlines = FALSE) {

if(nrow(mexp@dataset) < 1) stop("No data available. Please import data and metadata first.")
if(nrow(data@dataset) < 1) stop("No data available. Please import data and metadata first.")

if (use_filt_data){
dat_filt <- data@dataset_filtered %>% dplyr::ungroup()
Expand Down Expand Up @@ -673,13 +673,13 @@ plot_responsecurves <- function(data,
columns_page = columns_page


if(nrow(mexp@dataset) < 1) stop("No data available. Please import data and metadata first.")
if(nrow(data@dataset) < 1) stop("No data available. Please import data and metadata first.")

if (use_filt_data){
dat_filt <- data@dataset_filtered %>% dplyr::ungroup()
if(nrow(dat_filt) < 1) stop("Data has not been qc filtered. Please apply `apply_qc_filter` first.")
} else {
dat_filt <- mexp@dataset %>% dplyr::ungroup()
dat_filt <- data@dataset %>% dplyr::ungroup()
}


Expand Down

0 comments on commit 37f2514

Please sign in to comment.