Sign inSign up

getwilds/sourmash

Sponsored OSS

By Fred Hutch Data Science Lab

•Updated about 1 year ago

Docker image for the use of Sourmash in FH DaSL's WILDS

Image
Data science
0

1.9K

getwilds/sourmash repository overview

⁠sourmash

This directory contains Docker images for sourmash, a tool for computing and comparing MinHash signatures for DNA sequences.

⁠Available Versions

⁠Image Details

These Docker images are built from Conda Forge Miniforge base image and include:

  • Python 3.10: Core programming language
  • sourmash-minimal v4.8.2: A tool for rapid genome and metagenome comparison using MinHash sketches
  • samtools v1.19: A suite of utilities for manipulating alignments in the SAM/BAM/CRAM format

The images are designed to be minimal and focused on a specific version of sourmash with its dependencies, optimized for metagenomics and genomic comparison tasks.

⁠Usage

⁠Docker
docker pull getwilds/sourmash:latest
# or
docker pull getwilds/sourmash:4.8.2

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

# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/sourmash:latest
⁠Example Commands
# Compute a signature for a genome
docker run --rm -v /path/to/data:/data getwilds/sourmash:latest sourmash compute /data/genome.fa -o /data/genome.sig

# Compare signatures
docker run --rm -v /path/to/data:/data getwilds/sourmash:latest sourmash compare /data/*.sig -o /data/comparison.matrix

# Generate a plot from comparison
docker run --rm -v /path/to/data:/data getwilds/sourmash:latest sourmash plot /data/comparison.matrix -o /data/comparison.plot

# Alternatively using Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/sourmash:latest sourmash compute /data/genome.fa -o /data/genome.sig

# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data sourmash_latest.sif sourmash compare /data/*.sig -o /data/comparison.matrix

⁠Security Features

The sourmash Docker images include:

  • Installation through Conda to ensure properly built binaries
  • Pinned versions for reproducibility
  • Conda environment cleanup to minimize image size
  • Non-interactive Conda configuration
⁠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 follows these main steps:

  1. Uses Conda Forge Miniforge as the base image
  2. Adds metadata labels for documentation and attribution
  3. Installs packages need for Samtools installation
  4. Installs Samtools
  5. Configures Conda to run in non-interactive mode
  6. Sets up the shell for proper conda environment activation
  7. Installs Python 3.10 and sourmash-minimal with specific versions
  8. Cleans Conda caches to minimize image size
  9. Sets the default entrypoint to bash

⁠Source Repository

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

Tag summary

Content type

Image

Digest

sha256:fdac988f2…

Size

447.6 MB

Last updated

about 1 year ago

docker pull getwilds/sourmash