Skip to contents

Applies base R scale() to each drug column across all patients, centering to mean 0 and standard deviation 1. This ensures comparability of predicted viability scores between different drugs before patient-level aggregation. Matches the original PERCEPTION pipeline.

Usage

zscore_viability(clone_viability_df)

Arguments

clone_viability_df

Data frame. Must have columns 'patient' and 'clone_id', plus one or more drug columns with predicted viability values.

Value

A data frame with the same structure, but drug columns z-score scaled.