Container image for BEDOPS - high-performance genomic interval operations toolkit in FH DaSL's WILDS
1.6K
This directory contains Docker images for BEDOPS, a high-performance genomic interval operations toolkit for working with BED files and other genomic data formats.
latest ( Dockerfile | Vulnerability Report )2.4.42 ( Dockerfile | Vulnerability Report )These Docker images are built from Ubuntu 24.04 and include:
BEDOPS is built from source to ensure proper compilation for the container environment. The images are designed for fast operations on BED files and include tools for file conversion, set operations, statistical analysis, and data manipulation.
BEDOPS is a suite of tools to address common questions raised in genomic studies — mostly with regard to overlap and proximity relationships between data sets. It aims to be scalable and flexible, facilitating the efficient and accurate analysis and management of large-scale genomic data.
Key Features:
docker pull getwilds/bedops:latest
# or
docker pull getwilds/bedops:2.4.42
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/bedops:latest
apptainer pull docker://getwilds/bedops:latest
# or
apptainer pull docker://getwilds/bedops:2.4.42
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/bedops:latest
BEDOPS provides numerous tools for genomic analysis. Here are some common examples:
# Docker
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
gtf2bed < /data/genes.gtf > /data/genes.bed
# Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bedops:latest \
gtf2bed < /data/genes.gtf > /data/genes.bed
# Docker
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
gff2bed < /data/annotations.gff > /data/annotations.bed
# Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bedops:latest \
gff2bed < /data/annotations.gff > /data/annotations.bed
# Docker
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
vcf2bed < /data/variants.vcf > /data/variants.bed
# Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bedops:latest \
vcf2bed < /data/variants.vcf > /data/variants.bed
# Union of two BED files
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bedops --union /data/file1.bed /data/file2.bed > /data/union.bed
# Intersection
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bedops --intersect /data/file1.bed /data/file2.bed > /data/intersect.bed
# Difference (elements in file1 not in file2)
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bedops --difference /data/file1.bed /data/file2.bed > /data/diff.bed
# Complement
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bedops --complement /data/file.bed > /data/complement.bed
# Count overlaps
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bedmap --count /data/regions.bed /data/features.bed > /data/overlap_counts.bed
# Calculate mean of scores
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bedmap --mean /data/regions.bed /data/scored_features.bed > /data/mean_scores.bed
# Docker
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
sort-bed /data/unsorted.bed > /data/sorted.bed
# Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bedops:latest \
sort-bed /data/unsorted.bed > /data/sorted.bed
# Docker
docker run --rm -v /path/to/data:/data getwilds/bedops:latest \
bam2bed < /data/alignments.bam > /data/alignments.bed
# Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/bedops:latest \
bam2bed < /data/alignments.bam > /data/alignments.bed
The image includes 80+ tools organized into several categories:
bedops - Set operations on BED files (union, intersection, difference, complement, etc.)bedmap - Map genomic intervals and apply operationsbedextract - Extract elements from BED files| Tool | Description |
|---|---|
gtf2bed | Convert GTF to BED format |
gff2bed | Convert GFF to BED format |
vcf2bed | Convert VCF to BED format |
bam2bed | Convert BAM to BED format |
sam2bed | Convert SAM to BED format |
wig2bed | Convert WIG to BED format |
psl2bed | Convert PSL to BED format |
gvf2bed | Convert GVF to BED format |
rmsk2bed | Convert RepeatMasker output to BED format |
convert2bed | General-purpose conversion utility |
sort-bed - Sort BED files efficientlyswitch-BEDOPS-binary-type - Switch between different BEDOPS build typesupdate-sort-bed-* - Migration and update utilitiesbed_bigwig_profile.py - Profile BigWig databed_build_windows.py - Build genomic windowsbed_complement.py - Complement operationsbed_count_by_interval.py - Count features by intervalbed_count_overlapping.py - Count overlapping featuresbed_coverage.py - Calculate coveragebed_coverage_by_interval.py - Coverage by intervalbed_diff_basewise_summary.py - Base-wise difference summarybed_extend_to.py - Extend elementsbed_intersect.py - Intersection operationsbed_intersect_basewise.py - Base-wise intersectionbed_merge_overlapping.py - Merge overlapping elementsbed_rand_intersect.py - Random intersectionbed_subtract_basewise.py - Base-wise subtractionFor complete documentation of all tools and their options, see the official BEDOPS documentation.
The Dockerfile follows these main steps:
/usr/local/bin/bedops --version)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.
See the CONTRIBUTING.md for guidelines on how to contribute to this project.
BEDOPS is distributed under the GNU General Public License v2. This Docker image is distributed under the MIT License. See the LICENSE file for details.
docker pull getwilds/bedops:latest