Description Usage Arguments Details Value Examples
Gene-by-gene meta-regression analysis of aggregated single-cell profiles
1 2 3 4 5 6 |
ac |
Aggregated cell object (output of |
X |
Design matrix |
Gi |
Group indicators of dispersion parameters. Default: one parameter for all samples. |
n_boot |
Number of bootstrap resamples |
id_boot |
Identifier of bootstrap blocks |
seed_boot |
Random number seed for bootstrapping |
pbulk |
Use pseudo-bulk approach (negative binomial model) |
mean2sum |
|
norm_method |
normalization method: 0 = none, 1 = per cell-type, 2 = global |
u_0 |
Small constant added to the data (default: half of smallest nonzero value in the entire dataset) |
s2_0 |
Small constant variance. |
verbose |
Print |
Fit a gamma-GLM-like regression with variance components that include per data point standard errors from cell-level aggregation. The model is analogous to random-effect meta-regression models used in meta-analysis, but with the variance as quadratic function of the mean. The dispersion parameters can be interpreted as the square of coefficient of variations, modelling relative (multiplicative) error due to between aggregate heterogeneity, after subtractin the cell-level variability.
There are two models fitted step-wise. The first one fits simultaneous row (sample) and column (gene) intercepts, without considering the design matrix. The sample intercepts (which correspond to normalization or size factors) are then used as offset in the second model. The gene intercepts and dispersions are not used for the second model, but are still kept.
The second model is fitted separately for all combination of gene, cell type and bootstrap replicates.
Missing aggregates due to zero or one counts are skipped.
The parameters can be NA
due to missing aggregates
or collinearity (which favor the term that appear first in
the design matrix).
gamma |
Gene-specific intercepts from first-step model, in natural logarithmic scale. |
alpha |
Sample-specific intercepts from first-step model, in natural logarithmic scale. |
psi |
Gene-specific gamma dispersion parameter from the first model. Not in logarithmic scale. |
beta |
Coefficients from the second-step model, corresponding
to columns of |
phi |
Gene- and group-specific gamma dispersion parameter from the second model. Not in logarithmic scale. |
1 | ## See `quick tutorial`
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.