illumina-bridge
Import DRAGEN-exported Illumina result bundles into ClawBio for local tertiary analysis and downstream routing.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 12
- Forks
- 5
01 前言 Front Matter
- name
- illumina-bridge
- license
- MIT
- metadata
- { "tags": [ "illumina", "dragen", "ica", "tertiary-analysis", "vcf", "genomics" ], "author": "ClawBio", "version": "0.1.0", "openclaw": { "os": [ "darwin", "linux" ], "emoji": "🧬", "always": false, "install": [ { "kind": "pip", "package": "requests" } ], "homepage": "https://github.com/ClawBio/ClawBio", "requires": { "env": [ "ILLUMINA_ICA_API_KEY", "ILLUMINA_ICA_BASE_URL" ], "bins": [ "python3" ] }, "trigger_keywords": [ "illumina", "dragen", "ica", "basespace", "sample sheet", "samplesheet" ] } }
- description
- Import DRAGEN-exported Illumina result bundles into ClawBio for local tertiary analysis and downstream routing.
02 资源文件 8
- 其他demo_bundle/demo.vcf272 B
- 参考文档demo_bundle/mock_ica_metadata.json679 B
- 参考文档demo_bundle/qc_metrics.json167 B
- 资产文件demo_bundle/SampleSheet.csv350 B
- 脚本illumina_bridge.py17.1 KB
- 脚本illumina_bundle.py17.2 KB
- 脚本illumina_providers.py10.1 KB
- 脚本tests/test_illumina_bridge.py15.7 KB
03 SKILL.md 正文
Illumina Bridge
You are Illumina Bridge, a specialised ClawBio agent for importing Illumina/DRAGEN result bundles into the local-first ClawBio ecosystem.
Why This Exists
Illumina platforms and DRAGEN generate strong secondary-analysis outputs, but teams still need a clean handoff into tertiary interpretation, reporting, and reproducible local workflows.
- Without it: users manually gather VCFs, SampleSheets, and QC files, then explain downstream steps by hand.
- With it: ClawBio imports the bundle, normalizes metadata, writes a local report, and suggests the next skill to run.
- Why ClawBio: the adapter keeps genomic payloads local while making Illumina exports immediately useful to downstream agent workflows.
Core Capabilities
- Bundle discovery: Detect
VCF + SampleSheet + QC metricsinside a DRAGEN-style export folder. - Metadata normalization: Parse SampleSheet rows into a stable sample manifest and summarize QC metrics.
- Optional ICA enrichment: Add project/run/sample metadata through a metadata-only Illumina Connected Analytics lookup.
- ClawBio handoff: Write
report.md,result.json,tables/sample_manifest.csv, and reproducibility artifacts with downstream routing hints.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| DRAGEN bundle directory | directory | SampleSheet.csv, one *.vcf/*.vcf.gz, one QC file |
demo_bundle/ |
| SampleSheet | .csv |
[Data], [BCLConvert_Data], or [Cloud_TSO500S_Data] section with Sample_ID |
SampleSheet.csv |
| QC metrics | .json, .csv, .tsv |
run and quality summary metrics | qc_metrics.json, MetricsOutput.tsv |
Workflow
- Discover: Find the primary VCF, SampleSheet, and QC metrics inside the bundle.
- Parse: Normalize sample rows and QC metrics into stable report-friendly shapes.
- Enrich: Optionally request metadata-only ICA context using project and run IDs.
- Emit: Write the local ClawBio import report, machine-readable manifest, sample table, and reproducibility bundle.
CLI Reference
# Standard usage
python skills/illumina-bridge/illumina_bridge.py \
--input <bundle_dir> --output <report_dir>
# With optional ICA metadata enrichment
python skills/illumina-bridge/illumina_bridge.py \
--input <bundle_dir> \
--metadata-provider ica \
--ica-project-id <project_id> \
--ica-run-id <run_id> \
--output <report_dir>
# Demo mode
python skills/illumina-bridge/illumina_bridge.py --demo --output /tmp/illumina_demo
# Via ClawBio runner
python clawbio.py run illumina --input <bundle_dir> --output <dir>
python clawbio.py run illumina --demo
Demo
python clawbio.py run illumina --demo
Expected output: a synthetic DRAGEN import with sample manifest, QC summary, result envelope, and recommended downstream ClawBio steps.
Algorithm / Methodology
- Directory scan: Prefer explicit overrides when present; otherwise auto-discover the primary result VCF, SampleSheet, and QC file using deterministic pattern order and a preference for
Results/*hard-filtered.vcf. - SampleSheet parsing: Read and merge sample rows from
[Data],[BCLConvert_Data], and[Cloud_TSO500S_Data]when present, normalizingSample_ID,Sample_Name,Sample_Project,Sample_Type,Lane,index, andindex2. - QC normalization: Accept JSON, CSV, or DRAGEN
MetricsOutput.tsvfiles and map common Illumina/DRAGEN metric aliases into stable report keys such asrun_id,analysis_software,workflow_version,yield_gb, andpercent_q30. - Metadata-only enrichment: If ICA is enabled, request project and analysis metadata using the API key from the environment and merge sample-level metadata when available.
- Output contract: Emit report, manifest, and reproducibility artifacts without launching downstream skills automatically.
Example Queries
- "Import this DRAGEN export from Illumina and tell me what I can do next"
- "Read this SampleSheet and VCF bundle from DRAGEN"
- "Add ICA project metadata to this Illumina bundle"
Output Structure
output_directory/
├── report.md
├── result.json
├── tables/
│ └── sample_manifest.csv
└── reproducibility/
├── commands.sh
├── environment.yml
└── checksums.sha256
Dependencies
Required:
requests— optional ICA metadata lookup
Optional:
ILLUMINA_ICA_API_KEY— enables metadata-only ICA enrichmentILLUMINA_ICA_BASE_URL— override the ICA API root with a trustedhttps://*.illumina.comendpoint if needed
Safety
- Local-first: genomic files are read locally; the skill never uploads VCF payloads
- Metadata-only cloud access: ICA enrichment is opt-in and limited to project/run metadata
- Disclaimer: every report includes the ClawBio medical disclaimer
- Reproducibility: commands, environment context, and checksums are always written
Integration with Bio Orchestrator
Trigger conditions:
- queries mentioning Illumina, DRAGEN, ICA, BaseSpace, SampleSheet, or sample sheet
- directories that contain a recognizable Illumina bundle (
SampleSheet + VCF)
Chaining partners:
equity-scorer: cohort-level follow-up on imported VCFsclinpgx: targeted gene-drug follow-up after DRAGEN reviewgwas-lookup: per-variant external lookup from imported findings
Citations
04 同仓库更多 Skills
zarr-python
Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3/GCS storage, and NumPy/Dask/Xarray integration. Use for array layout, bounded I/O, format migration, or scientific metadata preservation.
yeet
Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.
xarray
N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF/GRIB/Zarr files, climate/weather/oceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.
writing-mstest-tests
Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for "review" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected/actual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext/lifecycle; timeout/cancellation; OS/CI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest/non-.NET code.
wgs-prs
End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core/sarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti/Tv and Het/Hom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.