AGENT SKILL

cellxgene-census-summary-and-mean

Read Census summary counts and compute a zero-filled overall raw-matrix mean with the correct denominator.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
cellxgene-census-summary-and-mean
license
MIT
description
Read Census summary counts and compute a zero-filled overall raw-matrix mean with the correct denominator.

02 资源文件 3

03 SKILL.md 正文

CELLxGENE Census summary and raw-matrix mean

For every task, apply Caveman. Before broad repository navigation, use CocoIndex Code; for web-page research, use Crawl4AI. Read and follow the repository-root docs/agent-tools.md and its linked skills, and retain the required execution evidence.

Pin the Census build and record the chosen organism, measurement, filters and layer. This focused repair covers summary counts and one descriptive matrix mean; it does not validate other workflows in the source skill.

Read a summary count

For an open Census collection census, the summary is a table of label and value rows. Convert the selected count to an integer:

summary = census["census_info"]["summary"].read().concat().to_pandas()
summary_values = summary.set_index("label")["value"]
total_cell_count = int(summary_values.loc["total_cell_count"])

Describe the selected raw matrix

For an open RNA ExperimentAxisQuery named query, this computes one overall mean across all selected cell-by-feature positions, including implicit zero fill values. It is not a per-gene mean. Reject an empty query rather than reporting a misleading zero:

import math
import numpy as np

n_positions = query.n_obs * query.n_vars
if not n_positions:
    raise ValueError("Cannot average an empty cell-by-feature selection")
total = math.fsum(
    float(np.sum(batch["soma_data"].to_numpy(), dtype=np.float64))
    for batch in query.X("raw").tables()
)
mean_expression = total / n_positions

Raw matrices use sparse zero fill: averaging only returned entries computes a nonzero-entry mean instead. This matrix-wide zero-filled mean is a descriptive choice, not automatically a biological expression estimate. Genes absent from source datasets can be represented as zero in the combined matrix. Use the feature dataset presence information and an appropriate measured-cell denominator for a per-gene analysis; do not silently treat unmeasured genes as measured zeros. When grouping per gene, map SOMA join IDs to query positions using the query indexer rather than treating join IDs as array offsets.

See the Census schema and the incremental computation tutorial.

04 同仓库更多 Skills

strmt7
strmt7/ai_skills_collection_benchmarked

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

测试与质量前端开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

Skill与智能体开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

playwright-skill

Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive checks, UX validation, login flows, link checks, and arbitrary browser automation. Use when the user wants to test a website, automate browser interactions, validate web functionality, or perform browser-based testing.

测试与质量Skill与智能体开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

前端开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

设计师前端开发视觉设计
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

zarr-python

Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.

★ 1