Illumina bridge

From ComeOnOliver/skillshub · View interactive version

Illumina bridge is an AI agent skill from the GitHub repository ComeOnOliver/skillshub. Import DRAGEN-exported Illumina result bundles into ClawBio for local tertiary analysis and downstream routing.

How to use this skill

Skill file

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.

Core Capabilities

  1. Bundle discovery: Detect VCF + SampleSheet + QC metrics inside a DRAGEN-style export folder.
  2. Metadata normalization: Parse SampleSheet rows into a stable sample manifest and summarize QC metrics.
  3. Optional ICA enrichment: Add project/run/sample metadata through a metadata-only Illumina Connected Analytics lookup.
  4. 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

  1. Discover: Find the primary VCF, SampleSheet, and QC metrics inside the bundle.
  2. Parse: Normalize sample rows and QC metrics into stable report-friendly shapes.
  3. Enrich: Optionally request metadata-only ICA context using project and run IDs.
  4. 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

  1. 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.
  2. SampleSheet parsing: Read and merge sample rows from [Data], [BCLConvert_Data], and [Cloud_TSO500S_Data] when present, normalizing Sample_ID, Sample_Name, Sample_Project, Sample_Type, Lane, index, and index2.
  3. QC normalization: Accept JSON, CSV, or DRAGEN MetricsOutput.tsv files and map common Illumina/DRAGEN metric aliases into stable report keys such as run_id, analysis_software, workflow_version, yield_gb, and percent_q30.
  4. 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.
  5. Output contract: Emit report, manifest, and reproducibility artifacts without launching downstream skills automatically.

Example Queries

Output Structure

output_directory/
├── report.md
├── result.json
├── tables/
│   └── sample_manifest.csv
└── reproducibility/
    ├── commands.sh
    ├── environment.yml
    └── checksums.sha256

Dependencies

Required:

Optional:

Safety

Integration with Bio Orchestrator

Trigger conditions:

Chaining partners:

Citations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.