kemalandClaude Opus 5.5 83654ddaef
ci / test (3.12) (push) Failing after 9s
ci / test (3.13) (push) Failing after 11s
PGx validation on GSE165845: WGS-derived star truth, 2-fold masks, array-resolvable concordance
- scripts/pgx/wgs_star_truth.py: star alleles from the 1000G 30x phased panel with the DB definitions
  (wildcard-aware haplotype assignment; checked against GeT-RM on the demo CEPH individuals).
- validate_star_getrm.py: --all-genes, --individuals, --coverage (projection onto what the array can see);
  replicate_concordance.py.
- 120 individuals x 3 GSA v1 arrays: array-resolvable 1637/1710 (95.7 %), top 1223/1800 (chip lacks many
  defining variants), GeT-RM subset 28/35, replicates 99.2 % without the failed array (V2_pgx_star.md, K-029).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01814GKVzZVL3FuF3DeiZXhv
2026-09-29 19:00:34 +01:00

SimurgArray

Personal research toolkit for Illumina Infinium genotyping BeadChip data (IDAT → normalization → genotype calling → BAF/LRR → QC → VCF/PLINK; later CN/LOH, PGx, cluster training).

  • SIMURGARRAY_MASTER_PLAN.md — architecture, algorithms, roadmap
  • SIMURGARRAY_FUNCTIONAL_SPEC.md — 416 itemised requirements (CLI, inputs, outputs, QC, CN, PGx, methylation, edge cases)
  • docs/validation/ — per-phase validation reports · docs/known_unknowns.md — findings log · docs/research/ — background

Status

v1.1.0 (2026-09-28) — see CHANGELOG.md. IDAT → normalization → GenCall-equivalent genotype calling → GTC v5 → sample/control QC with an HTML report → plus-strand VCF/BCF → PLINK 1/2, bedGraph, final report; plus a differential-testing harness. Validation (docs/validation/):

Check Result
2141 vendor GTCs, 1000 Genomes Omni2.5 (--preset autocall-1.6.2) normalization bit-identical; GTCs byte-identical in 2138/2141
GSA demo vs gtc2vcf, GTCtoVCF, plink2 zero unexplained differences
1000 Genomes pedigrees (Omni2.5) 717/717 parent–offspring pairs; Mendel error median 0.031 %
360 GSA arrays (GSE165845) vs NYGC 30x WGS / GIAB HG001 concordance 0.9934 / 0.9985; replicates 0.9966

Commands: simurg inspect, ingest, normalize, genotype, qc controls|samples|contamination|relatedness|loci|report|suggest-thresholds, gtc-to-vcf, export plink|bedgraph|finalreport|locus-summary, compare. User guide: docs/user_guide.md; worked example: examples/gsa_demo.sh. P9 (performance) is done: optional Rust kernels, byte-identical outputs, ~80 GSA samples/min per server core (docs/validation/P9.md). P10 (packaging) is done: wheels, Docker image and conda recipes, verified on fresh x86_64 and aarch64 machines (docs/validation/P10.md). v2 in progress: methylation control QC (simurg methyl qc, docs/validation/V2_methylation.md); next CN/LOH, PGx, cluster training.

Quick start

uv venv && uv pip install -e ".[dev]"
uv run pytest tests/unit                  # no downloads needed
bash scripts/bootstrap_refs.sh            # reference open-source repos → refs/ (oracles)
bash scripts/fetch_data.sh p0             # ~1.4 GB of public test data → data/
bash scripts/make_oracle_gtcs.sh          # builds gtc2vcf, writes oracle GTCs
bash scripts/make_oracle_qc.sh            # locus-summary oracle (BeadArrayFiles, separate venv)
bash scripts/fetch_data.sh p6             # GRCh38 FASTA (~0.9 GB download, 3.1 GB unpacked)
bash scripts/make_oracle_vcf.sh           # gtc2vcf oracle VCF for the P6 tests
uv run pytest tests/oracle                # real-data acceptance tests (add -m "not slow" to skip the long ones)
uv run simurg inspect data/p0/gsa_v4_pgx/idats_Demo_36/idats_Demo_36/207895980019/207895980019_R03C01_Grn.idat
bash examples/gsa_demo.sh results/gsa_demo 6   # end-to-end run on 6 demo samples

Vendor data files are downloaded for personal research use only and are never committed. See THIRD_PARTY_NOTICES.md.

S
Description
SimurgArray — personal research toolkit for Illumina Infinium genotyping arrays (IDAT→GTC→VCF, QC, CN, PGx)
Readme MIT
6.2 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 89.8%
Shell 3.9%
JavaScript 3.5%
Rust 2.1%
CSS 0.3%
Other 0.3%