.test_NB_model | R Documentation |
Runs negative binomial regression and likelihood ratio test
.test_NB_model(dfr, mut_type, n_min_mut = 100, test_cofactor = F)
dfr |
Data frame generated from maf_to_dfr that contains mutation and trinucleotide counts for each quadnucleotide context + indel |
mut_type |
Character corresponding to total mutations or name of subclass |
n_min_mut |
Integer (default 100) representing the minimum number of mutations required to run test |
test_cofactor |
Boolean indicating whether to analyze cofactor |
Data frame containing the results of the regression with the following columns: mut_type, pp, this_coef, obs_mut, exp_mut, exp_mut_lo, exp_mut_hi, fc, pp_cofac, this_coef_cofac
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.