Skip to contents

Style alteration cell background based on ClinVar classification (Generated by Claude Opus 4.6 with some manual tweaks)

Usage

render_alteration_clinvar_style(data, color_palette = pcgrr::color_palette)

Arguments

data

The main data frame (passed via closure)

Value

A function that can be used as a reactable cell renderer for the SAMPLE_ALTERATION column, which checks the CLINVAR_CLASSIFICATION column in the same row to determine background color and text styling.