RM2_downsample | R Documentation |
RM2_downsample() is a wrapper that first performs downsampling then calls RM2. The median index is selected by p-value for total mutations (mut_class_columns=NA) and the corresponding values are returned.
RM2_downsample( maf, sites, mut_class_columns = NA, cofactor_column = NA, window_size = 100, n_min_mut = 100, n_bin = 10, n_sites_sampled, n_iterations = 100 )
maf |
Data frame of mutations
|
sites |
Data frame
|
mut_class_columns |
Character corresponding to the column(s) of mutation classes for grouped analysis |
cofactor_column |
Character corresponding to the column of 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) |
n_sites_sampled |
Integer indicating the number of sites to sample |
n_iterations |
Integer indicating how many times to repeat the sampling procedure (default 100) |
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.