Skip to contents

Compute the asynchrony based on Tilted-CCA

Usage

compute_asynchrony(input_obj, anchor_modality = 1)

Arguments

input_obj

multiSVD class, after applying tiltedCCA_decomposition()

anchor_modality

numeric of 1 or 2, denoting which modality the synchrony is computed on

Value

a matrix with n cells and 2 columns, which one column (named asynchrony) denotes the synchrony score (between 0 and 1, where a number closer to 1 means the cell is synchronous between both modalities) and (named asynchrony_rescaled), which is simply a monotone transformation of the first column for easier visualization