Docker image for the use of Samtools in FH DaSL's WILDS
10K+
This directory contains Docker images for Samtools, a suite of programs for interacting with high-throughput sequencing data.
latest ( Dockerfile | Vulnerability Report )1.19 ( Dockerfile | Vulnerability Report )1.11 ( Dockerfile | Vulnerability Report )1.10 ( Dockerfile | Vulnerability Report )These Docker images are built from Ubuntu 24.04 and include:
The images are designed to be minimal and focused on a specific version of Samtools with its dependencies.
docker pull getwilds/samtools:latest
# or
docker pull getwilds/samtools:1.19
# or
docker pull getwilds/samtools:1.11
# or
docker pull getwilds/samtools:1.10
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/samtools:latest
apptainer pull docker://getwilds/samtools:latest
# or
apptainer pull docker://getwilds/samtools:1.19
# or
apptainer pull docker://getwilds/samtools:1.11
# or
apptainer pull docker://getwilds/samtools:1.10
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/samtools:latest
# Convert SAM to BAM
docker run --rm -v /path/to/data:/data getwilds/samtools:latest samtools view -bS /data/input.sam > /data/output.bam
# Sort BAM file
docker run --rm -v /path/to/data:/data getwilds/samtools:latest samtools sort /data/input.bam -o /data/sorted.bam
# Index BAM file
docker run --rm -v /path/to/data:/data getwilds/samtools:latest samtools index /data/sorted.bam
# Alternatively using Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/samtools:latest samtools view -bS /data/input.sam > /data/output.bam
# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data samtools_latest.sif samtools sort /data/input.bam -o /data/sorted.bam
For larger file sizes (>30GB), Samtools saves intermediate files to the /tmp directory by default. On regulated HPC machinery, that's not always possible due to permissions issues. For these scenarios, we recommend using Samtools v1.19+ and providing a custom temp directory via the -T option for a location you are confident you have access to.
Example with custom temp directory:
# Sort large BAM file with custom temp directory
docker run --rm -v /path/to/data:/data -v /path/to/temp:/temp \
getwilds/samtools:1.19 samtools sort /data/large_input.bam -o /data/sorted.bam -T /temp/sort_tmp
The Dockerfile follows these main steps:
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.
These Dockerfiles are maintained in the WILDS Docker Library repository.
Content type
Image
Digest
sha256:c8af2744e…
Size
184 MB
Last updated
11 months ago
docker pull getwilds/samtools