-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (51 loc) · 1.65 KB
/
Dockerfile
File metadata and controls
64 lines (51 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# sudo docker build -t kcleal/dysgu .
FROM --platform=linux/amd64 python:3.11-bullseye
MAINTAINER Kez Cleal clealk@cardiff.ac.uk
USER root
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install dysgu and required Python dependencies
RUN pip install --upgrade pip && \
pip install "superintervals>=0.2.10" && \
pip install dysgu
# Install samtools 1.18 for connveience
RUN wget https://github.com/samtools/samtools/releases/download/1.18/samtools-1.18.tar.bz2 && \
tar -xvf samtools-1.18.tar.bz2 && \
rm samtools-1.18.tar.bz2 && \
mv samtools-1.18 samtools && \
cd samtools && \
./configure && \
make -j$(nproc) && \
make install && \
cd ../
# Install bcftools 1.18 for connveience
RUN wget https://github.com/samtools/bcftools/releases/download/1.18/bcftools-1.18.tar.bz2 && \
tar -xvf bcftools-1.18.tar.bz2 && \
rm bcftools-1.18.tar.bz2 && \
mv bcftools-1.18 bcftools && \
cd bcftools && \
./configure && \
make -j$(nproc) && \
make install && \
cd ../
CMD ["/bin/sh"]
# Docker user guide
# -----------------
## Make an 'input_folder', put your bam file and reference genome inside:
# ./input_folder/
# sample.bam
# reference.fasta
# reference.fasta.fai
## Make an 'output_folder'
# mkdir output_folder
## Set up docker
# docker pull kcleal/dysgu
# docker run -it \
# --mount src="${PWD}"/input_folder,target=/input_folder,type=bind \
# --mount src="${PWD}"/output_folder,target=/output_folder,type=bind \
# kcleal/dysgu
# cd input_folder
## Run dysgu:
# dysgu run reference.fasta wd sample.bam > ../output_folder/sample.vcf
# exit