Calculate pairwise co-occurrence of cytogenetic alterations
Source:R/08_cytogenetic_viz.R
calculate_cooccurrence.RdComputes Fisher's exact test for each pair of cytogenetic markers to identify significant co-occurrence or mutual exclusivity patterns.
Value
Data frame with columns: marker1, marker2, odds_ratio, pvalue, padj (BH-corrected), n_both, n_either, tendency (co-occurrence/exclusive/none)
Examples
if (FALSE) { # \dontrun{
cyto <- arrow::read_parquet("data/raw/clinical/cytogenetic_data.parquet")
cooc <- calculate_cooccurrence(cyto)
} # }