-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 906 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 906 Bytes
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
FROM continuumio/miniconda3:4.6.14
# Setup LDSC
COPY ldsc /ldsc
RUN conda env create -f /ldsc/environment.yml
RUN echo "source activate ldsc" > ~/.bashrc
# Compile bcftools because conda version has dependency problem
RUN apt-get update && apt-get install -y make gcc zlib1g-dev libbz2-dev lzma-dev lzma liblzma-dev
RUN curl -SL https://github.com/samtools/bcftools/releases/download/1.9/bcftools-1.9.tar.bz2 \
| tar -xvj \
&& bcftools-1.9/configure \
&& make -C bcftools-1.9 \
&& mv bcftools-1.9/bcftools /opt/conda/envs/ldsc/bin
RUN mkdir -p /home/bin
# Get clumping reference
RUN apt-get install -y unzip
RUN wget -O plink.zip http://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20181202.zip && mkdir -p /plink && mv plink.zip /plink && cd /plink && unzip plink.zip && mv plink /home/bin
ADD clump.py /home/bin
ADD ldsc.py /home/bin
# Path
ENV PATH /opt/conda/envs/ldsc/bin:/home/bin:$PATH