Description Usage Arguments Value Author(s) See Also Examples
bpr_predict_wrap
is a function that wraps all the necessary
subroutines for performing prediction on gene expression levels. Initially,
it optimizes the parameters of the basis functions so as to learn the
methylation profiles. Then, uses the learned parameters / coefficients of the
basis functions as input features for performing regression in order to
predict the corresponding gene expression levels.
1 2 3 4 5 |
formula |
An object of class |
x |
The binomial distributed observations, which has to be a list of
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 trials and number of successes at the
corresponding locations, repsectively. See
|
y |
Corresponding gene expression data for each element of the list x. |
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. |
lambda |
The complexity penalty coefficient for ridge regression. |
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_predict' object which, in addition to the input parameters, consists of the following variables:
W_opt
: An
Nx(M+1) matrix with the optimized parameter values. Each row of the matrix
corresponds to each element of the list x. The columns are of the same
length as the parameter vector w (i.e. number of basis functions).
Mus
: An N x M matrix with the RBF centers 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
1 2 3 4 5 | obs <- meth_data
y <- gex_data
basis <- create_rbf_object(M = 5)
out <- bpr_predict_wrap(x = obs, y = y, basis = basis,
is_parallel = FALSE, opt_itnmax = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.