Skip to main content

End-to-end WES and WGS examples

These examples use the bundled cbicall-core GATK 4.6 workflows. Complete the installation, install the resource bundle, and run cbicall doctor before starting.

1. Prepare paired FASTQ files​

Place the read pairs in one sample directory. Their names must share a prefix and distinguish R1 from R2:

CNAG999_exome/CNAG99901P_ex/
CNAG99901P_ex_S1_L001_R1_001.fastq.gz
CNAG99901P_ex_S1_L001_R2_001.fastq.gz

See Naming Conventions for supported file names and multi-lane samples.

2. Create the parameters YAML​

Create wes_single.yaml:

mode: single
pipeline: wes
workflow_backend: bash
software_stack: gatk-4.6
input_dir: CNAG999_exome/CNAG99901P_ex
genome: b37
cleanup_bam: false

workflow_backend can be bash, snakemake, nextflow, or cromwell for the bundled GATK 4.6 WES/WGS workflows. The selected backend must be installed and available to CBIcall.

Running WGS

Use a directory containing WGS FASTQ files and change pipeline to wgs. Select b37 or hg38 to match the intended WGS reference resources:

mode: single
pipeline: wgs
workflow_backend: bash
software_stack: gatk-4.6
input_dir: CNAG999_genome/CNAG99901P_wg
genome: hg38
cleanup_bam: false

3. Run CBIcall​

cbicall run -p wes_single.yaml -t 4

CBIcall prints the resolved workflow and run directory before launch. A successful run ends with the workflow log and the paths to run-report.json and run-report.html.

4. Inspect the outputs​

The generated run directory contains:

cbicall_bash_gatk-4.6_wes_single_b37_*/
01_bam/
02_varcall/
03_stats/
logs/
log.json
run-report.json
run-report.html

The principal files are:

FileUse
02_varcall/<id>.hc.QC.vcf.gzFinal filtered VCF.
02_varcall/<id>.hc.g.vcf.gzPer-sample gVCF for later cohort joint genotyping.
03_stats/<id>.coverage.txtLightweight coverage summary.
03_stats/<id>.sex.txtVCF-derived sex inference for QC.
run-report.htmlHuman-readable run and provenance report.

See Outputs for the complete file reference and Configuration Reference for all accepted YAML keys.