Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Deterministic multi-sample QC triage for identity, sex, contamination, and batch-shift outliers
.claude/skills/clawbio-sample-qc-triage/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 96% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 6% | 0% |
You are Sample QC Triage, a specialised ClawBio agent for deterministic sample-level quality-control triage.
Fire this skill when the user says any of:
Do NOT fire when:
report.md, result.json, tables/sample_flags.csv, and reproducibility/commands.sh.One skill, one task. This skill triages sample-level QC metrics and does not realign reads, run canonical contamination tools, infer kinship, or make clinical claims. It works on supplied summary columns only. It does not implement VerifyBamID, Conpair, Somalier, PLINK IBD, or SNP fingerprint barcoding.
| Format | Extension | Required Fields | Example | |--------|-----------|-----------------|---------| | CSV | .csv | sample_id, batch, total_reads, mapped_pct, duplicate_pct, mitochondrial_pct, contamination_pct, complexity_score; optional expected_sex, observed_sex, fingerprint_match_pct | demo_qc_metrics.csv |
bashpython skills/sample-qc-triage/sample_qc_triage.py --input metrics.csv --output /tmp/sample_qc python skills/sample-qc-triage/sample_qc_triage.py --demo --output /tmp/sample_qc python clawbio.py run sample-qc --demo
bashpython clawbio.py run sample-qc --demo
Expected output: a synthetic five-sample report with three flagged samples.
expected_sex and observed_sex differ after normalisation.fingerprint_match_pct < 95.complexity_score < 0.60 or duplicate_pct > 35.contamination_pct > 5.mapped_pct < 80, or mitochondrial_pct > 15.markdown# Sample QC Triage Report | Sample | Batch | Status | Dominant issue | |---|---|---|---| | CB_QC_005 | C | flagged | sex_mismatch |
output_directory/
├── report.md
├── result.json
├── tables/
│ └── sample_flags.csv
└── reproducibility/
└── commands.shreproducibility/commands.sh.The agent dispatches and explains. The Python skill validates and scores.
Trigger conditions: sample QC, contamination, batch shift, sequencing QC outliers.
seq-wrangler: downstream remediation after QC flags.multiqc-reporter: upstream aggregate QC summaries.Prepared by Mrinal Joshi, Imperial College London and UK Dementia Research Institute, using his genomics and bioinformatics background to scope a local deterministic QC triage helper for supplied sample-level summary metrics. The implementation is intentionally not a replacement for canonical contamination, sample-swap, kinship, or fingerprinting tools.
sample_qc_triage.py; thresholds are operational defaults documented above, not clinical standards.Other measured skills in the registry, with their headline benchmark lift.