Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Dockerfile #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 21 additions & 51 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,61 +1,31 @@
FROM ubuntu:16.04
MAINTAINER Chong Simon Chu ([email protected]) (Initially by Soo Lee ([email protected]))
FROM debian:bullseye

# 1. general updates & installing necessary Linux components
RUN apt-get update -y && apt-get install -y \
bzip2 \
gcc \
git \
less \
libncurses-dev \
make \
time \
unzip \
vim \
wget \
zlib1g-dev \
liblz4-tool \
python3-pip
LABEL org.opencontainers.image.authors="Chong Simon Chu [email protected]"
LABEL org.opencontainers.image.contributors="Soo Lee [email protected]\
Alexander Solovyov [email protected]"

# conda and pysam
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh && bash Miniconda3-py38_4.10.3-Linux-x86_64.sh -p /miniconda -b
ENV PATH=/miniconda/bin:$PATH
RUN conda update -y conda \
&& rm Miniconda3-py38_4.10.3-Linux-x86_64.sh
RUN conda config --add channels r \
&& conda config --add channels bioconda \
&& conda install -c conda-forge libgcc-ng \
&& conda install -c bioconda samtools \
&& conda install -c bioconda bwa \
&& conda install pysam sortedcontainers numpy pandas scikit-learn -y
RUN apt-get update -y && apt-get install -y --no-install-recommends \
bzip2 gcc git less libncurses-dev make time unzip vim wget zlib1g-dev \
liblz4-tool python3 python3-pysam samtools bwa python3-pip \
python3-sortedcontainers python3-dev python3-setuptools \
python-is-python3

#install bamsnap
RUN pip install --no-cache-dir bamsnap
RUN pip install --no-cache-dir bamsnap numpy scipy pandas scikit-learn deep-forest

#install deep-forest
RUN pip install deep-forest

# download tools
WORKDIR /usr/local/bin
#COPY downloads.sh .
#RUN . downloads.sh

# set path
#ENV PATH=/usr/local/bin/bwa/:$PATH
#ENV PATH=/usr/local/bin/samtools/:$PATH
# clone the code
RUN mkdir -p /opt/xtea/annotation
WORKDIR /opt/xtea
ADD . /opt/xtea
RUN rm rep_lib_annotation.tar.gz && \
wget https://github.com/parklab/xTea/raw/master/rep_lib_annotation.tar.gz && \
tar -C /opt/xtea/annotation -xf rep_lib_annotation.tar.gz && \
rm rep_lib_annotation.tar.gz

# supporting UTF-8
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

# wrapper
COPY *.py *.sh ./
RUN chmod +x *.py

# copy the trained model for genotyping
COPY genotyping ./genotyping
ENV TERM=xterm
ENV PATH="/opt/xtea/bin:${PATH}"

# default command
CMD ["ls /usr/local/bin"]

#
CMD ["/bin/bash"]
11 changes: 8 additions & 3 deletions bin/xtea
Original file line number Diff line number Diff line change
Expand Up @@ -1286,8 +1286,13 @@ if __name__ == '__main__':
ncores = options.cores
sf_folder_rep1 = options.lib ##this is the lib folder path
sf_ref1=options.ref ####reference genome
sf_folder_xtea=options.xtea#

sf_folder_xtea=options.xtea
if not sf_folder_xtea:
# default to directory_of_this_script/../xtea
this_dirname = os.path.dirname(os.path.abspath(__file__))
parent_dirname = os.path.join(this_dirname, os.pardir)
sf_folder_xtea = os.path.abspath(os.path.join(parent_dirname,
"xtea"))
sf_folder_rep=sf_folder_rep1
sf_ref=sf_ref1
if options.decompress==True:
Expand Down Expand Up @@ -1344,4 +1349,4 @@ if __name__ == '__main__':

####
####
####
####
9 changes: 7 additions & 2 deletions bin/xtea_hg19
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,12 @@ if __name__ == '__main__':
sf_folder_rep1 = options.lib ##this is the lib folder path
sf_ref1=options.ref ####reference genome
sf_folder_xtea=options.xtea

if not sf_folder_xtea:
# default to directory_of_this_script/../xtea
this_dirname = os.path.dirname(os.path.abspath(__file__))
parent_dirname = os.path.join(this_dirname, os.pardir)
sf_folder_xtea = os.path.abspath(os.path.join(parent_dirname,
"xtea"))
sf_folder_rep=sf_folder_rep1
sf_ref=sf_ref1
if options.decompress==True:
Expand Down Expand Up @@ -1248,4 +1253,4 @@ if __name__ == '__main__':
#cp_compress_results(s_wfolder, l_rep_type, sample_id)

####
####
####