Skip to content

Commit

Permalink
runscatter option use filt data
Browse files Browse the repository at this point in the history
  • Loading branch information
burlab committed Apr 4, 2024
1 parent a6dd99f commit 1130012
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions R/plots_QC.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,6 @@ plot_runscatter <- function(data,

# Subset data ----

dat_filt <- data@dataset %>% dplyr::ungroup()

# Re-order qc_type levels to define plot layers, i.e. QCs are plotted over StudySamples
dat_filt$qc_type <- factor(as.character(dat_filt$qc_type), pkg.env$qc_type_annotation$qc_type_levels)

if(all(!is.na(feature_incl_filt)) & all(feature_incl_filt != "")){
if(length(feature_incl_filt) == 1)
dat_filt <- dat_filt |> dplyr::filter(stringr::str_detect(.data$feature_name, feature_incl_filt))
Expand All @@ -252,6 +247,8 @@ plot_runscatter <- function(data,

if(nrow(dat_filt) < 1) stop("None of the feature names meet the filter criteria. Please check feature_filter_include and feature_filter_exclude parameters.")

# Re-order qc_type levels to define plot layers, i.e. QCs are plotted over StudySamples
dat_filt$qc_type <- factor(as.character(dat_filt$qc_type), pkg.env$qc_type_annotation$qc_type_levels)

# Cap upper outliers ----

Expand Down

0 comments on commit 1130012

Please sign in to comment.