scviva.tools.vision.apply_ica#

scviva.tools.vision.apply_ica(X, n_components=2)[source]#

ICA 2D projection via sklearn FastICA.

Mirrors R VISION’s applyICA which runs fastICA on raw log-transformed expression (not the PCA latent space). Input should therefore be the filtered, log-transformed expression matrix (cells × genes), not PCA scores.

Parameters:
X ndarray

Log-transformed expression, cells × genes.

n_components int

Number of independent components, by default 2.

Return type:

ndarray

Returns:

ndarray of shape (n_cells, n_components) ICA source-signal matrix ($S in R fastICA output).