HUB
Sign inSign up
bowtie2 logo

getwilds/bowtie2

Sponsored OSS

By Fred Hutch Data Science Lab

•Updated about 1 month ago

Docker image for Bowtie 2 in Fred Hutch OCDO's WILDS

Image
Data science
0

10K+

getwilds/bowtie2 repository overview

⁠Bowtie 2

This directory contains Docker images for Bowtie 2, a fast and sensitive gapped read aligner for aligning sequencing reads to long reference sequences.

⁠Available Versions

⁠Image Details

These Docker images are built from Ubuntu 24.04 and include:

  • Bowtie 2 v2.5.4: A fast and sensitive gapped read aligner
  • Samtools v1.19: A suite of utilities for manipulating alignments in the SAM/BAM format
  • Perl: Required runtime dependency for the bowtie2 wrapper script
  • Python 3: Required runtime dependency for the bowtie2 wrapper script

The images include Samtools alongside Bowtie 2 for common alignment workflows (e.g., piping Bowtie 2 output directly to samtools view for BAM conversion).

⁠Citation

If you use Bowtie 2 in your research, please cite the original authors:

Langmead B, Salzberg SL. Fast gapped-read alignment with Bowtie 2.
Nature Methods. 2012;9(4):357-359.

Tool homepage: https://bowtie-bio.sourceforge.net/bowtie2/⁠

Publication: https://doi.org/10.1038/nmeth.1923⁠

⁠Usage

⁠Docker
# Pull the latest version
docker pull getwilds/bowtie2:latest

# Or pull a specific version
docker pull getwilds/bowtie2:2.5.4

# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/bowtie2:latest
⁠Singularity/Apptainer
# Pull the latest version
apptainer pull docker://getwilds/bowtie2:latest

# Or pull a specific version
apptainer pull docker://getwilds/bowtie2:2.5.4

# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/bowtie2:latest
⁠Example Commands
# Build a Bowtie 2 index from a reference FASTA file
docker run --rm -v /path/to/data:/data getwilds/bowtie2:latest \
  bowtie2-build /data/reference.fa /data/reference_index

# Align single-end reads to an indexed reference
docker run --rm -v /path/to/data:/data getwilds/bowtie2:latest \
  bowtie2 -x /data/reference_index -U /data/reads.fastq -S /data/aligned.sam

# Align paired-end reads
docker run --rm -v /path/to/data:/data getwilds/bowtie2:latest \
  bowtie2 -x /data/reference_index -1 /data/reads_1.fastq -2 /data/reads_2.fastq \
  -S /data/aligned.sam

# Align with local alignment mode and multiple threads
docker run --rm -v /path/to/data:/data getwilds/bowtie2:latest \
  bowtie2 --local -p 4 -x /data/reference_index -U /data/reads.fastq -S /data/aligned.sam

# Align and convert to sorted BAM in one step
docker run --rm -v /path/to/data:/data getwilds/bowtie2:latest \
  bash -c "bowtie2 -x /data/reference_index -U /data/reads.fastq | \
  samtools sort -o /data/aligned.sorted.bam && samtools index /data/aligned.sorted.bam"

# Alternatively using Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bowtie2:latest \
  bowtie2 -x /data/reference_index -U /data/reads.fastq -S /data/aligned.sam

# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data bowtie2_latest.sif \
  bowtie2-inspect /data/reference_index

⁠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 (with pinned versions) to download the pre-built Bowtie 2 binary for the target architecture and compile Samtools v1.19 from source
  2. Final stage: Uses a fresh Ubuntu 24.04 base with only the runtime dependencies (Perl, Python 3, and shared libraries) needed to run the tools
  3. Adds metadata labels for documentation and attribution
  4. Copies the Bowtie 2 and Samtools binaries from the build stage
  5. Runs a smoke test to verify both tools work on the target architecture

This reduces image size and attack surface by keeping compilers and dev headers out of the final image.

⁠Security Features

The Bowtie 2 Docker images include:

  • Multi-stage build that keeps compilers and dev headers out of the final image
  • Pinned versions for reproducibility
  • Minimal installation with only runtime dependencies

⁠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
Recent tags
Content type
Image
Digest
sha256:4cfc09ada…
Size
137.2 MB
Last updated
about 1 month ago
docker pull getwilds/bowtie2:latest