Genomic Origin Through Taxonomic CHAllenge (GOTTCHA) v2 is a signature-based metagenomic profiler.
2.6K
This guide explains how to run GOTTCHA2 using Docker.
docker run --rm poeli/gottcha2:latest gottcha2 --help
Run GOTTCHA2 with your data by mounting volumes:
docker run --rm \
-v /path/to/database:/db:ro \
-v /path/to/reads:/reads:ro \
-v /path/to/output:/output \
poeli/gottcha2:latest \
gottcha2 profile \
-d /db/gottcha_db.species.fna \
-i /reads/sample.fastq \
-o /output \
-t 4
Volume mappings:
/db - Database directory (read-only recommended)/reads - Input FASTQ/FASTA files (read-only recommended)/output - Output directory for results (read-write)docker run --rm \
-v $(pwd)/database:/db:ro \
-v $(pwd)/data:/data \
poeli/gottcha2:latest \
gottcha2 profile \
-d /db/RefSeq-r220_BAVxH-cg/gottcha_db.species.fna \
-i /data/sample.fastq \
-o /data/results \
-t 8
If you already have aligned reads in SAM format:
docker run --rm \
-v $(pwd)/database:/db:ro \
-v $(pwd)/data:/data \
poeli/gottcha2:latest \
gottcha2 profile \
-s /data/aligned.sam \
-d /db/gottcha_db.species.fna \
-o /data/results
For Nanopore long reads, use the -np flag:
docker run --rm \
-v $(pwd)/database:/db:ro \
-v $(pwd)/data:/data \
poeli/gottcha2:latest \
gottcha2 profile \
-d /db/gottcha_db.species.fna \
-i /data/nanopore.fastq \
-o /data/results \
-np \
-t 8
docker run --rm \
-v $(pwd)/database:/db:ro \
-v $(pwd)/data:/data \
poeli/gottcha2:latest \
gottcha2 profile \
-s /data/aligned.sam \
-d /db/gottcha_db.species.fna \
-e 562,1280 \
-o /data/results
Generate results in different formats:
# CSV format
docker run --rm -v $(pwd):/data poeli/gottcha2:latest \
gottcha2 profile -d /data/db.fna -i /data/reads.fq -fm csv
# BIOM format
docker run --rm -v $(pwd):/data poeli/gottcha2:latest \
gottcha2 profile -d /data/db.fna -i /data/reads.fq -fm biom
Limit CPU and memory usage:
docker run --rm \
--cpus=4 \
--memory=8g \
-v $(pwd):/data \
poeli/gottcha2:latest \
gottcha2 profile -d /data/db.fna -i /data/reads.fq -t 4
Access the container interactively:
docker run --rm -it \
-v $(pwd):/data \
--entrypoint /bin/bash \
poeli/gottcha2:latest
Create a docker-compose.yml for easier management:
version: '3.8'
services:
gottcha2:
image: poeli/gottcha2:latest
build: .
volumes:
- ./database:/db:ro
- ./input:/input:ro
- ./output:/output
command: >
gottcha2 profile
-d /db/gottcha_db.species.fna
-i /input/sample.fastq
-o /output
-t 8
Run with:
docker-compose up
docker run --rm poeli/gottcha2:latest gottcha2 version
Check that minimap2 and samtools are available:
docker run --rm poeli/gottcha2:latest minimap2 --version
docker run --rm poeli/gottcha2:latest samtools --version
If you encounter permission errors with output files, ensure the output directory has proper permissions or run with user mapping:
docker run --rm \
--user $(id -u):$(id -g) \
-v $(pwd):/data \
poeli/gottcha2:latest \
gottcha2 profile -d /data/db.fna -i /data/reads.fq -o /data/out
/dataFor issues specific to Docker deployment, please check:
Content type
Image
Digest
sha256:dabf89f32…
Size
438.8 MB
Last updated
15 days ago
docker pull poeli/gottcha2