
Helper plot function for boxplot of normalised data
plot_boxplot_normalization.RdHelper plot function for boxplot of normalised data
Examples
# normalised expression per sample, coloured by cohort
syn <- synthetic_bulk_cor_matrix()
samples <- data.table::data.table(
sample_id = colnames(syn$counts),
cohort = rep(c("case", "control"), each = 50)
)
norm_counts <- rs_cpm(syn$counts, lib_size = NULL, log = TRUE,
prior_count = 0.5)
plot_boxplot_normalization(samples, norm_counts, group_col = "cohort")