Skip to content

Commit

Permalink
Merge commit '2352fcacf9dbb47f8f5ae309cf7f2846bf1f622d'
Browse files Browse the repository at this point in the history
  • Loading branch information
cchlanger committed Jun 2, 2021
2 parents 60366f3 + 2352fca commit cfb6d75
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 112 deletions.
62 changes: 10 additions & 52 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,49 +1,20 @@
FROM docker.io/ubuntu:bionic
ARG DEBIAN_FRONTEND=noninteractive
# Can not use /temp on our cluster
WORKDIR /temp
COPY . /temp/install/
FROM continuumio/miniconda3:4.9.2
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

# Update and create base image
RUN apt-get update -y &&\
apt-get install apt-utils -y &&\
apt-get install -y file bzip2 default-jre gcc g++ git make ssh unzip wget libz-dev iproute2 curl iputils-ping &&\
apt-get install -y gcc g++ make libz-dev &&\
apt-get clean

# Install Anaconda
SHELL ["/bin/bash", "-c"]
RUN wget -q https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh &&\
bash Anaconda3-2019.10-Linux-x86_64.sh -b -p /home/anaconda3
ENV PATH="/home/anaconda3/bin:${PATH}"
RUN conda update -y conda &&\
conda update -y conda-build

# Install OnTAD
RUN cd /opt && git clone https://github.com/anlin00007/OnTAD.git &&\
cd OnTAD &&\
git checkout 3da5d9a4569b1f316d4508e60781f22f338f68b1
RUN cd /opt/OnTAD/src && make clean && make
ENV PATH="/opt/OnTAD/src:${PATH}"

# Install fastqc
RUN cd /opt && wget http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.9.zip &&\
unzip /opt/fastqc_v0.11.9.zip &&\
chmod +x /opt/FastQC/fastqc
ENV PATH="/opt/FastQC:${PATH}"

# Install ngs_base environment
RUN conda env create -f /temp/install/ngs_base.yml
# Install flask environment
RUN conda env create -f /temp/install/flask.yml
ADD ngs_base.yml /temp/install/

WORKDIR /home

# Install bioframe, cooltools and pairlib as well as our own tools
RUN source activate ngs_base &&\
# Creates a file into the container that logs which version conda installs and all pip installs
conda list > software_versions_conda.txt &&\
# install mamba
RUN conda install mamba -n base -c conda-forge &&\
mamba env update -n base --f /temp/install/ngs_base.yml &&\
mamba list > software_versions_conda.txt &&\
# Install mirnylabtools
# bioframe
githash=`git ls-remote https://github.com/mirnylab/bioframe.git | grep HEAD | cut -f 1` &&\
Expand All @@ -56,21 +27,8 @@ RUN source activate ngs_base &&\
# pairlib
githash=`git ls-remote https://github.com/mirnylab/pairlib.git | grep HEAD | cut -f 1` &&\
pip install git+git://github.com/mirnylab/pairlib@$githash &&\
echo "# pip install git+git://github.com/mirnylab/pairlib@$githash" >> software_versions_git.txt &&\
# Install gerlich repos and safe the latest git hash
# ngs
githash=`git ls-remote https://github.com/gerlichlab/ngs.git | grep HEAD | cut -f 1` &&\
pip install git+git://github.com/gerlichlab/ngs@$githash &&\
echo "# pip install git+git://github.com/gerlichlab/ngs@$githash" >> software_versions_git.txt &&\
# cooler_ontad
githash=`git ls-remote https://github.com/cchlanger/cooler_ontad.git | grep HEAD | cut -f 1` &&\
pip install git+git://github.com/cchlanger/cooler_ontad@$githash &&\
echo "# pip install git+git://github.com/cchlanger/cooler_ontad@$githash" >> software_versions_git.txt &&\
# higlassup
githash=`git ls-remote https://github.com/Mittmich/higlassupload.git | grep HEAD | cut -f 1` &&\
pip install git+git://github.com/Mittmich/higlassupload.git@$githash &&\
echo "# pip install git+git://github.com/Mittmich/higlassupload.git@$githash" >> software_versions_git.txt
echo "# pip install git+git://github.com/mirnylab/pairlib@$githash" >> software_versions_git.txt

ENV PATH="/home/anaconda3/envs/ngs_base/bin/:${PATH}"
WORKDIR /home

CMD /bin/bash
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ This container can be found on [dockerhub](https://hub.docker.com/r/gerlichlab/s
## Version dev-1.0

Development container for [HiCognition](https://github.com/gerlichlab/HiCognition_flask) without cooltools, pairtools and ngs to allow more flexible building.
## Version 1.5

This version removes things not needed by our [scsHi-C pipeline](https://github.com/gerlichlab/scshic_pipeline) and tries to minimize container size.

## Version 1.3
This version is for our next project.
Expand Down
39 changes: 0 additions & 39 deletions flask.yml

This file was deleted.

23 changes: 2 additions & 21 deletions ngs_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ channels:
- defaults
dependencies:
# newest python
- python=3.7.6
- python=3.8.0
# user required tools:
- fastqc >= 0.11.9
- cooler >= 0.8.8
- numpy >= 1.18.5
- sortedcontainers >= 2.2.2
- matplotlib >= 3.2.2
- multiprocess >= 0.70.10
- pairtools >= 0.3.0
- pandas >= 1.0.5
- pybedtools >= 0.8.1
- pybigwig >=0.3.17
- pysam >= 0.16.0.1
- scikit-learn >= 0.23.1
- scipy >= 1.5.0
- seaborn >= 0.10.1
- statsmodels >= 0.11.1
Expand All @@ -30,32 +28,15 @@ dependencies:
- requests >= 2.24.0
- pairix >= 0.3.7
# requirements for cooltools:
# - numpy
# - cython
# - matplotlib
# - pandas
# - scipy
# - cooler
# - scikit-learn
- h5py >= 2.10.0
- numba >= 0.48.0
- dask >= 2.19.0
- click >= 7.1.2
- pytest >= 5.4.3
# packages to facility development with vscode inside the container
- pylama >= 7.7.1
- pylint >= 2.5.3
- black >= 19.10b0
# parquet support
- pyensembl >= 1.8.7
- pyarrow >= 0.17.1
- fastparquet >= 0.4.0
# jupyter support
- ipywidgets >= 7.5.1
- ipykernel >= 5.3.0
- jupyterlab >= 2.1.5
# loop caller
- chromosight >= 1.1.4
# for nextflowpipeline
- nextflow >= 20.04.1
- bwa >= 0.7.17

0 comments on commit cfb6d75

Please sign in to comment.