Description Usage Arguments Value Author(s) See Also
bpr_diff_test_wrap
is a function that wraps all the necessary
subroutines for performing statistical testing between methylation samples
using the likelihood ratio test.
1 2 |
x |
The binomial distributed observations. A list containing two lists
for control and treatment samples. Each list has elements of length N,
where each element is an L x 3 matrix of observations, where 1st column
contains the locations. The 2nd and 3rd columns contain the total reads and
number of successes at the corresponding locations, repsectively. See
|
w |
Optional vector of initial parameter / coefficient values. |
basis |
Optional basis function object, default is an 'rbf' object, see
|
opt_method |
The optimization method to be used. See
|
opt_itnmax |
Optional argument giving the maximum number of iterations
for the corresponding method. See |
is_parallel |
Logical, indicating if code should be run in parallel. |
no_cores |
Number of cores to be used, default is max_no_cores - 2. |
A 'bpr_test' object which, in addition to the input parameters, consists of the following variables:
W_opt
: An Nx(2M+2) matrix with the optimized parameter values. Each
row of the matrix corresponds to the concatenated coefficients of the
methylation profiles from both samples. The columns are of the same length
as the concatenated parameter vector [w_contr, w_treat] (i.e. number of
basis functions).
Mus
: A list containing two matrices of
size N x M with the RBF centers for each sample, if basis object is
create_rbf_object
, otherwise NULL.
train: The training data.
test: The test data.
gex_model
: The
fitted regression model.
train_pred
The predicted values for
the training data.
test_pred
The predicted values for the test
data.
train_errors
: The training error metrics.
test_errors
: The test error metrics.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
bpr_optimize
, create_basis
,
eval_functions
, train_model_gex
,
predict_model_gex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.