The WExT package

General information about the package

wext

The Weighted-Exclusivity Test

Statistical functions

Functions that underpin the statistics for the Weighted Exclusivity Test (WExT)

calculate_row_exclusivity_weights()

Calculate the weights for the Row-Exclusivity test

calculate_row_col_exclusivity_weights()

Calculate the weights for the Row-Column-Exclusivity test

calculate_weighted_row_exclusivity_weights()

Calculate the weights for the Weighted-Row-Exclusivity test

rc_test()

The Row-Column-Exclusivity or Co-mutation test

calc_mutex_events() calc_comut_events()

Calculate the number of mutually exclusive or co-mutation events

Edge swapping

Functions used for the edge swap algorithm to sample possible matrices in the Row-Column-Exclusivity test

bipartite_edge_swap()

Swap edges of a bipartite graph

bipartite_edge_swap2()

Swap edges of a bipartite graph (method 2)

bipartite_edge_swap3()

Swap edges of a bipartite graph (method 3)

swap_an_edge()

Swap a single edge

swap_an_edge2()

Swap a single edge (method 2)

swap_an_edgeC()

Swap a single edge (method 2 in C++)

random_edge_nodes()

Return the nodes for a randomly selected edge

remove_edge()

Remove an edge

Utilities

utilitiy functions used throughout

to_bipartite_edgelist() edgelist_to_bipartite_graph()

Transform between a bipartite graph and edge list

matrix_to_tibble()

Convert between a mutation matrix and tibble

get_node_index()

Get the indices of nodes after evaluating 'expr'

check_gr()

Check that a node attribute exists for a graph

make_sample_gene_bipartite()

Make the sample-gene bipartite graph

filter_by_mutation_frequency()

Filter a bipartite graph's genes by number of mutations

make_empty_results_tracker() exclusivity_results_tracker() comutation_results_tracker() make_combs_tibble()

Initialize the mutation event tracker tibble

Example data sets

Small data sets used for examples and testing

simple_dataset

Simple example data for WExT