# anishl135/clawbio-rare-variant-ranking architecture

> Architecture diagram of the GitHub repository anishl135/clawbio-rare-variant-ranking, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anishl135/clawbio-rare-variant-ranking
- Repository: https://github.com/anishl135/clawbio-rare-variant-ranking

## Overview

ClawBio is a local-first bioinformatics skill library: users invoke a skill through the CLI or Python interface, supply data or demo mode, and receive a domain analysis and report. Skills package declarative specifications with validated implementations; capabilities span pharmacogenomics, genome/GWAS analysis, RNA-seq and other bioinformatics workflows. Shared runtime modules handle skill discovery, execution, reporting, audit and reproducibility. The graph reflects README claims and the sampled CLI/common-module references; unsampled skill internals and their relationships are intentionally not inferred.

Main entry points: [`clawbio/cli.py`](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/cli.py) (CLI runner), [`clawbio/common/report.py`](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/report.py) (Report generation), [`skills/scrna-embedding/scrna_embedding.py`](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-embedding/scrna_embedding.py) (scRNA embedding), [`skills/scrna-embedding-audit/scrna_embedding_audit.py`](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-embedding-audit/scrna_embedding_audit.py) (Embedding audit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Skill runtime"]
  node_cli["CLI runner<br/>[cli.py]"]
  node_skill_entry["Skill entry contract<br/>[skill_entry.py]"]
  node_skill_manifest["Skill manifests<br/>[skill_manifest.py]"]
  node_skill_intents["Skill intents<br/>[skill_intents.py]"]
  node_privacy["Privacy controls<br/>[privacy.py]"]
end

subgraph group_analysis["Bioinformatics skills"]
  node_skill_library["Skill library"]
  node_pharmgx["Pharmacogenomics"]
  node_gwas_lookup["GWAS lookup"]
  node_prs["Polygenic risk scores"]
  node_ukb["UK Biobank research<br/>[ukb_navigator.py]"]
  node_ancestry["Ancestry analysis<br/>[ancestry_pca.py]"]
  node_scrna_embedding["scRNA embedding<br/>[scrna_embedding.py]"]
  node_scrna_audit["Embedding audit"]
  node_scrna_orchestrator["scRNA orchestrator"]
end

subgraph group_outputs["Run outputs"]
  node_report["Report generation<br/>[report.py]"]
  node_audit["Run audit<br/>[audit.py]"]
  node_checksums["Checksums<br/>[checksums.py]"]
  node_repro["Replay bundles<br/>[reproducibility.py]"]
  node_scrna_io["Single-cell I/O<br/>[scrna_io.py]"]
end

subgraph group_integrations["Agent integrations"]
  node_providers["Model providers"]
  node_gi["Genome Insights client<br/>[gi_client.py]"]
end

node_user(("Researcher or agent"))

node_user -->|"invokes"| node_cli
node_cli -->|"runs skill"| node_skill_library
node_cli -->|"uses contract"| node_skill_entry
node_cli -->|"reads metadata"| node_skill_manifest
node_cli -->|"uses intents"| node_skill_intents
node_cli -->|"checks privacy"| node_privacy
node_skill_manifest -->|"validates entry"| node_skill_entry
node_report -->|"records run"| node_audit
node_report -->|"hashes inputs"| node_checksums
node_report -->|"reads version"| node_skill_manifest
node_repro -->|"writes hashes"| node_checksums
node_scrna_embedding -->|"uses I/O"| node_scrna_io
node_scrna_embedding -->|"writes report"| node_report
node_scrna_embedding -->|"writes replay bundle"| node_repro
node_scrna_audit -->|"uses I/O"| node_scrna_io
node_scrna_audit -->|"writes report"| node_report
node_scrna_audit -->|"writes replay bundle"| node_repro
node_scrna_orchestrator -->|"uses I/O"| node_scrna_io
node_scrna_orchestrator -->|"writes report"| node_report

click node_cli "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/cli.py"
click node_skill_entry "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/skill_entry.py"
click node_skill_manifest "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/skill_manifest.py"
click node_skill_intents "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/skill_intents.py"
click node_skill_library "https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/skills"
click node_pharmgx "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/pharmgx-reporter/pharmgx_reporter.py"
click node_gwas_lookup "https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/skills/gwas-lookup"
click node_prs "https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/skills/gwas-prs"
click node_ukb "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/ukb-navigator/ukb_navigator.py"
click node_ancestry "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/claw-ancestry-pca/ancestry_pca.py"
click node_scrna_embedding "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-embedding/scrna_embedding.py"
click node_scrna_audit "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-embedding-audit/scrna_embedding_audit.py"
click node_scrna_orchestrator "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-orchestrator/scrna_orchestrator.py"
click node_report "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/report.py"
click node_audit "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/audit.py"
click node_checksums "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/checksums.py"
click node_repro "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/reproducibility.py"
click node_scrna_io "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/scrna_io.py"
click node_privacy "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/privacy.py"
click node_providers "https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/clawbio/providers"
click node_gi "https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/gi/gi_client.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_skill_entry,node_skill_manifest,node_skill_intents,node_privacy toneBlue
class node_skill_library,node_pharmgx,node_gwas_lookup,node_prs,node_ukb,node_ancestry,node_scrna_embedding,node_scrna_audit,node_scrna_orchestrator toneAmber
class node_report,node_audit,node_checksums,node_repro,node_scrna_io toneMint
class node_providers,node_gi toneRose
class node_user toneIndigo
```

## Components

### Skill runtime

- [CLI runner](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/cli.py): `clawbio/cli.py`
- [Skill entry contract](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/skill_entry.py): `clawbio/common/skill_entry.py`
- [Skill manifests](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/skill_manifest.py): `clawbio/common/skill_manifest.py`
- [Skill intents](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/skill_intents.py): `clawbio/skill_intents.py`
- [Privacy controls](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/privacy.py): `clawbio/privacy.py`

### Bioinformatics skills

- [Skill library](https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/skills): `skills`
- [Pharmacogenomics](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/pharmgx-reporter/pharmgx_reporter.py): `skills/pharmgx-reporter/pharmgx_reporter.py`
- [GWAS lookup](https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/skills/gwas-lookup): `skills/gwas-lookup`
- [Polygenic risk scores](https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/skills/gwas-prs): `skills/gwas-prs`
- [UK Biobank research](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/ukb-navigator/ukb_navigator.py): `skills/ukb-navigator/ukb_navigator.py`
- [Ancestry analysis](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/claw-ancestry-pca/ancestry_pca.py): `skills/claw-ancestry-pca/ancestry_pca.py`
- [scRNA embedding](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-embedding/scrna_embedding.py): `skills/scrna-embedding/scrna_embedding.py`
- [Embedding audit](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-embedding-audit/scrna_embedding_audit.py): `skills/scrna-embedding-audit/scrna_embedding_audit.py`
- [scRNA orchestrator](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/skills/scrna-orchestrator/scrna_orchestrator.py): `skills/scrna-orchestrator/scrna_orchestrator.py`

### Run outputs

- [Report generation](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/report.py): `clawbio/common/report.py`
- [Run audit](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/audit.py): `clawbio/common/audit.py`
- [Checksums](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/checksums.py): `clawbio/common/checksums.py`
- [Replay bundles](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/reproducibility.py): `clawbio/common/reproducibility.py`
- [Single-cell I/O](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/common/scrna_io.py): `clawbio/common/scrna_io.py`

### Agent integrations

- [Model providers](https://github.com/anishl135/clawbio-rare-variant-ranking/tree/feat/celltype-variant-weighter/clawbio/providers): `clawbio/providers`
- [Genome Insights client](https://github.com/anishl135/clawbio-rare-variant-ranking/blob/feat/celltype-variant-weighter/clawbio/gi/gi_client.py): `clawbio/gi/gi_client.py`

### Other components

- **Researcher or agent**

## Connections

- Researcher or agent → CLI runner: invokes (evidence: `README.md`)
- CLI runner → Skill library: runs skill (evidence: `clawbio/cli.py`)
- CLI runner → Skill entry contract: uses contract (evidence: `clawbio/cli.py`)
- CLI runner → Skill manifests: reads metadata (evidence: `clawbio/cli.py`)
- CLI runner → Skill intents: uses intents (evidence: `clawbio/cli.py`)
- CLI runner → Privacy controls: checks privacy (evidence: `clawbio/cli.py`)
- Skill manifests → Skill entry contract: validates entry (evidence: `clawbio/common/skill_manifest.py`)
- Report generation → Run audit: records run (evidence: `clawbio/common/report.py`)
- Report generation → Checksums: hashes inputs (evidence: `clawbio/common/report.py`)
- Report generation → Skill manifests: reads version (evidence: `clawbio/common/report.py`)
- Replay bundles → Checksums: writes hashes (evidence: `clawbio/common/reproducibility.py`)
- scRNA embedding → Single-cell I/O: uses I/O (evidence: `skills/scrna-embedding/scrna_embedding.py`)
- scRNA embedding → Report generation: writes report (evidence: `skills/scrna-embedding/scrna_embedding.py`)
- scRNA embedding → Replay bundles: writes replay bundle (evidence: `skills/scrna-embedding/scrna_embedding.py`)
- Embedding audit → Single-cell I/O: uses I/O (evidence: `skills/scrna-embedding-audit/scrna_embedding_audit.py`)
- Embedding audit → Report generation: writes report (evidence: `skills/scrna-embedding-audit/scrna_embedding_audit.py`)
- Embedding audit → Replay bundles: writes replay bundle (evidence: `skills/scrna-embedding-audit/scrna_embedding_audit.py`)
- scRNA orchestrator → Single-cell I/O: uses I/O (evidence: `skills/scrna-orchestrator/scrna_orchestrator.py`)
- scRNA orchestrator → Report generation: writes report (evidence: `skills/scrna-orchestrator/scrna_orchestrator.py`)
