RM2 | R Documentation |
RM2() uses negative binomial regression to evaluate local mutational frequencies and processes between sites of the same class to flanking control regions
RM2( maf, sites, mut_class_columns = NA, cofactor_column = NA, window_size = 100, n_min_mut = 100, n_bin = 10 )
maf |
Data frame of mutations (prepared by get_mut_trinuc_strand) containing the following information:
|
sites |
Data frame of site coordinates
|
mut_class_columns |
Character corresponding to the column(s) of mutation classes for grouped analysis |
cofactor_column |
Character corresponding to the column of binary cofactors |
window_size |
Integer indicating the half-width of sites and flanking regions (added to left and right for full width). (default 100) |
n_min_mut |
Integer indicating the minimum number of mutations required to perform analysis (default 100) |
n_bin |
Integer indicating the number of megabase bins to use (default 10) |
Data frame containing the regression estimates and likelihood ratio test output with the following columns: mut_type, pp, this_coef, obs_mut, exp_mut, exp_mut_lo, exp_mut_hi, fc, n_sites_tested
A string identifying the mutation class
The p-value from the likelihood ratio test
The coefficient from is_site
The total number of observed mutations of that class
The expected number of mutations determined by the model
Lower bound of 95% confidence interval
Upper bound of 95% confidence interval
Observed mutations divided by expected mutations
The p-value from the likelihood ratio test of site:cofactor interaction
The coefficient from the site:cofactor interaction term
The number of sites that were tested - all sites if no downsampling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.