samtools

getwilds/samtools Docker Image

用于处理高通量测序数据的Samtools工具套件Docker镜像,支持SAM/BAM格式文件操作(如转换、排序、索引等),包含Bedtools工具,适用于基因组数据分析场景。

下载次数: 0状态:社区镜像维护者:getwilds仓库类型:镜像最近更新:
下载命令
点击查看

Samtools

This directory contains Docker images for Samtools, a suite of programs for interacting with high-throughput sequencing data.

Available Versions

  • latest ( https://github.com/getwilds/wilds-docker-library/blob/main/samtools/Dockerfile_latest | https://github.com/getwilds/wilds-docker-library/blob/main/samtools/CVEs_latest.md )
  • 1.19 ( https://github.com/getwilds/wilds-docker-library/blob/main/samtools/Dockerfile_1.19 | https://github.com/getwilds/wilds-docker-library/blob/main/samtools/CVEs_1.19.md )
  • 1.11 ( https://github.com/getwilds/wilds-docker-library/blob/main/samtools/Dockerfile_1.11 | https://github.com/getwilds/wilds-docker-library/blob/main/samtools/CVEs_1.11.md )
  • 1.10 ( https://github.com/getwilds/wilds-docker-library/blob/main/samtools/Dockerfile_1.10 | https://github.com/getwilds/wilds-docker-library/blob/main/samtools/CVEs_1.10.md )

Image Details

These Docker images are built from Ubuntu 24.04 and include:

  • Samtools: A suite of utilities for manipulating alignments in the SAM/BAM format
  • Bedtools: A powerful toolset for genome arithmetic

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

Usage

Docker

bash
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

Singularity/Apptainer

bash
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

Example Commands

bash
# 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

Important Note on Temporary Files

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:

bash
# 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

Dockerfile Structure

The Dockerfile follows these main steps:

  1. Uses Ubuntu 24.04 as the base image
  2. Adds metadata labels for documentation and attribution
  3. Dynamically determines and pins the latest security-patched versions of dependencies
  4. Downloads and builds Samtools from source
  5. Includes Bedtools for additional functionality
  6. Performs cleanup to minimize image size

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 https://github.com/getwilds/wilds-docker-library/blob/main/samtools, which are automatically updated through our GitHub Actions workflow. If a particular vulnerability is of concern, please file an https://github.com/getwilds/wilds-docker-library/issues in the GitHub repo citing which CVE you would like to be addressed.

Source Repository

These Dockerfiles are maintained in the https://github.com/getwilds/wilds-docker-library repository.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 samtools 镜像标签

docker pull docker.xuanyuan.run/getwilds/samtools:<标签>

DockerHub 原生拉取命令

docker pull getwilds/samtools:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告