calculate_weighted_row_exclusivity_weights: Calculate the weights for the Weighted-Row-Exclusivity test

Description Usage Arguments Examples

View source: R/calculate_weighted_row_exclusivity_weights.R

Description

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.

Usage

1
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

1
2
3
4
library(wext)
calculate_weighted_row_exclusivity_weights(dat = simple_dataset,
                                           sample_col = sample_name,
                                           mutgene_col = mutated_gene)

jhrcook/wext documentation built on May 17, 2021, 1:19 a.m.