Sign inSign up
bcftools logo

getwilds/bcftools

Sponsored OSS

By Fred Hutch Data Science Lab

•Updated 23 days ago

Docker image for the use of bcftools in Fred Hutch OCDO's WILDS

Image
Data science
0

10K+

getwilds/bcftools repository overview

⁠BCFtools

This directory contains Docker images for BCFtools, a set of utilities for variant calling and manipulating VCF/BCF files.

⁠Available Versions

⁠Image Details

These Docker images are built from Ubuntu 24.04 and include:

  • BCFtools: A set of utilities for variant calling and manipulating files in the Variant Call Format (VCF) and its binary counterpart BCF

The images are designed to be minimal and focused on a specific version of BCFtools with its dependencies.

⁠Usage

⁠Docker
docker pull getwilds/bcftools:latest
# or
docker pull getwilds/bcftools:1.19
# or
docker pull getwilds/bcftools:1.11

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

# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/bcftools:latest
⁠Example Commands
# Call variants
docker run --rm -v /path/to/data:/data getwilds/bcftools:latest bcftools mpileup -f /data/reference.fa /data/aligned.bam | bcftools call -mv -Ob -o /data/calls.bcf

# Convert BCF to VCF
docker run --rm -v /path/to/data:/data getwilds/bcftools:latest bcftools view /data/calls.bcf > /data/calls.vcf

# Filter variants
docker run --rm -v /path/to/data:/data getwilds/bcftools:latest bcftools filter -i 'QUAL>20' /data/calls.vcf > /data/filtered.vcf

# Alternatively using Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bcftools:latest bcftools mpileup -f /data/reference.fa /data/aligned.bam | bcftools call -mv -Ob -o /data/calls.bcf

# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data bcftools_latest.sif bcftools mpileup -f /data/reference.fa /data/aligned.bam | bcftools call -mv -Ob -o /data/calls.bcf

⁠Security Features

The BCFtools Docker images include:

  • Multi-stage build that keeps compilers and development headers out of the final image
  • Dynamic versioning for all dependencies to ensure the latest security patches
  • Minimal installation with only the runtime libraries required by BCFtools
  • Smoke test to verify the BCFtools installation

⁠Dockerfile Structure

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

  1. Build stage: Uses Ubuntu 24.04 with build tools and dev headers to compile BCFtools from source
  2. Final stage: Uses a fresh Ubuntu 24.04 base with only the runtime libraries needed to run the compiled binary
  3. Adds metadata labels for documentation and attribution
  4. Dynamically determines and pins the latest security-patched versions of dependencies in both stages
  5. Copies the compiled BCFtools binary (and plugins) from the build stage
  6. Runs a smoke test to verify the BCFtools installation

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.

Tag summary

Content type

Image

Digest

sha256:a04bc732e…

Size

37.3 MB

Last updated

23 days ago

docker pull getwilds/bcftools