[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GD5Z32M3BTEB5073ADGGF":3,"skill-same:01M75GD5Z32M3BTEB5073ADGGF":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M75GD5Z32M3BTEB5073ADGGF","cellxgene-census",null,"Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs\u002Fdownloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcellxgene-census\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: cellxgene-census\ndescription: Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs\u002Fdownloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.\nallowed-tools: Read Write Edit Bash\nlicense: MIT\ncompatibility: Requires Python >=3.10,\u003C3.13. Examples target cellxgene-census 1.18.x and the 2025-11-08 stable LTS Census; spatial workflows need the spatial extra and TileDB-SOMA >=1.15.3. No authentication is required for public Census data.\nmetadata: {\"version\": \"1.1\", \"skill-author\": \"K-Dense Inc.\"}\n---\n\n# CZ CELLxGENE Census\n\n## Overview\n\nThe CZ CELLxGENE Census provides programmatic access to a comprehensive, versioned collection of standardized single-cell and spatial transcriptomics data from CZ CELLxGENE Discover. This skill enables efficient querying and analysis of public Census releases without downloading whole datasets first.\n\nThe Census includes:\n- **217+ million total cells** and **125+ million unique cells** in the 2025-11-08 stable LTS release\n- **1,845 datasets** in the 2025-11-08 stable LTS release\n- **Human, mouse, marmoset, rhesus macaque, and chimpanzee** data in the current schema\n- **Standardized metadata** (cell types, tissues, diseases, donors)\n- **Raw gene expression** matrices and source H5AD lookup\u002Fdownload helpers\n- **Pre-calculated summary counts, embeddings, and spatial data**\n- **Integration with AnnData, Scanpy, TileDB-SOMA, TileDB-SOMA-ML, and other analysis tools**\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Querying single-cell expression data by cell type, tissue, or disease\n- Exploring available single-cell datasets and metadata\n- Training machine learning models on single-cell data\n- Performing large-scale cross-dataset analyses\n- Integrating Census data with scanpy or other analysis frameworks\n- Computing statistics across millions of cells\n- Accessing pre-calculated embeddings or model predictions\n\n## Installation and Setup\n\nInstall the Census API:\n```bash\nuv pip install \"cellxgene-census==1.18.*\"\n```\n\nFor spatial workflows:\n```bash\nuv pip install \"cellxgene-census[spatial]==1.18.*\" \"spatialdata[extra]>=0.2.5\"\n```\n\nFor PyTorch model training, use TileDB-SOMA-ML. The old `cellxgene_census.experimental.ml` loaders are deprecated:\n\n```bash\nuv pip install \"cellxgene-census==1.18.*\" tiledbsoma-ml\n```\n\n## Core Workflow Patterns\n\n### 1. Opening the Census\n\nAlways use the context manager to ensure proper resource cleanup:\n\n```python\nimport cellxgene_census\n\n# Open latest stable version\nwith cellxgene_census.open_soma() as census:\n    # Work with census data\n\n# Open the current LTS version for reproducibility\nwith cellxgene_census.open_soma(census_version=\"2025-11-08\") as census:\n    # Work with census data\n```\n\n**Key points:**\n- Use context manager (`with` statement) for automatic cleanup\n- Specify `census_version` for reproducible analyses\n- `stable` opens the current LTS Census release; `latest` opens the newest weekly release retained for a shorter period\n\n### 2. Exploring Census Information\n\nBefore querying expression data, explore available datasets and metadata.\n\n**Access summary information:**\n```python\n# Get summary statistics as label\u002Fvalue rows\nsummary = census[\"census_info\"][\"summary\"].read().concat().to_pandas()\nsummary_values = summary.set_index(\"label\")[\"value\"]\nprint(f\"Total cells: {int(summary_values['total_cell_count']):,}\")\nprint(f\"Unique cells: {int(summary_values['unique_cell_count']):,}\")\n\n# Get all datasets\ndatasets = census[\"census_info\"][\"datasets\"].read().concat().to_pandas()\n\n# Get precomputed counts by organism, cell type, tissue, disease, and assay\nsummary_counts = census[\"census_info\"][\"summary_cell_counts\"].read().concat().to_pandas()\ntissue_counts = summary_counts[summary_counts[\"category\"].eq(\"tissue_general\")]\n```\n\n**Query cell metadata to understand available data:**\n```python\n# Get unique cell types in a tissue\ncell_metadata = cellxgene_census.get_obs(\n    census,\n    \"homo_sapiens\",\n    value_filter=\"tissue_general == 'brain' and is_primary_data == True\",\n    column_names=[\"cell_type\"]\n)\nunique_cell_types = cell_metadata[\"cell_type\"].unique()\nprint(f\"Found {len(unique_cell_types)} cell types in brain\")\n\n# Count cells by tissue\ntissue_metadata = cellxgene_census.get_obs(\n    census,\n    \"homo_sapiens\",\n    value_filter=\"is_primary_data == True\",\n    column_names=[\"tissue_general\"],\n)\ntissue_counts = tissue_metadata[\"tissue_general\"].value_counts()\n```\n\n**Important:** Always filter for `is_primary_data == True` to avoid counting duplicate cells unless specifically analyzing duplicates.\n\n### 3. Querying Expression Data (Small to Medium Scale)\n\nFor queries returning \u003C 100k cells that fit in memory, use `get_anndata()`:\n\n```python\n# Basic query with cell type and tissue filters\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",  # or \"Mus musculus\"\n    obs_value_filter=\"cell_type == 'B cell' and tissue_general == 'lung' and is_primary_data == True\",\n    obs_column_names=[\"assay\", \"disease\", \"sex\", \"donor_id\"],\n)\n\n# Query specific genes with multiple filters\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    var_value_filter=\"feature_name in ['CD4', 'CD8A', 'CD19', 'FOXP3']\",\n    obs_value_filter=\"cell_type == 'T cell' and disease == 'COVID-19' and is_primary_data == True\",\n    obs_column_names=[\"cell_type\", \"tissue_general\", \"donor_id\"],\n)\n```\n\n**Filter syntax:**\n- Use `obs_value_filter` for cell filtering\n- Use `var_value_filter` for gene filtering\n- Combine conditions with `and`, `or`\n- Use `in` for multiple values: `tissue in ['lung', 'liver']`\n- Select only needed columns with `obs_column_names`\n- In current LTS releases, `disease` and `disease_ontology_term_id` may contain ` || `-delimited multiple values; inspect available values before relying on exact equality filters for disease cohorts\n\n**Getting metadata separately:**\n```python\n# Query cell metadata\ncell_metadata = cellxgene_census.get_obs(\n    census, \"homo_sapiens\",\n    value_filter=\"disease == 'COVID-19' and is_primary_data == True\",\n    column_names=[\"cell_type\", \"tissue_general\", \"donor_id\"]\n)\n\n# Query gene metadata\ngene_metadata = cellxgene_census.get_var(\n    census, \"homo_sapiens\",\n    value_filter=\"feature_name in ['CD4', 'CD8A']\",\n    column_names=[\"feature_id\", \"feature_name\", \"feature_length\"]\n)\n```\n\n### 4. Large-Scale Queries (Out-of-Core Processing)\n\nFor queries exceeding available RAM, use `axis_query()` with iterative processing:\n\n```python\nimport tiledbsoma as soma\n\n# Create axis query\nwith census[\"census_data\"][\"homo_sapiens\"].axis_query(\n    measurement_name=\"RNA\",\n    obs_query=soma.AxisQuery(\n        value_filter=\"tissue_general == 'brain' and is_primary_data == True\"\n    ),\n    var_query=soma.AxisQuery(\n        value_filter=\"feature_name in ['FOXP2', 'TBR1', 'SATB2']\"\n    ),\n) as query:\n    # Iterate through expression matrix in chunks\n    iterator = query.X(\"raw\").tables()\n    for batch in iterator:\n        # batch is a pyarrow.Table with columns:\n        # - soma_data: expression value\n        # - soma_dim_0: cell (obs) coordinate\n        # - soma_dim_1: gene (var) coordinate\n        process_batch(batch)\n```\n\n**Computing incremental statistics:**\n```python\nimport tiledbsoma as soma\n\n# Example: Calculate mean expression\nn_observations = 0\nsum_values = 0.0\n\nwith census[\"census_data\"][\"homo_sapiens\"].axis_query(\n    measurement_name=\"RNA\",\n    obs_query=soma.AxisQuery(value_filter=\"tissue_general == 'brain' and is_primary_data == True\"),\n    var_query=soma.AxisQuery(value_filter=\"feature_name in ['FOXP2', 'TBR1', 'SATB2']\"),\n) as query:\n    iterator = query.X(\"raw\").tables()\n    for batch in iterator:\n        values = batch[\"soma_data\"].to_numpy()\n        n_observations += len(values)\n        sum_values += values.sum()\n\nmean_expression = sum_values \u002F n_observations\n```\n\n### 5. Machine Learning with PyTorch\n\nFor training models, use TileDB-SOMA-ML. The former `cellxgene_census.experimental.ml` PyTorch loaders are deprecated and scheduled for removal.\n\n```python\nimport tiledbsoma as soma\nfrom tiledbsoma_ml import ExperimentDataset, experiment_dataloader\n\nwith cellxgene_census.open_soma() as census:\n    experiment = census[\"census_data\"][\"homo_sapiens\"]\n    with experiment.axis_query(\n        measurement_name=\"RNA\",\n        obs_query=soma.AxisQuery(\n            value_filter=\"tissue_general == 'liver' and is_primary_data == True\"\n        ),\n    ) as query:\n        dataset = ExperimentDataset(\n            query=query,\n            layer_name=\"raw\",\n            obs_column_names=[\"cell_type\"],\n            batch_size=128,\n            shuffle=True,\n        )\n        dataloader = experiment_dataloader(dataset)\n\n        # Training loop\n        for epoch in range(num_epochs):\n            dataset.set_epoch(epoch)\n            for X, obs in dataloader:\n                labels = obs[\"cell_type\"]\n\n                # Forward pass\n                outputs = model(X)\n                loss = criterion(outputs, labels)\n\n                # Backward pass\n                optimizer.zero_grad()\n                loss.backward()\n                optimizer.step()\n```\n\n**Train\u002Ftest splitting:**\n```python\ntrain_dataset, test_dataset = dataset.random_split(0.8, 0.2, seed=42)\ntrain_loader = experiment_dataloader(train_dataset, num_workers=2)\ntest_loader = experiment_dataloader(test_dataset, num_workers=2)\n```\n\nUse `batch_size` and `shuffle` on `ExperimentDataset`, not on `torch.utils.data.DataLoader`; `experiment_dataloader()` rejects DataLoader-level `batch_size`, `shuffle`, `sampler`, and `batch_sampler` arguments.\n\n### 6. Spatial Census Data\n\nSpatial data is available for supported Census releases in a separate `census_spatial_sequencing` collection. Use the spatial extra and a current TileDB-SOMA version when querying Visium or Slide-seq V2 data:\n\n```python\nimport cellxgene_census\nimport tiledbsoma as soma\n\nwith cellxgene_census.open_soma(census_version=\"2025-11-08\") as census:\n    spatial_experiment = census[\"census_spatial_sequencing\"][\"homo_sapiens\"]\n    with spatial_experiment.axis_query(\n        measurement_name=\"RNA\",\n        obs_query=soma.AxisQuery(\n            value_filter=\"dataset_id == '4cceac62-9513-42a4-90e5-2878dbb0192c'\"\n        ),\n    ) as query:\n        sdata = query.to_spatialdata(X_name=\"raw\")\n```\n\n### 7. Integration with Scanpy\n\nSeamlessly integrate Census data with scanpy workflows:\n\n```python\nimport scanpy as sc\n\n# Load data from Census\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    obs_value_filter=\"cell_type == 'neuron' and tissue_general == 'cortex' and is_primary_data == True\",\n)\n\n# Standard scanpy workflow\nsc.pp.normalize_total(adata, target_sum=1e4)\nsc.pp.log1p(adata)\nsc.pp.highly_variable_genes(adata, n_top_genes=2000)\n\n# Dimensionality reduction\nsc.pp.pca(adata, n_comps=50)\nsc.pp.neighbors(adata)\nsc.tl.umap(adata)\n\n# Visualization\nsc.pl.umap(adata, color=[\"cell_type\", \"tissue\", \"disease\"])\n```\n\n### 8. Multi-Dataset Integration\n\nQuery and integrate multiple datasets:\n\n```python\n# Strategy 1: Query multiple tissues separately\ntissues = [\"lung\", \"liver\", \"kidney\"]\nadatas = []\n\nfor tissue in tissues:\n    adata = cellxgene_census.get_anndata(\n        census=census,\n        organism=\"Homo sapiens\",\n        obs_value_filter=f\"tissue_general == '{tissue}' and is_primary_data == True\",\n    )\n    adata.obs[\"tissue\"] = tissue\n    adatas.append(adata)\n\n# Concatenate with AnnData's current API\nimport anndata as ad\ncombined = ad.concat(adatas, label=\"tissue\", keys=tissues)\n\n# Strategy 2: Query multiple datasets directly\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    obs_value_filter=\"tissue_general in ['lung', 'liver', 'kidney'] and is_primary_data == True\",\n)\n```\n\n## Key Concepts and Best Practices\n\n### Always Filter for Primary Data\nUnless analyzing duplicates, always include `is_primary_data == True` in queries to avoid counting cells multiple times:\n```python\nobs_value_filter=\"cell_type == 'B cell' and is_primary_data == True\"\n```\n\n### Specify Census Version for Reproducibility\nAlways specify the Census version in production analyses:\n```python\ncensus = cellxgene_census.open_soma(census_version=\"2025-11-08\")\n```\n\n### Estimate Query Size Before Loading\nFor large queries, first check the number of cells to avoid memory issues:\n```python\n# Get cell count\nmetadata = cellxgene_census.get_obs(\n    census, \"homo_sapiens\",\n    value_filter=\"tissue_general == 'brain' and is_primary_data == True\",\n    column_names=[\"soma_joinid\"]\n)\nn_cells = len(metadata)\nprint(f\"Query will return {n_cells:,} cells\")\n\n# If too large (>100k), use out-of-core processing\n```\n\n### Use tissue_general for Broader Groupings\nThe `tissue_general` field provides coarser categories than `tissue`, useful for cross-tissue analyses:\n```python\n# Broader grouping\nobs_value_filter=\"tissue_general == 'immune system'\"\n\n# Specific tissue\nobs_value_filter=\"tissue == 'peripheral blood mononuclear cell'\"\n```\n\n### Select Only Needed Columns\nMinimize data transfer by specifying only required metadata columns:\n```python\nobs_column_names=[\"cell_type\", \"tissue_general\", \"disease\"]  # Not all columns\n```\n\n### Check Dataset Presence for Gene-Specific Queries\nWhen analyzing specific genes, verify which datasets measured them:\n```python\n# get_presence_matrix takes no gene filter; its columns are indexed by feature\n# soma_joinid, so resolve the genes first and slice the matrix by those IDs.\ngenes = cellxgene_census.get_var(\n    census,\n    \"homo_sapiens\",\n    value_filter=\"feature_name in ['CD4', 'CD8A']\",\n    column_names=[\"soma_joinid\", \"feature_name\"],\n)\npresence = cellxgene_census.get_presence_matrix(census, \"homo_sapiens\")\npresence = presence[:, genes[\"soma_joinid\"].to_numpy()]\n```\n\n### Two-Step Workflow: Explore Then Query\nFirst explore metadata to understand available data, then query expression:\n```python\n# Step 1: Explore what's available\nmetadata = cellxgene_census.get_obs(\n    census, \"homo_sapiens\",\n    value_filter=\"disease == 'COVID-19' and is_primary_data == True\",\n    column_names=[\"cell_type\", \"tissue_general\"]\n)\nprint(metadata.value_counts())\n\n# Step 2: Query based on findings\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    obs_value_filter=\"disease == 'COVID-19' and cell_type == 'T cell' and is_primary_data == True\",\n)\n```\n\n## Available Metadata Fields\n\n### Cell Metadata (obs)\nKey fields for filtering:\n- `cell_type`, `cell_type_ontology_term_id`\n- `tissue`, `tissue_general`, `tissue_ontology_term_id`\n- `disease`, `disease_ontology_term_id`\n- `assay`, `assay_ontology_term_id`\n- `donor_id`, `sex`, `self_reported_ethnicity`\n- `development_stage`, `development_stage_ontology_term_id`\n- `dataset_id`\n- `is_primary_data` (Boolean: True = unique cell)\n\nThe current schema includes organism collections beyond human and mouse. Confirm available organisms for the selected release with `list(census[\"census_data\"].keys())`.\n\n### Gene Metadata (var)\n- `feature_id` (Ensembl gene ID, e.g., \"ENSG00000161798\")\n- `feature_name` (Gene symbol, e.g., \"FOXP2\")\n- `feature_type`\n- `feature_length` (Gene length in base pairs)\n- `nnz`, `n_measured_obs` (availability summaries useful for checking sparsity and coverage)\n\n## Reference Documentation\n\nThis skill includes detailed reference documentation:\n\n### references\u002Fcensus_schema.md\nComprehensive documentation of:\n- Census data structure and organization\n- All available metadata fields\n- Value filter syntax and operators\n- SOMA object types\n- Data inclusion criteria\n\n**When to read:** When you need detailed schema information, full list of metadata fields, or complex filter syntax.\n\n### references\u002Fcommon_patterns.md\nExamples and patterns for:\n- Exploratory queries (metadata only)\n- Small-to-medium queries (AnnData)\n- Large queries (out-of-core processing)\n- PyTorch integration\n- Spatial Census access patterns\n- Scanpy integration workflows\n- Multi-dataset integration\n- Best practices and common pitfalls\n\n**When to read:** When implementing specific query patterns, looking for code examples, or troubleshooting common issues.\n\n## Common Use Cases\n\n### Use Case 1: Explore Cell Types in a Tissue\n```python\nwith cellxgene_census.open_soma() as census:\n    cells = cellxgene_census.get_obs(\n        census, \"homo_sapiens\",\n        value_filter=\"tissue_general == 'lung' and is_primary_data == True\",\n        column_names=[\"cell_type\"]\n    )\n    print(cells[\"cell_type\"].value_counts())\n```\n\n### Use Case 2: Query Marker Gene Expression\n```python\nwith cellxgene_census.open_soma() as census:\n    adata = cellxgene_census.get_anndata(\n        census=census,\n        organism=\"Homo sapiens\",\n        var_value_filter=\"feature_name in ['CD4', 'CD8A', 'CD19']\",\n        obs_value_filter=\"cell_type in ['T cell', 'B cell'] and is_primary_data == True\",\n    )\n```\n\n### Use Case 3: Train Cell Type Classifier\n```python\nimport tiledbsoma as soma\nfrom tiledbsoma_ml import ExperimentDataset, experiment_dataloader\n\nwith cellxgene_census.open_soma() as census:\n    experiment = census[\"census_data\"][\"homo_sapiens\"]\n    with experiment.axis_query(\n        measurement_name=\"RNA\",\n        obs_query=soma.AxisQuery(value_filter=\"is_primary_data == True\"),\n    ) as query:\n        dataset = ExperimentDataset(\n            query=query,\n            layer_name=\"raw\",\n            obs_column_names=[\"cell_type\"],\n            batch_size=128,\n            shuffle=True,\n        )\n        dataloader = experiment_dataloader(dataset)\n\n        for X, obs in dataloader:\n            labels = obs[\"cell_type\"]\n            # Training logic\n            pass\n```\n\n### Use Case 4: Cross-Tissue Analysis\n```python\nwith cellxgene_census.open_soma() as census:\n    adata = cellxgene_census.get_anndata(\n        census=census,\n        organism=\"Homo sapiens\",\n        obs_value_filter=\"cell_type == 'macrophage' and tissue_general in ['lung', 'liver', 'brain'] and is_primary_data == True\",\n    )\n\n    # Analyze macrophage differences across tissues\n    sc.tl.rank_genes_groups(adata, groupby=\"tissue_general\")\n```\n\n## Troubleshooting\n\n### Query Returns Too Many Cells\n- Add more specific filters to reduce scope\n- Use `tissue` instead of `tissue_general` for finer granularity\n- Filter by specific `dataset_id` if known\n- Switch to out-of-core processing for large queries\n\n### Memory Errors\n- Reduce query scope with more restrictive filters\n- Select fewer genes with `var_value_filter`\n- Use out-of-core processing with `axis_query()`\n- Process data in batches\n\n### Duplicate Cells in Results\n- Always include `is_primary_data == True` in filters\n- Check if intentionally querying across multiple datasets\n\n### Gene Not Found\n- Verify gene name spelling (case-sensitive)\n- Try Ensembl ID with `feature_id` instead of `feature_name`\n- Check dataset presence matrix to see if gene was measured\n- Some genes may have been filtered during Census construction\n\n### Version Inconsistencies\n- Always specify `census_version` explicitly\n- Use same version across all analyses\n- Check release notes for version-specific changes\n","# CZ CELLxGENE Census\n\n## Overview\n\nThe CZ CELLxGENE Census provides programmatic access to a comprehensive, versioned collection of standardized single-cell and spatial transcriptomics data from CZ CELLxGENE Discover. This skill enables efficient querying and analysis of public Census releases without downloading whole datasets first.\n\nThe Census includes:\n- **217+ million total cells** and **125+ million unique cells** in the 2025-11-08 stable LTS release\n- **1,845 datasets** in the 2025-11-08 stable LTS release\n- **Human, mouse, marmoset, rhesus macaque, and chimpanzee** data in the current schema\n- **Standardized metadata** (cell types, tissues, diseases, donors)\n- **Raw gene expression** matrices and source H5AD lookup\u002Fdownload helpers\n- **Pre-calculated summary counts, embeddings, and spatial data**\n- **Integration with AnnData, Scanpy, TileDB-SOMA, TileDB-SOMA-ML, and other analysis tools**\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Querying single-cell expression data by cell type, tissue, or disease\n- Exploring available single-cell datasets and metadata\n- Training machine learning models on single-cell data\n- Performing large-scale cross-dataset analyses\n- Integrating Census data with scanpy or other analysis frameworks\n- Computing statistics across millions of cells\n- Accessing pre-calculated embeddings or model predictions\n\n## Installation and Setup\n\nInstall the Census API:\n```bash\nuv pip install \"cellxgene-census==1.18.*\"\n```\n\nFor spatial workflows:\n```bash\nuv pip install \"cellxgene-census[spatial]==1.18.*\" \"spatialdata[extra]>=0.2.5\"\n```\n\nFor PyTorch model training, use TileDB-SOMA-ML. The old `cellxgene_census.experimental.ml` loaders are deprecated:\n\n```bash\nuv pip install \"cellxgene-census==1.18.*\" tiledbsoma-ml\n```\n\n## Core Workflow Patterns\n\n### 1. Opening the Census\n\nAlways use the context manager to ensure proper resource cleanup:\n\n```python\nimport cellxgene_census\n\n# Open latest stable version\nwith cellxgene_census.open_soma() as census:\n    # Work with census data\n\n# Open the current LTS version for reproducibility\nwith cellxgene_census.open_soma(census_version=\"2025-11-08\") as census:\n    # Work with census data\n```\n\n**Key points:**\n- Use context manager (`with` statement) for automatic cleanup\n- Specify `census_version` for reproducible analyses\n- `stable` opens the current LTS Census release; `latest` opens the newest weekly release retained for a shorter period\n\n### 2. Exploring Census Information\n\nBefore querying expression data, explore available datasets and metadata.\n\n**Access summary information:**\n```python\n# Get summary statistics as label\u002Fvalue rows\nsummary = census[\"census_info\"][\"summary\"].read().concat().to_pandas()\nsummary_values = summary.set_index(\"label\")[\"value\"]\nprint(f\"Total cells: {int(summary_values['total_cell_count']):,}\")\nprint(f\"Unique cells: {int(summary_values['unique_cell_count']):,}\")\n\n# Get all datasets\ndatasets = census[\"census_info\"][\"datasets\"].read().concat().to_pandas()\n\n# Get precomputed counts by organism, cell type, tissue, disease, and assay\nsummary_counts = census[\"census_info\"][\"summary_cell_counts\"].read().concat().to_pandas()\ntissue_counts = summary_counts[summary_counts[\"category\"].eq(\"tissue_general\")]\n```\n\n**Query cell metadata to understand available data:**\n```python\n# Get unique cell types in a tissue\ncell_metadata = cellxgene_census.get_obs(\n    census,\n    \"homo_sapiens\",\n    value_filter=\"tissue_general == 'brain' and is_primary_data == True\",\n    column_names=[\"cell_type\"]\n)\nunique_cell_types = cell_metadata[\"cell_type\"].unique()\nprint(f\"Found {len(unique_cell_types)} cell types in brain\")\n\n# Count cells by tissue\ntissue_metadata = cellxgene_census.get_obs(\n    census,\n    \"homo_sapiens\",\n    value_filter=\"is_primary_data == True\",\n    column_names=[\"tissue_general\"],\n)\ntissue_counts = tissue_metadata[\"tissue_general\"].value_counts()\n```\n\n**Important:** Always filter for `is_primary_data == True` to avoid counting duplicate cells unless specifically analyzing duplicates.\n\n### 3. Querying Expression Data (Small to Medium Scale)\n\nFor queries returning \u003C 100k cells that fit in memory, use `get_anndata()`:\n\n```python\n# Basic query with cell type and tissue filters\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",  # or \"Mus musculus\"\n    obs_value_filter=\"cell_type == 'B cell' and tissue_general == 'lung' and is_primary_data == True\",\n    obs_column_names=[\"assay\", \"disease\", \"sex\", \"donor_id\"],\n)\n\n# Query specific genes with multiple filters\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    var_value_filter=\"feature_name in ['CD4', 'CD8A', 'CD19', 'FOXP3']\",\n    obs_value_filter=\"cell_type == 'T cell' and disease == 'COVID-19' and is_primary_data == True\",\n    obs_column_names=[\"cell_type\", \"tissue_general\", \"donor_id\"],\n)\n```\n\n**Filter syntax:**\n- Use `obs_value_filter` for cell filtering\n- Use `var_value_filter` for gene filtering\n- Combine conditions with `and`, `or`\n- Use `in` for multiple values: `tissue in ['lung', 'liver']`\n- Select only needed columns with `obs_column_names`\n- In current LTS releases, `disease` and `disease_ontology_term_id` may contain ` || `-delimited multiple values; inspect available values before relying on exact equality filters for disease cohorts\n\n**Getting metadata separately:**\n```python\n# Query cell metadata\ncell_metadata = cellxgene_census.get_obs(\n    census, \"homo_sapiens\",\n    value_filter=\"disease == 'COVID-19' and is_primary_data == True\",\n    column_names=[\"cell_type\", \"tissue_general\", \"donor_id\"]\n)\n\n# Query gene metadata\ngene_metadata = cellxgene_census.get_var(\n    census, \"homo_sapiens\",\n    value_filter=\"feature_name in ['CD4', 'CD8A']\",\n    column_names=[\"feature_id\", \"feature_name\", \"feature_length\"]\n)\n```\n\n### 4. Large-Scale Queries (Out-of-Core Processing)\n\nFor queries exceeding available RAM, use `axis_query()` with iterative processing:\n\n```python\nimport tiledbsoma as soma\n\n# Create axis query\nwith census[\"census_data\"][\"homo_sapiens\"].axis_query(\n    measurement_name=\"RNA\",\n    obs_query=soma.AxisQuery(\n        value_filter=\"tissue_general == 'brain' and is_primary_data == True\"\n    ),\n    var_query=soma.AxisQuery(\n        value_filter=\"feature_name in ['FOXP2', 'TBR1', 'SATB2']\"\n    ),\n) as query:\n    # Iterate through expression matrix in chunks\n    iterator = query.X(\"raw\").tables()\n    for batch in iterator:\n        # batch is a pyarrow.Table with columns:\n        # - soma_data: expression value\n        # - soma_dim_0: cell (obs) coordinate\n        # - soma_dim_1: gene (var) coordinate\n        process_batch(batch)\n```\n\n**Computing incremental statistics:**\n```python\nimport tiledbsoma as soma\n\n# Example: Calculate mean expression\nn_observations = 0\nsum_values = 0.0\n\nwith census[\"census_data\"][\"homo_sapiens\"].axis_query(\n    measurement_name=\"RNA\",\n    obs_query=soma.AxisQuery(value_filter=\"tissue_general == 'brain' and is_primary_data == True\"),\n    var_query=soma.AxisQuery(value_filter=\"feature_name in ['FOXP2', 'TBR1', 'SATB2']\"),\n) as query:\n    iterator = query.X(\"raw\").tables()\n    for batch in iterator:\n        values = batch[\"soma_data\"].to_numpy()\n        n_observations += len(values)\n        sum_values += values.sum()\n\nmean_expression = sum_values \u002F n_observations\n```\n\n### 5. Machine Learning with PyTorch\n\nFor training models, use TileDB-SOMA-ML. The former `cellxgene_census.experimental.ml` PyTorch loaders are deprecated and scheduled for removal.\n\n```python\nimport tiledbsoma as soma\nfrom tiledbsoma_ml import ExperimentDataset, experiment_dataloader\n\nwith cellxgene_census.open_soma() as census:\n    experiment = census[\"census_data\"][\"homo_sapiens\"]\n    with experiment.axis_query(\n        measurement_name=\"RNA\",\n        obs_query=soma.AxisQuery(\n            value_filter=\"tissue_general == 'liver' and is_primary_data == True\"\n        ),\n    ) as query:\n        dataset = ExperimentDataset(\n            query=query,\n            layer_name=\"raw\",\n            obs_column_names=[\"cell_type\"],\n            batch_size=128,\n            shuffle=True,\n        )\n        dataloader = experiment_dataloader(dataset)\n\n        # Training loop\n        for epoch in range(num_epochs):\n            dataset.set_epoch(epoch)\n            for X, obs in dataloader:\n                labels = obs[\"cell_type\"]\n\n                # Forward pass\n                outputs = model(X)\n                loss = criterion(outputs, labels)\n\n                # Backward pass\n                optimizer.zero_grad()\n                loss.backward()\n                optimizer.step()\n```\n\n**Train\u002Ftest splitting:**\n```python\ntrain_dataset, test_dataset = dataset.random_split(0.8, 0.2, seed=42)\ntrain_loader = experiment_dataloader(train_dataset, num_workers=2)\ntest_loader = experiment_dataloader(test_dataset, num_workers=2)\n```\n\nUse `batch_size` and `shuffle` on `ExperimentDataset`, not on `torch.utils.data.DataLoader`; `experiment_dataloader()` rejects DataLoader-level `batch_size`, `shuffle`, `sampler`, and `batch_sampler` arguments.\n\n### 6. Spatial Census Data\n\nSpatial data is available for supported Census releases in a separate `census_spatial_sequencing` collection. Use the spatial extra and a current TileDB-SOMA version when querying Visium or Slide-seq V2 data:\n\n```python\nimport cellxgene_census\nimport tiledbsoma as soma\n\nwith cellxgene_census.open_soma(census_version=\"2025-11-08\") as census:\n    spatial_experiment = census[\"census_spatial_sequencing\"][\"homo_sapiens\"]\n    with spatial_experiment.axis_query(\n        measurement_name=\"RNA\",\n        obs_query=soma.AxisQuery(\n            value_filter=\"dataset_id == '4cceac62-9513-42a4-90e5-2878dbb0192c'\"\n        ),\n    ) as query:\n        sdata = query.to_spatialdata(X_name=\"raw\")\n```\n\n### 7. Integration with Scanpy\n\nSeamlessly integrate Census data with scanpy workflows:\n\n```python\nimport scanpy as sc\n\n# Load data from Census\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    obs_value_filter=\"cell_type == 'neuron' and tissue_general == 'cortex' and is_primary_data == True\",\n)\n\n# Standard scanpy workflow\nsc.pp.normalize_total(adata, target_sum=1e4)\nsc.pp.log1p(adata)\nsc.pp.highly_variable_genes(adata, n_top_genes=2000)\n\n# Dimensionality reduction\nsc.pp.pca(adata, n_comps=50)\nsc.pp.neighbors(adata)\nsc.tl.umap(adata)\n\n# Visualization\nsc.pl.umap(adata, color=[\"cell_type\", \"tissue\", \"disease\"])\n```\n\n### 8. Multi-Dataset Integration\n\nQuery and integrate multiple datasets:\n\n```python\n# Strategy 1: Query multiple tissues separately\ntissues = [\"lung\", \"liver\", \"kidney\"]\nadatas = []\n\nfor tissue in tissues:\n    adata = cellxgene_census.get_anndata(\n        census=census,\n        organism=\"Homo sapiens\",\n        obs_value_filter=f\"tissue_general == '{tissue}' and is_primary_data == True\",\n    )\n    adata.obs[\"tissue\"] = tissue\n    adatas.append(adata)\n\n# Concatenate with AnnData's current API\nimport anndata as ad\ncombined = ad.concat(adatas, label=\"tissue\", keys=tissues)\n\n# Strategy 2: Query multiple datasets directly\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    obs_value_filter=\"tissue_general in ['lung', 'liver', 'kidney'] and is_primary_data == True\",\n)\n```\n\n## Key Concepts and Best Practices\n\n### Always Filter for Primary Data\nUnless analyzing duplicates, always include `is_primary_data == True` in queries to avoid counting cells multiple times:\n```python\nobs_value_filter=\"cell_type == 'B cell' and is_primary_data == True\"\n```\n\n### Specify Census Version for Reproducibility\nAlways specify the Census version in production analyses:\n```python\ncensus = cellxgene_census.open_soma(census_version=\"2025-11-08\")\n```\n\n### Estimate Query Size Before Loading\nFor large queries, first check the number of cells to avoid memory issues:\n```python\n# Get cell count\nmetadata = cellxgene_census.get_obs(\n    census, \"homo_sapiens\",\n    value_filter=\"tissue_general == 'brain' and is_primary_data == True\",\n    column_names=[\"soma_joinid\"]\n)\nn_cells = len(metadata)\nprint(f\"Query will return {n_cells:,} cells\")\n\n# If too large (>100k), use out-of-core processing\n```\n\n### Use tissue_general for Broader Groupings\nThe `tissue_general` field provides coarser categories than `tissue`, useful for cross-tissue analyses:\n```python\n# Broader grouping\nobs_value_filter=\"tissue_general == 'immune system'\"\n\n# Specific tissue\nobs_value_filter=\"tissue == 'peripheral blood mononuclear cell'\"\n```\n\n### Select Only Needed Columns\nMinimize data transfer by specifying only required metadata columns:\n```python\nobs_column_names=[\"cell_type\", \"tissue_general\", \"disease\"]  # Not all columns\n```\n\n### Check Dataset Presence for Gene-Specific Queries\nWhen analyzing specific genes, verify which datasets measured them:\n```python\n# get_presence_matrix takes no gene filter; its columns are indexed by feature\n# soma_joinid, so resolve the genes first and slice the matrix by those IDs.\ngenes = cellxgene_census.get_var(\n    census,\n    \"homo_sapiens\",\n    value_filter=\"feature_name in ['CD4', 'CD8A']\",\n    column_names=[\"soma_joinid\", \"feature_name\"],\n)\npresence = cellxgene_census.get_presence_matrix(census, \"homo_sapiens\")\npresence = presence[:, genes[\"soma_joinid\"].to_numpy()]\n```\n\n### Two-Step Workflow: Explore Then Query\nFirst explore metadata to understand available data, then query expression:\n```python\n# Step 1: Explore what's available\nmetadata = cellxgene_census.get_obs(\n    census, \"homo_sapiens\",\n    value_filter=\"disease == 'COVID-19' and is_primary_data == True\",\n    column_names=[\"cell_type\", \"tissue_general\"]\n)\nprint(metadata.value_counts())\n\n# Step 2: Query based on findings\nadata = cellxgene_census.get_anndata(\n    census=census,\n    organism=\"Homo sapiens\",\n    obs_value_filter=\"disease == 'COVID-19' and cell_type == 'T cell' and is_primary_data == True\",\n)\n```\n\n## Available Metadata Fields\n\n### Cell Metadata (obs)\nKey fields for filtering:\n- `cell_type`, `cell_type_ontology_term_id`\n- `tissue`, `tissue_general`, `tissue_ontology_term_id`\n- `disease`, `disease_ontology_term_id`\n- `assay`, `assay_ontology_term_id`\n- `donor_id`, `sex`, `self_reported_ethnicity`\n- `development_stage`, `development_stage_ontology_term_id`\n- `dataset_id`\n- `is_primary_data` (Boolean: True = unique cell)\n\nThe current schema includes organism collections beyond human and mouse. Confirm available organisms for the selected release with `list(census[\"census_data\"].keys())`.\n\n### Gene Metadata (var)\n- `feature_id` (Ensembl gene ID, e.g., \"ENSG00000161798\")\n- `feature_name` (Gene symbol, e.g., \"FOXP2\")\n- `feature_type`\n- `feature_length` (Gene length in base pairs)\n- `nnz`, `n_measured_obs` (availability summaries useful for checking sparsity and coverage)\n\n## Reference Documentation\n\nThis skill includes detailed reference documentation:\n\n### references\u002Fcensus_schema.md\nComprehensive documentation of:\n- Census data structure and organization\n- All available metadata fields\n- Value filter syntax and operators\n- SOMA object types\n- Data inclusion criteria\n\n**When to read:** When you need detailed schema information, full list of metadata fields, or complex filter syntax.\n\n### references\u002Fcommon_patterns.md\nExamples and patterns for:\n- Exploratory queries (metadata only)\n- Small-to-medium queries (AnnData)\n- Large queries (out-of-core processing)\n- PyTorch integration\n- Spatial Census access patterns\n- Scanpy integration workflows\n- Multi-dataset integration\n- Best practices and common pitfalls\n\n**When to read:** When implementing specific query patterns, looking for code examples, or troubleshooting common issues.\n\n## Common Use Cases\n\n### Use Case 1: Explore Cell Types in a Tissue\n```python\nwith cellxgene_census.open_soma() as census:\n    cells = cellxgene_census.get_obs(\n        census, \"homo_sapiens\",\n        value_filter=\"tissue_general == 'lung' and is_primary_data == True\",\n        column_names=[\"cell_type\"]\n    )\n    print(cells[\"cell_type\"].value_counts())\n```\n\n### Use Case 2: Query Marker Gene Expression\n```python\nwith cellxgene_census.open_soma() as census:\n    adata = cellxgene_census.get_anndata(\n        census=census,\n        organism=\"Homo sapiens\",\n        var_value_filter=\"feature_name in ['CD4', 'CD8A', 'CD19']\",\n        obs_value_filter=\"cell_type in ['T cell', 'B cell'] and is_primary_data == True\",\n    )\n```\n\n### Use Case 3: Train Cell Type Classifier\n```python\nimport tiledbsoma as soma\nfrom tiledbsoma_ml import ExperimentDataset, experiment_dataloader\n\nwith cellxgene_census.open_soma() as census:\n    experiment = census[\"census_data\"][\"homo_sapiens\"]\n    with experiment.axis_query(\n        measurement_name=\"RNA\",\n        obs_query=soma.AxisQuery(value_filter=\"is_primary_data == True\"),\n    ) as query:\n        dataset = ExperimentDataset(\n            query=query,\n            layer_name=\"raw\",\n            obs_column_names=[\"cell_type\"],\n            batch_size=128,\n            shuffle=True,\n        )\n        dataloader = experiment_dataloader(dataset)\n\n        for X, obs in dataloader:\n            labels = obs[\"cell_type\"]\n            # Training logic\n            pass\n```\n\n### Use Case 4: Cross-Tissue Analysis\n```python\nwith cellxgene_census.open_soma() as census:\n    adata = cellxgene_census.get_anndata(\n        census=census,\n        organism=\"Homo sapiens\",\n        obs_value_filter=\"cell_type == 'macrophage' and tissue_general in ['lung', 'liver', 'brain'] and is_primary_data == True\",\n    )\n\n    # Analyze macrophage differences across tissues\n    sc.tl.rank_genes_groups(adata, groupby=\"tissue_general\")\n```\n\n## Troubleshooting\n\n### Query Returns Too Many Cells\n- Add more specific filters to reduce scope\n- Use `tissue` instead of `tissue_general` for finer granularity\n- Filter by specific `dataset_id` if known\n- Switch to out-of-core processing for large queries\n\n### Memory Errors\n- Reduce query scope with more restrictive filters\n- Select fewer genes with `var_value_filter`\n- Use out-of-core processing with `axis_query()`\n- Process data in batches\n\n### Duplicate Cells in Results\n- Always include `is_primary_data == True` in filters\n- Check if intentionally querying across multiple datasets\n\n### Gene Not Found\n- Verify gene name spelling (case-sensitive)\n- Try Ensembl ID with `feature_id` instead of `feature_name`\n- Check dataset presence matrix to see if gene was measured\n- Some genes may have been filtered during Census construction\n\n### Version Inconsistencies\n- Always specify `census_version` explicitly\n- Use same version across all analyses\n- Check release notes for version-specific changes\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":27,"compatibility":28},{"version":25,"skill-author":26},"1.1","K-Dense Inc.","Read Write Edit Bash","Requires Python >=3.10,\u003C3.13. Examples target cellxgene-census 1.18.x and the 2025-11-08 stable LTS Census; spatial workflows need the spatial extra and TileDB-SOMA >=1.15.3. No authentication is required for public Census data.","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fcellxgene-census",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add stanfish06\u002Fskillquarium --skill cellxgene-census",{"tool":43,"command":44},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill cellxgene-census",{"tool":46,"command":47},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill cellxgene-census","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcellxgene-census\u002FSKILL.md",true,[51,57],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcensus_schema.md","REFERENCE","参考文档",7910,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcellxgene-census\u002Freferences\u002Fcensus_schema.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fcommon_patterns.md",11349,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcellxgene-census\u002Freferences\u002Fcommon_patterns.md",[62,69,78,85,92,99],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","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.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]