Container image for the use of Scanpy library for Single-Cell analysis in Python
772
This directory contains Docker images for Scanpy, a Python-based toolkit for analyzing single-cell gene expression data.
latest ( Dockerfile | Vulnerability Report )1.10.2 ( Dockerfile | Vulnerability Report )These Docker images are built from the Python 3.12 slim image and include:
The images are designed to be minimal and focused on Scanpy with its dependencies.
docker pull getwilds/scanpy:latest
# or
docker pull getwilds/scanpy:1.10.2
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/scanpy:latest
apptainer pull docker://getwilds/scanpy:latest
# or
apptainer pull docker://getwilds/scanpy:1.10.2
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/scanpy:latest
# example.py
import scanpy as sc
import matplotlib.pyplot as plt
# Load data
adata = sc.read_10x_mtx('/data/filtered_feature_bc_matrix/')
# Preprocess
sc.pp.filter_cells(adata, min_genes=200)
sc.pp.filter_genes(adata, min_cells=3)
sc.pp.normalize_per_cell(adata)
sc.pp.log1p(adata)
sc.pp.highly_variable_genes(adata, n_top_genes=2000)
# PCA and UMAP
sc.tl.pca(adata)
sc.pp.neighbors(adata)
sc.tl.umap(adata)
# Clustering
sc.tl.leiden(adata)
# Save results
adata.write('/data/results.h5ad')
# Plot
sc.pl.umap(adata, color='leiden', save='/data/umap.pdf')
Run the script with:
# Docker
docker run --rm -v /path/to/data:/data -v /path/to/script:/script getwilds/scanpy:latest python /script/example.py
# Apptainer
apptainer run --bind /path/to/data:/data,/path/to/script:/script docker://getwilds/scanpy:latest python /script/example.py
# Apptainer (local SIF file)
apptainer run --bind /path/to/data:/data,/path/to/script:/script scanpy_latest.sif python /script/example.py
The Dockerfile follows these main steps:
--no-cache-dir to minimize image sizeThese 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:4c50b06df…
Size
281.7 MB
Last updated
12 months ago
docker pull getwilds/scanpy