Skip to contents

Data Loading

Download and load DepMap reference data and pre-trained models.

load_depmap()
Download filtered DepMap data
load_model()
Load pre-built model of provided drugs
get_depmap()
Get the DepMap dataset
get_mirrors()
Get current download mirrors
add_mirrors()
Add custom download mirrors
list_mirrors()
List current download mirrors
reset_mirrors()
Reset mirrors to default

Preprocessing

rank_normalization_mat()
Rank-normalize each column of a matrix
range01()
Change range to 0-1
zscore_viability()
Z-score scale viability values across patients
prepare_data()
Prepare patient data for PERCEPTIONx prediction

Model Training

train_models()
Train PERCEPTIONx models for multiple drugs
get_response_matrix()
Get specific drug response data for cell-lines
get_cellLine_list()
Determine training and test cell-lines for a given drug
feature_ranking_bulk()
Feature ranking for a single drug using bulk expression
run_parallel_feature_ranking_bulk()
Parallel feature ranking for multiple drugs
build_on_BULK_v2()
Build PERCEPTIONx model on bulk expression data

Prediction

predict_drugs()
Predict drug response for cells or clones
predict_patients()
Predict drug response at patient level

Evaluation

compare_performance()
Compare performance of multiple trained models
get_significant_models()
Get best performing models
get_performance()
Load performance metrics from a saved model file
each_patient_pseudo_bulk()
Compute pseudo-bulk expression for a patient

Clone & Seurat Pipeline

annotate_clones()
Annotate cells with clone IDs via Seurat clustering
build_clone_counts()
Build clone abundance table from cell-clone mapping
build_clone_key()
Build a clone key from patient and clone id
parse_clone_keys()
Parse clone keys in "Patient@Clone" format
clone_mean_expression()
Compute clone-level mean expression from single-cell data

Visualization

plot_tsne_response()
Plot UMAP with drug response overlay
plot_tsne_biomarker_viability()
Plot UMAP side-by-side for biomarker and viability
plot_clone_distribution()
Plot clone distribution as stacked bar
plot_clone_viability()
Plot clone-level viability (lollipop plot)
plot_clone_umap()
Plot UMAP colored by clone identity
plot_model_performance()
Plot model performance across datasets
plot_model_roc()
Plot validation ROC curves for trained models
plot_roc_curve()
Plot ROC curve with AUC annotation
plot_response_boxplot()
Plot predicted vs observed response boxplot
plot_seurat_clustering()
Run Seurat clustering and plot 2D embedding
plot_patient_response_panel()
Complete patient response visualization pipeline

Shiny Application

run_perception_app()
Launch PERCEPTIONx Shiny Dashboard

Utilities

hypergeometric_test_for_twolists()
Hypergeometric test for gene list overlap
fdrcorr()
FDR correction for multiple testing
cor.test_trimmed_v0()
Fast correlation test (generic)
export_plot_cairo()
Export plot to file via Cairo device