How johnegarza/chromoseq works
Purpose and execution modes
ChromoSeq is a genomics analysis workflow for chromosomal structural variants/translocations and copy-number-related reporting on hg38. Its primary orchestration is WDL, with two deployment modes:
• Local MGI/LSF execution: Chromoseq.v9.wdl, configured by application.new.conf, launched from CRAM through LaunchChromoSeqFromCram.sh.
• Illumina BaseSpace/Cromwell execution: Chromoseq_basespace.v9.wdl, launched/monitored by launch_and_monitor_chromoseq.pl.
Workflow orchestration boundary
Chromoseq.v9.wdl is the authoritative local pipeline graph and carries runtime attributes for distributed LSF execution. Chromoseq_basespace.v9.wdl is a deployment variant with runtime attributes removed because BaseSpace runs the workflow on one provisioned node/container. basespace_cromwell.config is the Cromwell-side infrastructure configuration.
BaseSpace application integration
BaseSpace UI inputs and launch command construction are externally managed app metadata:
• form
• callbacks.js
• launch_and_monitor_chromoseq.pl
The launcher bridges MGI operations to BaseSpace CLI/API resources, including prebuilt DRAGEN reference and FASTA app-result identifiers. This is an operational boundary: these files require manual synchronization with the BaseSpace developer portal.
Variant and structural-event processing
The workflow’s event-processing/reporting layer is represented by:
• ChromoSeqReporter.hg38.pl
• Downstream.pm
• Wildtype.pm
These Perl components likely consolidate pipeline outputs into chromosome-sequencing results, apply downstream interpretation logic, and identify wild-type/supporting calls. BlatContigs.pl and pslScore.pl support contig alignment/scoring for structural-event resolution.
Read evidence, annotation, and QC enrichment
Post-calling enrichment is implemented through:
• addReadCountsToVcfCRAM.py
• add_annotations_to_table_helper.py
• docm_and_coding_indel_selection.pl
These stages attach CRAM-backed read evidence, annotate result tables, and select clinically relevant coding/DoCM indels. The boundary is between raw caller outputs and report-ready, evidence-bearing variants.
Copy-number analysis and reference assets
CNV/coverage analysis relies on R plus committed genomic reference data:
• runIchorCNA.R
• nextera_hg38_500kb_median_normAutosome_median.rds_median.n9.rds
• GeneCoverageRegions.bed
Additional hg38 resources define sequence dictionaries/FASTA indexes, blacklisted regions, gene regions, and known translocation targets: all_sequences.dict, all_sequences.fa.bed.gz, hg38.blacklist.merged.bed, and ChromoSeq.translocations.fixed.v3.sorted.hg38.bedpe.
Runtime packaging
Dockerfile defines the analysis environment expected by workflow tasks. The repository combines WDL orchestration, Perl/Python/R analysis stages, CRAM/FASTA/bed-based genomics inputs, LSF for local distributed execution, and BaseSpace/Cromwell for managed execution.
Main entry points: Chromoseq.v9.wdl Authoritative local workflow · Chromoseq_basespace.v9.wdl BaseSpace workflow · ChromoSeqReporter.hg38.pl Event reporting · LaunchChromoSeqFromCram.sh Local launcher
Components 21
Local MGI / LSF
- Input CRAM
- Local launcher
LaunchChromoSeqFromCram.sh - LSF configuration
application.new.conf - Authoritative local workflow · Distributed LSF pipeline graph and task runtime attributes.
Chromoseq.v9.wdl
BaseSpace / Cromwell
- BaseSpace app metadata · Must stay synchronized with the BaseSpace developer portal.
form - BaseSpace callbacks
callbacks.js - BaseSpace launcher · Bridges MGI operations to BaseSpace CLI/API resources.
launch_and_monitor_chromoseq.pl - BaseSpace workflow · Single-node deployment variant without task runtime attributes.
Chromoseq_basespace.v9.wdl - Cromwell infrastructure
basespace_cromwell.config
Analysis stages
- Event reporting · Consolidates structural-event outputs into chromosome-sequencing results.
ChromoSeqReporter.hg38.pl - Interpretation logic · Applies downstream and wild-type/supporting-call logic.
Downstream.pm - Contig resolution
BlatContigs.pl - CRAM read evidence
addReadCountsToVcfCRAM.py - Report annotation
add_annotations_to_table_helper.py - Clinical indel selection
docm_and_coding_indel_selection.pl - CNV / coverage analysis
runIchorCNA.R
hg38 reference assets
- CNV baseline
nextera_hg38_500kb_median_normAutosome_median.rds_median.n9.rds - Gene coverage regions
GeneCoverageRegions.bed - Translocation targets
ChromoSeq.translocations.fixed.v3.sorted.hg38.bedpe - hg38 genome resources · Sequence indexes, blacklist, and genomic region assets.
all_sequences.dict
Other components
- Analysis environment
Dockerfile
Connections 23
- Input CRAM → Local launcher: starts from
- Local launcher → LSF configuration: uses
- Local launcher → Authoritative local workflow: launches
- BaseSpace app metadata → BaseSpace callbacks: drives
- BaseSpace callbacks → BaseSpace launcher: invokes
- BaseSpace launcher → BaseSpace workflow: launches and monitors
- Cromwell infrastructure → BaseSpace workflow: configures execution
- Authoritative local workflow → Analysis environment: runs tasks in
- BaseSpace workflow → Analysis environment: uses analysis environment
- Authoritative local workflow → Event reporting: orchestrates
- Authoritative local workflow → CRAM read evidence: orchestrates
- Authoritative local workflow → CNV / coverage analysis: orchestrates
- BaseSpace workflow → Event reporting: deployment variant runs
- Event reporting → Interpretation logic: applies
- Event reporting → Contig resolution: resolves events with
- CRAM read evidence → Report annotation: enriches before
- Report annotation → Clinical indel selection: selects reportable indels
- Clinical indel selection → Event reporting: supplies report-ready calls
- CNV baseline → CNV / coverage analysis: normalization reference
- Gene coverage regions → CNV / coverage analysis: coverage targets
- Translocation targets → Contig resolution: known targets
- hg38 genome resources → Authoritative local workflow: genome inputs
- hg38 genome resources → BaseSpace workflow: genome inputs