View source: R/statistical_test.R
dpt_test | R Documentation |
dpt_test
dpt_test(heteroplasmy_matrix, time, index = NULL, method = "GAM")
heteroplasmy_matrix |
Third element returned by get_heteroplasmy. |
time |
Vector of diffusion pseudo time. |
index |
index returned by get_heteroplasmy. |
method |
Character name denoting the method to choose for assigning an adjusted p value to each of the bases. Can be one of GAM, pearson and spearman. GAM: For each base, a GAM fit with formula z ~ lo(t) is performed between the heteroplasmy values (z) and the time (t). The p value from the table "Anova for Parametric Effects" is then assigned to the base. pearson,spearman:for each base, a pearson or spearman correlation test is performed between the heteroplasmy values and the time . The p value obtained from the test is then assigned to the base. In all the three possible methods, all the p values are then corrected with the method FDR. |
A data frame with 2 columns and number of rows equal to n_col in heteroplasmy_matrix. In the first column there are the names of the bases while in the second column there are the adjusted p value.
Gabriele Lubatti gabriele.lubatti@helmholtz-muenchen.de
https://www.rdocumentation.org/packages/gam/versions/1.20/topics/gam
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.