# Run the Polis steps and generate a "visual diff" for before and after (green = new)withval.viz.schematic_diagram(diff_from=adata):# Takes ~1 minuteval.tools.recipe_polis(adata)
/home/runner/work/valency-anndata/valency-anndata/.venv/lib/python3.11/site-packages/umap/spectral.py:548: UserWarning: Spectral initialisation failed! The eigenvector solver
failed. This is likely due to too small an eigengap. Consider
adding some noise or jitter to your data.
Falling back to random initialisation!
warn(
# Explore the differences between each projection based on the# results of k-means clustering on the basic Polis PCA projections.val.viz.jscatter(adata,use_reps=["X_pca_polis","X_pacmap","X_localmap","X_umap",],color="kmeans_polis",)
# Calculate general vote metrics on all participants and statements.withval.viz.schematic_diagram(diff_from=adata):val.preprocessing.calculate_qc_metrics(adata,inplace=True)
# Explore the differences between each projection based on these metrics.val.viz.jscatter(adata,use_reps=["X_pca_polis","X_pacmap","X_localmap","X_umap",],color="pct_seen",# Groups from k-means clustering of PCA projections)