Compute the synchrony based on Tilted-CCA
compute_synchrony.RdCompute the synchrony based on Tilted-CCA
Arguments
- input_obj
multiSVDclass, after applyingtiltedCCA_decomposition()- anchor_modality
numeric of
1or2, denoting which modality the synchrony is computed on
Value
a matrix with n cells and 2 columns, which one column
(named synchrony) denotes the synchrony score (between 0 and 1, where a number closer to 1 means
the cell is synchronous between both modalities) and
(named synchrony_rescaled), which is simply a monotone transformation
of the first column for easier visualization