From 4d8cff4a51a11e600ba7e243a317a06ae0df83a8 Mon Sep 17 00:00:00 2001 From: Mia Croiset <mia.croiset@ens-lyon.fr> Date: Fri, 17 May 2024 16:08:30 +0200 Subject: [PATCH] add Dockerfile to get up to date hicstuff docker image --- bin/hicstuff_docker/Dockerfile | 39 ++++++++++++++++++++++++++++ bin/hicstuff_docker/hicstuff_repo | 1 + bin/hicstuff_docker/requirements.txt | 12 +++++++++ 3 files changed, 52 insertions(+) create mode 100644 bin/hicstuff_docker/Dockerfile create mode 120000 bin/hicstuff_docker/hicstuff_repo create mode 100644 bin/hicstuff_docker/requirements.txt diff --git a/bin/hicstuff_docker/Dockerfile b/bin/hicstuff_docker/Dockerfile new file mode 100644 index 0000000..96d0c54 --- /dev/null +++ b/bin/hicstuff_docker/Dockerfile @@ -0,0 +1,39 @@ +FROM conda/miniconda3 + +LABEL Name=hicstuff Version=3.2.3 + +RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list + +RUN apt-get update && apt-get install -y procps bash git + +RUN conda update -y -n base -c defaults conda \ +&& git clone https://github.com/koszullab/hicstuff.git \ +&& cd hicstuff \ +&& git checkout v3.2.3 \ +&& conda init \ +&& conda config --add channels r \ +&& conda config --add channels defaults \ +&& conda config --add channels conda-forge \ +&& conda config --add channels bioconda \ +&& conda create -y -n hicstuff +SHELL ["conda", "run", "-n", "hicstuff", "/bin/bash", "-c"] +RUN conda install -c conda-forge -y \ + pairtools \ + pip \ + bowtie2 \ + minimap2 \ + bwa \ + samtools \ + htslib \ + cooler \ +&& conda clean -afy \ +&& cd hicstuff \ +&& sed -i 's/pairtools//g' requirements.txt \ +&& pip install -Ur requirements.txt \ +&& pip install pysam cython \ +&& pip install . \ +#&& pip install pairtools \ +&& chmod -R +x /usr/local/lib/python3.10/ \ +&& chmod -R +x /usr/local/lib/python3.10/lib-dynload/ \ +&& echo "conda activate hicstuff" >> /root/.bashrc +ENV PATH /usr/local/envs/hicstuff/bin:/usr/local/condabin:$PATH diff --git a/bin/hicstuff_docker/hicstuff_repo b/bin/hicstuff_docker/hicstuff_repo new file mode 120000 index 0000000..83d5184 --- /dev/null +++ b/bin/hicstuff_docker/hicstuff_repo @@ -0,0 +1 @@ +../hicstuff_repo \ No newline at end of file diff --git a/bin/hicstuff_docker/requirements.txt b/bin/hicstuff_docker/requirements.txt new file mode 100644 index 0000000..65b4ed1 --- /dev/null +++ b/bin/hicstuff_docker/requirements.txt @@ -0,0 +1,12 @@ +numpy +scipy +pandas >= 1.5.0 +matplotlib >= 3.4.0 +docopt +biopython +requests +scikit-learn +pysam +pyfastx +cooler +pairtools -- GitLab