cocoatree.deconvolution.remove_global_correlations

cocoatree.deconvolution.remove_global_correlations(coevo_matrix)[source]

Remove global correlations by setting the first eigen value of the coevolution matrix to 0

In the sector literature (and data analysis), this corresponds to removing global correlations (from e.g. phylogenetic effects)

Parameters

coevo_matrixnp.ndarray (n_pos, n_pos),

coevolution matrix

Returns

coevo_matrix_subnp.ndarray (n_pos, n_pos),

coevolution matrix without global correlations

Examples using cocoatree.deconvolution.remove_global_correlations

A minimal coevo analysis

A minimal coevo analysis

A minimal coevo analysis using cocoatree.perform_sca()

A minimal coevo analysis using cocoatree.perform_sca

Perform full SCA analysis on the S1A serine protease dataset

Perform full SCA analysis on the S1A serine protease dataset