HUB
Sign inSign up
strelka logo

getwilds/strelka

Sponsored OSS

By Fred Hutch Data Science Lab

•Updated 30 days ago

Container image for Strelka variant caller in WILDS

Image
Data science
0

1.5K

getwilds/strelka repository overview

⁠Strelka

This directory contains Docker images for Strelka, a fast and accurate small variant caller optimized for analysis of germline variation in small cohorts and somatic variation in tumor/normal sample pairs.

⁠Available Versions

⁠Image Details

These Docker images are built from Ubuntu 22.04 and include:

  • Strelka v2.9.10: Fast and accurate small variant caller with optimized algorithms for germline and somatic variant detection
  • samtools v1.19.2: Suite of programs for interacting with high-throughput sequencing data
  • bcftools v1.19: Utilities for variant calling and manipulating VCF/BCF files
  • htslib v1.19.1: High-throughput sequencing data processing library
  • Python 2: Required runtime environment for Strelka workflow configuration scripts
  • Python 3: Available for additional scripting and analysis tasks

The images provide a complete environment for Strelka variant calling workflows with all necessary dependencies, built with version pinning and minimal package installation for security and reproducibility.

Platform Support: This image is available for linux/amd64 only. ARM64 (Apple Silicon) is not supported because Strelka only provides precompiled x86_64 binaries and building from source for ARM64 would require significant additional complexity.

⁠Usage

⁠Docker
docker pull getwilds/strelka:latest
# or
docker pull getwilds/strelka:2.9.10

# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/strelka:latest
⁠Singularity/Apptainer
apptainer pull docker://getwilds/strelka:latest
# or
apptainer pull docker://getwilds/strelka:2.9.10

# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/strelka:latest

⁠Example Commands

⁠Germline Variant Calling
# Configure germline workflow
docker run --rm -v /path/to/data:/data getwilds/strelka:latest \
  configureStrelkaGermlineWorkflow.py \
  --bam /data/sample.bam \
  --referenceFasta /data/reference.fa \
  --runDir /data/strelka_germline

# Run the analysis
docker run --rm -v /path/to/data:/data getwilds/strelka:latest \
  /data/strelka_germline/runWorkflow.py -m local -j 4
⁠Somatic Variant Calling (Tumor/Normal Pairs)
# Configure somatic workflow
docker run --rm -v /path/to/data:/data getwilds/strelka:latest \
  configureStrelkaSomaticWorkflow.py \
  --normalBam /data/normal.bam \
  --tumorBam /data/tumor.bam \
  --referenceFasta /data/reference.fa \
  --runDir /data/strelka_somatic

# Run the analysis
docker run --rm -v /path/to/data:/data getwilds/strelka:latest \
  /data/strelka_somatic/runWorkflow.py -m local -j 4
⁠Apptainer Examples
# Germline workflow configuration
apptainer run --bind /path/to/data:/data docker://getwilds/strelka:latest \
  configureStrelkaGermlineWorkflow.py \
  --bam /data/sample.bam \
  --referenceFasta /data/reference.fa \
  --runDir /data/strelka_germline

# Somatic workflow configuration
apptainer run --bind /path/to/data:/data docker://getwilds/strelka:latest \
  configureStrelkaSomaticWorkflow.py \
  --normalBam /data/normal.bam \
  --tumorBam /data/tumor.bam \
  --referenceFasta /data/reference.fa \
  --runDir /data/strelka_somatic

⁠Available Strelka Workflows

Strelka provides several workflow configuration scripts:

  • configureStrelkaGermlineWorkflow.py: Configure germline small variant calling
  • configureStrelkaSomaticWorkflow.py: Configure somatic small variant calling for tumor/normal pairs
  • configureStrelkaDenovoWorkflow.py: Configure de novo variant calling in family trios

Each workflow creates a run directory with a runWorkflow.py script that executes the actual analysis.

⁠Key Strelka Parameters

⁠Germline Workflow Options
  • --bam: Input BAM/CRAM file(s)
  • --referenceFasta: Reference genome in FASTA format
  • --runDir: Directory where the workflow will be configured and run
  • --region: Restrict analysis to specified region(s)
  • --exome: Set configuration defaults for exome sequencing
⁠Somatic Workflow Options
  • --normalBam: Normal sample BAM/CRAM file
  • --tumorBam: Tumor sample BAM/CRAM file
  • --referenceFasta: Reference genome in FASTA format
  • --runDir: Directory where the workflow will be configured and run
  • --region: Restrict analysis to specified region(s)
  • --exome: Set configuration defaults for exome sequencing
  • --callRegions: BED file specifying regions to call variants
⁠Runtime Options
  • -m local: Run workflow locally (single machine)
  • -j N: Number of parallel jobs to run
  • --quiet: Suppress workflow status updates

⁠Output Files

Strelka generates several output files in the specified run directory:

⁠Germline Analysis
  • results/variants/variants.vcf.gz: All variant calls
  • results/variants/genome.S1.vcf.gz: Filtered high-confidence variants
⁠Somatic Analysis
  • results/variants/somatic.snvs.vcf.gz: Somatic SNV calls
  • results/variants/somatic.indels.vcf.gz: Somatic indel calls
  • results/variants/germline.snvs.vcf.gz: Germline SNV calls
  • results/variants/germline.indels.vcf.gz: Germline indel calls

⁠Performance Considerations

  • Strelka is optimized for speed and can process whole genome samples in hours
  • Memory usage is typically low (< 2GB for most analyses)
  • CPU scaling is effective up to ~8-16 cores for most datasets
  • For large cohorts, consider using workflow managers like Nextflow or Snakemake

⁠Security Features

The Strelka Docker images include:

  • Multi-stage build that keeps compilers (build-essential) and -dev headers out of the final image
  • Pinned versions of all system packages for reproducibility
  • Minimal installation with only runtime dependencies (shared libraries, Python 2, and Python 3)

⁠Dockerfile Structure

The Dockerfile uses a multi-stage build to keep the final image minimal:

  1. Build stage: Uses Ubuntu 22.04 with build tools and dev headers to compile htslib v1.19.1, samtools v1.19.2, and bcftools v1.19 from source, and to download the Strelka v2.9.10 pre-compiled binaries
  2. Final stage: Uses a fresh Ubuntu 22.04 base with only the runtime libraries, Python 2 (required for Strelka), and Python 3
  3. Adds metadata labels for documentation and attribution
  4. Pins the versions of system dependencies in both stages
  5. Copies the compiled tools and Strelka from the build stage and refreshes the shared library cache
  6. Runs a smoke test to verify the Strelka, samtools, and bcftools binaries

This approach keeps compilers and development headers out of the final image, reducing its size and attack surface.

⁠Security Scanning and CVEs

These images are regularly scanned for vulnerabilities using Docker Scout. However, due to the nature of bioinformatics software and their dependencies, some Docker images may contain components with known vulnerabilities (CVEs).

Use at your own risk: While we strive to minimize security issues, these images are primarily designed for research and analytical workflows in controlled environments.

For the latest security information about this image, please check the CVEs_*.md files in this directory⁠, which are automatically updated through our GitHub Actions workflow. If a particular vulnerability is of concern, please file an issue⁠ in the GitHub repo citing which CVE you would like to be addressed.

⁠Source Repository

These Dockerfiles are maintained in the WILDS Docker Library⁠ repository.

⁠Additional Resources

⁠License

This Docker image packages open-source software. Strelka is distributed under the GPLv3 license.

Tag summary
Recent tags
Content type
Image
Digest
sha256:265de67d5…
Size
103.3 MB
Last updated
30 days ago
docker pull getwilds/strelka:latest