Description Usage Arguments Details Value Examples
The function fits a linear probabilistic dropout model and infers the hyper-parameters for the location prior, the variance prior, and the dropout curves. In addition it infers for each protein the coefficients that best explain the observed data and the associated uncertainty.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
data |
a matrix like object ( |
design |
a specification of the experimental design that
is used to fit the linear model. It can be a |
col_data |
a data.frame with one row for each sample in
|
reference_level |
a string that specifies which level in a
factor coefficient is used for the intercept. Default:
|
data_is_log_transformed |
the raw intensities from mass
spectrometry experiments have a linear mean-variance relation.
This is undesirable and can be removed by working on the log
scale. The easiest way to find out if the data is already log-
transformed is to see if the intensities are in the range of
'0' to '100' in which case they are transformed or if they rather
are between '1e5' to '1e12', in which case they are not.
Default: |
moderate_location, moderate_variance |
boolean values
to indicate if the location and the variances are
moderated. Default: |
location_prior_df |
the number of degrees of freedom used
for the location prior. A large number (> 30) means that the
prior is approximately Normal. Default: |
n_subsample |
the number of proteins that are used to estimate the
hyper-parameter. Reducing this number can speed up the fitting, but
also mean that the final estimate is less precise. By default all
proteins are used. Default: |
max_iter |
the maximum of iterations |
epsilon |
if the remaining error is smaller than |
verbose |
boolean that signals if the method prints messages
during the fitting. Default: |
... |
additional parameters for the construction of the 'proDAFit' object |
By default, the method is moderating the locations and the variance of each protein estimate. The variance moderation is fairly standard in high-throughput experiments and can boost the power to detect differentially abundant proteins. The location moderation is important to handle the edge case where in one condition a protein is not observed in any sample. In addition it can help to get more precise estimates of the difference between conditions. Unlike 'DESeq2', which moderates the coefficient estimates (ie. the "betas") to be centered around zero, 'proDA' penalizes predicted intensities that strain far from the other observed intensities.
An object of class 'proDAFit'. The object contains information
on the hyper-parameters and feature parameters, the convergence,
the experimental design etc. Internally, it is a sub-class of
SummarizedExperiment
which means the object is subsettable.
The '$'-operator is overloaded for this object to make it easy to
discover applicable functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Quick start
# Import the proDA package if you haven't already done so
# library(proDA)
set.seed(1)
syn_data <- generate_synthetic_data(n_proteins = 10)
fit <- proDA(syn_data$Y, design = syn_data$groups)
fit
result_names(fit)
test_diff(fit, Condition_1 - Condition_2)
# SummarizedExperiment
se <- generate_synthetic_data(n_proteins = 10,
return_summarized_experiment = TRUE)
se
proDA(se, design = ~ group)
# Design using model.matrix()
data_mat <- matrix(rnorm(5 * 10), nrow=10)
colnames(data_mat) <- paste0("sample", 1:5)
annotation_df <- data.frame(names = paste0("sample", 1:5),
condition = c("A", "A", "A", "B", "B"),
age = rnorm(5, mean=40, sd=10))
design_mat <- model.matrix(~ condition + age,
data=annotation_df)
design_mat
proDA(data_mat, design_mat, col_data = annotation_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.