valency-anndata

Orchestrate Polis data analysis with AnnData from loading to visualization.

7|1|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/patcon/valency-anndata --skill valency-anndata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: valency-anndata
Source: https://github.com/patcon/valency-anndata/tree/main/.claude/skills/valency-anndata
Command: npx skills add https://github.com/patcon/valency-anndata --skill valency-anndata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Polis data analysis and visualization with AnnData is complex and fragmented; this skill provides an integrated toolkit to work with Polis conversations, run the Polis pipeline, load datasets, preprocess vote matrices, cluster participants, and visualize results.

Core Features & Use Cases

  • End-to-end workflow for Polis data using AnnData, including loading votes, running recipe_polis, calculating QC metrics, and generating embeddings.
  • Supports multiple projection embeddings (PaCMAP, LocalMAP, UMAP, or t-SNE) with per-embedding clustering and perspective plots.
  • Example: Load a Polis conversation, run the pipeline, and compare embeddings with different projection bases.

Quick Start

Invoke the skill and follow prompts to select projection maps after running recipe_polis.

Frequently Asked Questions about valency-anndata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Polis conversation data using AnnData?

To analyze Polis conversation data using AnnData, this skill orchestrates an end-to-end workflow that loads vote matrices, preprocesses the data, runs recipe_polis, and generates embedding-based visualizations. It structures the output into standard AnnData fields like X, obs, and var.

What projections can I use for clustering Polis participants?

For clustering Polis participants, you can compute PaCMAP, LocalMAP, UMAP, or t-SNE projections. The workflow applies per-embedding clustering to these bases and generates corresponding perspective plots for visual comparison.

Does this workflow support the full AnnData structure for Polis datasets?

Yes, the workflow fully satisfies AnnData structure requirements by mapping Polis data into X, obs, var, layers, obsm, and uns fields. It utilizes API namespaces for datasets, preprocessing, tools, and viz to ensure comprehensive data handling.

How do I run the recipe_polis pipeline for vote matrix preprocessing?

To run the recipe_polis pipeline, invoke the skill and follow the prompts to select your desired projection maps. The pipeline automatically calculates QC metrics, preprocesses the vote matrices, and generates embeddings for downstream analysis.

What is the best way to visualize Polis embeddings with different projection bases?

The best way to visualize Polis embeddings with different projection bases is to compute PaCMAP, UMAP, or t-SNE maps and generate per-embedding clustering plots. This approach allows you to directly compare participant groupings across various projection bases.