HUB
Sign inSign up
hisat2 logo

getwilds/hisat2

Sponsored OSS

By Fred Hutch Data Science Lab

•Updated about 1 month ago

Docker image for HISAT2 alignment tool in Fred Hutch OCDO's WILDS

Image
Data science
0

1.8K

getwilds/hisat2 repository overview

⁠hisat2

This directory contains Docker images for HISAT2, a fast and sensitive alignment program for mapping NGS reads to a population of genomes.

⁠Available Versions

⁠Image Details

These Docker images are built from Ubuntu 24.04 and include:

  • HISAT2 v2.2.1: A graph-based alignment tool for next-generation sequencing reads
  • Python 3: Required for HISAT2 indexing and some analysis scripts

HISAT2 is compiled in a separate build stage, so compilers and development headers are not present in the final images.

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

⁠Platform Availability

Note: This image is only built for linux/amd64 architecture. HISAT2's build system contains hardcoded x86-specific compiler flags that are not compatible with ARM64 platforms.

⁠Usage

⁠Docker
docker pull getwilds/hisat2:latest
# or
docker pull getwilds/hisat2:2.2.1

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

# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/hisat2:latest
⁠Example Commands
# Building a genome index
docker run --rm -v /path/to/data:/data getwilds/hisat2:latest hisat2-build -p 4 /data/reference.fa /data/reference_index

# Aligning reads to a genome
docker run --rm -v /path/to/data:/data getwilds/hisat2:latest hisat2 -x /data/reference_index -1 /data/reads_1.fq -2 /data/reads_2.fq -S /data/output.sam

# Alternatively using Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/hisat2:latest hisat2-build -p 4 /data/reference.fa /data/reference_index

# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data hisat2_latest.sif hisat2 -x /data/reference_index -1 /data/reads_1.fq -2 /data/reads_2.fq -S /data/output.sam

⁠Security Features

The HISAT2 Docker images include:

  • Dynamic versioning for dependencies to ensure the latest security patches
  • Pinned versions for reproducibility
  • Git-based source code checkout with specific version tagging
  • Minimal installation with only required dependencies
  • Multi-stage build that keeps compilers and dev headers out of the final image
⁠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.

⁠Dockerfile Structure

The Dockerfile uses a multi-stage build:

Build stage:

  1. Uses Ubuntu 24.04 as the base image
  2. Installs build tools and development headers (with pinned versions)
  3. Clones the HISAT2 repository from GitHub at a specific version and builds it from source

Final stage:

  1. Starts from a fresh Ubuntu 24.04 base image
  2. Adds metadata labels for documentation and attribution
  3. Installs only the runtime dependencies (Python 3 and zlib)
  4. Copies the compiled HISAT2 from the build stage and adds it to the system PATH
  5. Runs a smoke test to verify the install

This approach reduces image size and attack surface by excluding build tools from the final image.

⁠Source Repository

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

Tag summary
Recent tags
Content type
Image
Digest
sha256:b9792808a…
Size
69 MB
Last updated
about 1 month ago
docker pull getwilds/hisat2:latest