Description Usage Arguments Value Author(s) See Also
bpr_diff_test_data_wrap
is a function that wraps all the necessary
subroutines for performing prediction of differential gene expression levels.
Initially, it optimizes the parameters of the basis functions so as to learn
the methylation profiles for the control and the treatment samples Then, the
two learned methylation profiles are concatenated to keep all coefficients
for both profiles. Then the learned parameters / coefficients of the basis
functions are given as input features for performing regression in order to
predict the corresponding differential (log2 fold-change) gene expression
levels.
1 2 3 4 5 |
formula |
An object of class |
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
|
y |
Corresponding gene expression data. A list containing two vectors for control and treatment samples. |
model_name |
A string denoting the regression model. Currently,
available models are: |
w |
Optional vector of initial parameter / coefficient values. |
basis |
Optional basis function object, default is an 'rbf' object, see
|
train_ind |
Optional vector containing the indices for the train set. |
train_perc |
Optional parameter for defining the percentage of the dataset to be used for training set, the remaining will be the test set. |
fit_feature |
Return additional feature on how well the profile fits the methylation data. Either NULL for ignoring this feature or one of the following: 1) "RMSE" for returning the fit of the profile using the RMSE as measure of error or 2) "NLL" for returning the fit of the profile using the Negative Log Likelihood as measure of error. |
cpg_dens_feat |
Logical, whether to return an additional feature for the CpG density across the promoter region. |
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. |
is_summary |
Logical, print the summary statistics. |
A 'bpr_diff_predict' 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.