variance ratio graph

Compare variance between principle components.

Parameters

n_pcs: int Number of principle components to use.


log: bool Use a log scale.


Web view

variance_ratio_graph_screenshot

Python equivalent

import scanpy as sc

sc.tl.pca(adata, svd_solver='arpack')
sc.pl.pca_variance_ratio(adata, log=True)