Skip to contents

QuPath Setup & Data Import

Generate QuPath export scripts, configure marker relabeling, and bind CSV exports with automatic filename metadata parsing.

generate_qupath_script()
Generate the groovy script used for the analysis
make_run_config()
Generates and loads a marker-relabeling configuration file
data_binding()
Merge all the dataframes coming out from the QuPath
string_parsing()
Parse image filenames to extract metadata

Cell Counting & Reshaping

Aggregate per-image marker counts, compute marker positivity ratios, and reshape wide count tables to tidy long format.

make_count_dataframe()
Count the main marker expression
change_data_format_to_longer()
Data format changer

Quality Control (QC) Visualization

Inspect raw marker ratios and feature distributions per patient, treatment, or tissue.

get_QC_plots()
Plot some QC plots to define that everything ran correctly
get_QC_plots_parsed_merged_data()
Plot QC plots and calculate statistics for bound data

Control Normalization & Dose-Response Analysis

Normalize treated wells to matched vehicle controls, fit LOESS or 4PL Hill dose-response curves, and visualize drug panels across cohorts.

normalize_to_control()
Normalize marker values to percent of control
plot_normalization_before_after()
Plot the raw values next to the normalized values, before and after
plot_dose_response()
Plot dose response curves from normalized data
plot_dose_response_heatmap()
Plot a treatment by concentration heatmap of percent-of-control values
plot_treatment_summary()
Plot a ranked summary of mean percent-of-control by treatment
plot_patient_heatmap()
Plot a patient by treatment heatmap of percent-of-control values

Theme & Color Palette

Shared ggplot2 theme and colorblind-safe categorical palette for custom figures.

drugsens_theme()
Publication-ready ggplot2 theme for drugsens
drugsens_palette
Colorblind-safe categorical palette for drugsens plots