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.
Arguments
- clone_viability_df
Data frame. Must have columns 'patient' and 'clone_id', plus one or more drug columns with predicted viability values.
- cols
Character vector of column names to scale. Default
NULLscales every drug column. Use this to leave already-standardized columns (e.g. a pre-combinedcomb_viability) untouched.
