View source: R/postprocess_modality_alignment.R
postprocess_modality_alignment | R Documentation |
The common matrix for modality input_assay
is extracted, and then
compared against another matrix (depending on bool_use_denoised
is set).
(For example, if bool_use_denoised=TRUE
, then this is the common plus distinct
matrix.) Then, a regression is performed, one per feature (i.e., gene or protein)
that regresses latter matrix onto the common matrix, and the R-squared
(one per feature) is returned.
postprocess_modality_alignment(
input_obj,
bool_use_denoised,
input_assay,
bool_center = T,
bool_scale = T,
bool_regression_include_intercept = T,
min_subsample_cell = NULL,
seurat_celltype_variable = "celltype",
seurat_obj = NULL,
seurat_assay = NULL,
seurat_slot = "data",
verbose = 1
)
input_obj |
a |
bool_use_denoised |
boolean. If |
input_assay |
integer of |
bool_center |
boolean if all the features in the common component are centered prior to the comparison |
bool_scale |
boolean if all the features in the common component are rescaled prior to the comparison |
bool_regression_include_intercept |
boolean if the regression analysis |
min_subsample_cell |
if not |
seurat_celltype_variable |
a character where |
seurat_obj |
the |
seurat_assay |
the assay to extract the data matrix, which is relevant |
seurat_slot |
the slot to extract the data matrix, which is relevant |
verbose |
non-negative integer |
a vector of R-squared values for each variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.