sparse-matrix-validation

sparse-matrix-validation is a skill for Claude Code, Codex from HolobiomicsLab/asb-skill-collections. It costs 38 tokens per session (1,499 once invoked), scanned A, original, Apache-2.0.

A validation procedure for sparse count matrices made from single-cell ATAC-seq fragment data. It checks the matrix dimensions, sparsity, non-zero entries, and whether the counts show plausible chromatin-accessibility signal.

In plain words
What is it for?
Check tile-, peak-, or gene-level matrices produced by SnapATAC2 after fragment data has been converted into matrix form.
Why use it?
Errors while creating a matrix can silently affect every later step, such as clustering or peak calling. Early checks can reveal corrupted data or incorrect settings before those errors spread.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Check tile-, peak-, or gene-level matrices produced by SnapATAC2 after fragment data has been converted into matrix form.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HolobiomicsLab/asb-skill-collections --skill sparse-matrix-validation
Clone the repo
git clone --depth 1 https://github.com/HolobiomicsLab/asb-skill-collections

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sparse-matrix-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation/github.svg)](https://agentmods.dev/skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation)
Your own site
<a href="https://agentmods.dev/skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation"><img src="https://agentmods.dev/badge/skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sparse-matrix-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation"><img src="https://agentmods.dev/badge/skills/holobiomicslab/asb-skill-collections/sparse-matrix-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01499
Opus 5 $0.00019 $0.00749
Sonnet 5 $0.00008 $0.00300
Haiku 4.5 $0.00004 $0.00150

Measured 6d ago against content hash b62855601692, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sparse-matrix-validation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

collections/epigenomics/v1/skills/sparse-matrix-validation/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sparse-matrix-validation

Summary

Validation of sparse count matrices generated from single-cell ATAC-seq fragment data to ensure matrix shape, sparsity structure, and quantitative correctness before downstream analysis. This skill verifies that tile-based or peak-based count matrices possess expected dimensions, contain appropriately distributed non-zero entries across cells and genomic features, and reflect genuine chromatin accessibility signal.

When to use

After generating a count matrix from fragment data using pp.add_tile_matrix, pp.make_peak_matrix, or pp.make_gene_matrix in SnapATAC2. Validation is essential whenever you transition from fragment-level preprocessing to matrix-based analysis (dimension reduction, clustering, peak calling) to detect generation errors, parameter misconfigurations, or data corruption that would propagate through the pipeline.

When NOT to use

  • Input is already a validated feature table (e.g., pre-computed matrix from a completed SnapATAC2 workflow); re-validation is redundant.
  • Fragment file has not yet been imported into AnnData; validate fragment import separately before matrix generation.
  • You are performing quality control on raw sequencing reads prior to alignment; use fragment-level QC (e.g., mapping rate, duplicate removal) instead.

Inputs

  • AnnData object with .obsm['fragment_paired'] or .obsm['fragment_single'] containing aligned fragment data
  • Tile coordinate definitions or peak BED file used for matrix generation
  • Matrix generation parameters (counting strategy, bin size or peak coordinates)

Outputs

  • Validated sparse count matrix (n_obs × n_vars) stored in .X or .obsm
  • Summary statistics: matrix dimensions, sparsity fraction, entry value range, non-zero count distribution across cells and features

How to apply

Inspect the resulting matrix object for three key invariants: (1) verify matrix shape (n_obs × n_vars) matches the number of cells (observations) and genomic tiles or peaks (variables) as defined by your binning or peak-calling parameters; (2) confirm the matrix contains non-zero entries distributed across both cells and genomic features, indicating signal is not concentrated in a pathological subset; (3) validate sparsity is appropriate for ATAC-seq (typically 85–99% sparse depending on sequencing depth and genome resolution), and that entry values are counts (non-negative integers). These checks catch mismatches between fragment input and matrix construction parameters (e.g., wrong genome build, misaligned tile coordinates, or empty fragment sets).

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 96 lines · 38 tokens per session scan A b62855601692

Subscribe to this mod's changes

sparse-matrix-validation is a skill published in the GitHub repository HolobiomicsLab/asb-skill-collections (15 stars, last pushed 2d ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,499 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

external-model-validation

Use when validating an existing prognostic risk signature on an external bulk expression cohort with survival outcomes, producing risk scores, Kaplan-Meier curves, risk distribution plots, heatmap, and time-dependent ROC curves. NOT for: model training, feature selection, nomogram construction, calibration analysis…

aipoch/medical-research-skills · 66 tokens

gsva-analysis-and-visualization

Use this skill to run GSVA or ssGSEA pathway-level differential analysis from a bulk expression matrix and a sample group file, then generate a heatmap from the saved GSVA result object. Trigger keywords: GSVA, ssGSEA, pathway enrichment, KEGG pathway analysis, MSigDB. NOT for: gene-level differential expression…

aipoch/medical-research-skills · 88 tokens

medical-research-literature-reader-pro

A medical-research-native literature reading skill for users with clinical, bioinformatics, translational, and basic experimental backgrounds. Use this skill whenever a user wants to read, analyze, critique, or interpret a medical or scientific paper — whether they provide a PDF, abstract, DOI, PMID, or just a title.…

aipoch/medical-research-skills · 199 tokens

adverse-event-narrative

Generates CIOMS I-compliant ICSR narratives from adverse event case data for FDA and EMA regulatory submission. Includes temporal analysis, MedDRA coding, causality assessment using WHO-UMC or Naranjo criteria, and multi-format output.

aipoch/medical-research-skills · 57 tokens

anatomy-quiz-master

Generate interactive anatomy quizzes for medical education with multiple.

aipoch/medical-research-skills · 17 tokens

decision-curve-analysis

Use when evaluating the clinical utility of a binary prediction model from a single clinical CSV file by fitting a logistic decision-curve model, plotting decision and clinical-impact curves, and exporting summary outputs. NOT for: survival calibration, ROC-only discrimination analysis, nomogram construction, or…

aipoch/medical-research-skills · 64 tokens