calculate_row_col_exclusivity_weights: Calculate the weights for the Row-Column-Exclusivity test

Description Usage Arguments Examples

View source: R/calculate_row_col_exclusivity_weights.R

Description

The weight for each mutation in the Row-Column-Exclusivity test cannot be calculated exactly for most use cases because there is no closed formula and a very large number of possible matrices to consider. Thus, the weights are calculated empirically from a sufficiently large number of samples of possible matrices.

Usage

1
2
calculate_row_col_exclusivity_weights(dat, sample_col, mutgene_col,
  Q = 100, quiet = TRUE)

Arguments

dat

tibble with mutation information

sample_col

column of samples names (quoted)

mutgene_col

column of genes that are mutated (quoted)

Q

number of permutation matrices to use (default is 100)

quiet

boolean for showing messages as run permutations (default is TRUE)

Examples

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

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