genomics-alignment

genomics-alignment is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 79 tokens per session (1,063 once invoked), scanned A, original, Apache-2.0.

A quality-control tool for SAM or BAM files, which are common formats for DNA sequencing reads after they have been aligned to a reference genome. It measures mapping, read-pair, duplicate, mapping-quality, and insert-size statistics.

In plain words
What is it for?
Use it to calculate mapping rate, MAPQ distribution, proper-pair rate, duplicate rate, and insert-size summaries from SAM or BAM files.
Why use it?
It produces standard alignment checks without requiring the samtools program, helping identify problems in an already-aligned dataset.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tiangzlab/omicsclaw/genomics-alignment
Any agent
npx skills add TianGzlab/OmicsClaw --skill genomics-alignment
Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw

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 genomics-alignment

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/genomics-alignment.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/genomics-alignment)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/genomics-alignment"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/genomics-alignment.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,063 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00079 $0.01063
Opus 5 $0.00039 $0.00531
Sonnet 5 $0.00016 $0.00213
Haiku 4.5 $0.00008 $0.00106

Measured 4d ago against content hash fda5abd6a0f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

genomics-alignment 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (genomics_alignment.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/genomics/genomics-alignment/SKILL.md · 86 lines

How it starts

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

genomics-alignment

When to use

The user has a SAM or BAM file from any aligner (BWA-MEM, Bowtie2, Minimap2, etc.) and wants standard alignment QC: mapped-read count, mapping rate, MAPQ distribution, proper-pair rate, duplicate rate. This skill mirrors samtools flagstat + per-MAPQ binning entirely in pure Python (no samtools install needed). It does not perform alignment — feed in an already-aligned .sam / .bam.

For pre-alignment FASTQ QC use genomics-qc. For variant calling on the aligned reads use genomics-variant-calling.

Inputs & Outputs

Inputs

  • File types: .sam

Outputs

  • tables/alignment_stats.csv
  • report.md
  • result.json

Flow

  1. Open the SAM in text mode (genomics_alignment.py:73open(sam_path, "r")) or synthesise a demo SAM at output_dir/demo_alignment.sam (genomics_alignment.py:151).
  2. Stream the records, count flags (mapped / proper-pair / dup / supplementary / secondary).
  3. Bin MAPQ; compute insert-size mean / median (paired only).
  4. Write tables/alignment_stats.csv (genomics_alignment.py:279) + report.md + standardised result.json envelope.

Gotchas

  • --input REQUIRED unless --demo. genomics_alignment.py:267 raises ValueError("--input required when not using --demo"); non-existent paths raise FileNotFoundError at :270. There is no parser.error shortcut — ValueError propagates as a Python traceback, exit code 1.
  • Text SAM only — binary BAM raises UnicodeDecodeError. genomics_alignment.py:73 calls open(sam_path, "r") (text mode); there is no pysam import or BAM/CRAM decoder anywhere in the script. Convert BAMs upstream with samtools view -h aligned.bam > aligned.sam. The "no pysam dependency" comment at :43 documents this intent.
  • No subprocess to samtools. Parsing is pure-Python — the script never shells out. CRAM input is not supported either.
  • No alignment is performed. This skill only summarises an already-aligned file. To produce the SAM/BAM, run BWA / Bowtie2 / Minimap2 yourself first; this skill consumes their output.
  • Demo writes a synthetic SAM into output_dir. genomics_alignment.py:151 writes demo_alignment.sam directly into the user-specified output directory. If you re-run --demo with different parameters in the same dir, the file is overwritten silently.
  • Insert-size statistics are paired-only. Single-end alignments still emit a row — but the insert-size columns will be 0 / NaN. Inspect summary['proper_pair_rate'] to confirm the input is paired before drawing conclusions.

Read the full file on GitHub · 86 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 86 lines · 79 tokens per session scan A fda5abd6a0f3

Subscribe to this mod's changes

genomics-alignment is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 79 tokens to every session and 1,063 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

cellxgene-census-query

Query CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, and integrate with scanpy/PyTorch for population-scale single-cell analysis. Use this skill when: (1) Querying single-cell expression data by cell type, tissue, or disease, (2) Exploring available single-cell datasets…

PharMolix/OpenBioMed · 105 tokens

biomcp

Search and retrieve biomedical data - genes, variants, clinical trials, diagnostic tests, articles, drugs, diseases, pathways, proteins, adverse events, pharmacogenomics, and phenotype-disease matching. Use for gene function, variant pathogenicity, trials, diagnostics, drug safety, pathway context, disease workups…

genomoncology/biomcp · 70 tokens

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

batch-processor

Manage large document processing by splitting into batches and coordinating the full translation workflow (extraction, translation, formatting). Use when handling documents larger than 30 pages, 60 paragraphs, or 6000 words.

ThreeFish-AI/negentropy · 46 tokens

markdown-formatter

Format and optimize Markdown content, with special support for post-translation processing. Use when fixing Markdown syntax, adjusting layout, ensuring formatting consistency, or optimizing translated documents.

ThreeFish-AI/negentropy · 37 tokens