The weighted test for mutual exclusivity aims to calculate the probability of observing at least \(t_M\) mutually exclusive events given a fixed number of samples (row-sums) and a per-gene, per-sample weight matrix \(W\). For further explanation, see the "Computing the Weighted Exclusivity Test (WExT)" vignette. This function creates the weight matrix for the test.

calculate_weighted_row_exclusivity_weights(dat, sample_col, mutgene_col)

Arguments

dat

tibble with mutation information

sample_col

column of samples names (quoted)

mutgene_col

column of genes that are mutated (quoted)

Examples

library(wext) calculate_weighted_row_exclusivity_weights(dat = simple_dataset, sample_col = sample_name, mutgene_col = mutated_gene)
#> [1] "FUNCTION IN PROGRESS"