-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
36 lines (23 loc) · 1.27 KB
/
Dockerfile
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
FROM python:3.7.7
LABEL maintainer="Farzaneh Khajouei <[email protected]>" \
software="sctools v.1.0.0" \
description="A collection of tools for single cell data. Splitting fastq files based on cellbarcodes and other tools to compute metrics on single cell data using barcodes and UMIs."
RUN apt-get update && apt-get upgrade -y && apt-get install -y patch libhdf5-dev vim apt-utils
RUN mkdir /sctools/
COPY . /sctools
ARG htslib_version="1.13"
RUN cd /sctools/fastqpreprocessing &&\
wget https://github.com/khajoue2/libStatGen/archive/refs/tags/v1.0.15.broad.tar.gz &&\
wget https://github.com/samtools/htslib/releases/download/${htslib_version}/htslib-${htslib_version}.tar.bz2 &&\
tar -zxvf v1.0.15.broad.tar.gz &&\
tar -jxvf htslib-${htslib_version}.tar.bz2 &&\
mv libStatGen-1.0.15.broad libStatGen
RUN cd /sctools/fastqpreprocessing &&\
wget http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz &&\
tar -xvf gzstream.tgz
RUN cd /sctools/fastqpreprocessing &&\
make -C libStatGen
RUN cd /sctools/fastqpreprocessing && make -C htslib-${htslib_version}/ && make -C gzstream
RUN cd /sctools/fastqpreprocessing && mkdir bin obj && make install
RUN cp /sctools/fastqpreprocessing/bin/* /usr/local/bin/
WORKDIR usr/local/bin/sctools