Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1478c51
add sha test and split rules
Faitero Sep 25, 2020
8e7f5c6
remove duplicate file
Faitero Sep 25, 2020
bd6b7e0
merging
Faitero Sep 25, 2020
44efa20
finish sha test and split rules
Faitero Oct 9, 2020
8f65c2d
finish sha test and split rules
Faitero Oct 13, 2020
4243d4a
Solve sigxlsites issues and add new synthetic reads
Faitero Oct 29, 2020
a0144cc
Solve sigxlsites issues and add new synthetic reads
Faitero Nov 11, 2020
b517dcd
Prepare genome poitining only to homo_sapiens
Faitero Nov 13, 2020
f028e64
Initial version that installs conda requirements for iCount
grexor Nov 16, 2020
b129147
Renamed and moved environment_iCount.yaml yo conda_iCount.yaml (moved…
grexor Nov 18, 2020
012c96d
Conda yaml dev
grexor Nov 18, 2020
383ff28
Updated several package versions to be compatible with python 3.8.6. …
grexor Nov 19, 2020
7686aaf
Fixed "git clone" of iCount snakemake branch
grexor Nov 20, 2020
888ab00
Updated docker file to install iCount with conda
grexor Nov 20, 2020
a74a568
Prepare genome individual chromosomes
Faitero Feb 4, 2021
12104ba
Prepare genome individual chromosomes
Faitero Feb 4, 2021
5972850
Prepare genome
Faitero Feb 5, 2021
8cc5853
Fix demultiplex bug
Faitero Feb 5, 2021
8021169
STAR folder mkdir when generating genome index
grexor Feb 12, 2021
fc06ad1
solve create STAR index directory
Faitero Feb 16, 2021
c06e927
Prepare genome mkdir STAR index directory
Faitero Feb 16, 2021
8572632
More on missing output directories
Faitero Feb 16, 2021
b23110b
Solving missing directories on map_reads and prepare_genome rules
Faitero Feb 16, 2021
a95907d
Prepare genome
Faitero Feb 16, 2021
729d92b
Updated snakemake to 5.32.2 version
grexor Feb 16, 2021
91b0361
Merge remote-tracking branch 'origin/snakemake' into snakemake
Faitero Feb 16, 2021
538f69c
Real iCLIP data subset
Faitero Feb 16, 2021
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
97 changes: 25 additions & 72 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,96 +1,49 @@
FROM ubuntu:16.04
FROM continuumio/anaconda3:2020.07

MAINTAINER Tomaz Curk <tomazc@gmail.com>

# suppress prompt for tzdata
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Ljubljana

# thanks to https://github.com/bschiffthaler/ngs/blob/master/base/Dockerfile
# and https://github.com/AveraSD/ngs-docker-star/blob/master/Dockerfile

RUN useradd -m -d /home/icuser icuser

# update system
RUN sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
build-essential \
gfortran \
libatlas-base-dev \
wget \
g++ \
make \
binutils \
python3 \
python3-pip \
python3-setuptools \
python-virtualenv \
python-pip \
pandoc \
git && \
apt-get build-dep -y python3-matplotlib

RUN apt-get autoclean -y && \
apt-get autoremove -y
RUN apt-get install -y vim
RUN apt-get install -y nano

SHELL ["/bin/bash", "--login", "-c"]

#################
### samtools
RUN apt-get install -y \
zlib1g-dev \
liblzma-dev \
libbz2-dev \
samtools
RUN conda update -n base -c defaults conda -y
RUN conda install -c conda-forge mamba -y

RUN conda config --add channels defaults
RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge

#################
### bedtools, need at least version 2.26, where merge command reports strand
# RUN apt-get install -y bedtools
WORKDIR /tmp/bedtools
RUN wget https://github.com/arq5x/bedtools2/releases/download/v2.27.1/bedtools-2.27.1.tar.gz
RUN tar -zxvf bedtools-2.27.1.tar.gz
WORKDIR /tmp/bedtools/bedtools2
RUN make
RUN make install
WORKDIR /tmp
RUN rm -rfv bedtools

#### iCount
#################
### RNA-star
WORKDIR /tmp/STAR
RUN wget https://github.com/alexdobin/STAR/archive/2.6.1a.tar.gz
RUN tar -xvzf 2.6.1a.tar.gz
WORKDIR /tmp/STAR/STAR-2.6.1a/source
RUN make STAR
RUN mkdir -p /home/icuser/bin && cp STAR /home/icuser/bin
WORKDIR /tmp
RUN rm -rfv STAR


#################
#### iCount
RUN useradd -m -d /home/icuser icuser
ADD . /home/icuser/iCount
RUN chown -R icuser.icuser /home/icuser

USER icuser
WORKDIR /home/icuser
RUN virtualenv -p python3 /home/icuser/.icountenv

USER root
# to speed-up building of Docker images
RUN /home/icuser/.icountenv/bin/pip install numpy pandas pysam pybedtools numpydoc matplotlib

ADD . /home/icuser/iCount_src
RUN chown -R icuser.icuser /home/icuser
RUN mkdir /home/icuser/storage

USER icuser
WORKDIR /home/icuser/iCount_src
RUN conda create -c conda-forge -c bioconda -n iCount_pipeline3 -y
RUN conda init bash
RUN echo "conda activate iCount_pipeline3" >> ~/.bashrc

RUN ../.icountenv/bin/pip install -e .[docs,test]
SHELL ["conda", "run", "-n", "iCount_pipeline3", "/bin/bash", "-c"]

USER root
RUN echo "source /home/icuser/.icountenv/bin/activate" >> /etc/bash.bashrc
USER icuser
### needs ~ 4 GB RAM, otherwise killed
RUN conda env update --file iCount/conda_iCount.yaml

RUN mkdir /home/icuser/storage
RUN pip install ./iCount

ENV PATH /home/icuser/bin:$PATH

WORKDIR /home/icuser

CMD ["/bin/bash"]
27 changes: 27 additions & 0 deletions conda_iCount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
channels:
- defaults
- bioconda
- conda-forge

dependencies:
- python = 3.8.6
- snakemake = 5.32.2
- jinja2 = 2.11.2
- networkx = 2.5
- bcftools = 1.11
- samtools = 1.11
- bwa = 0.7.17
- pysam = 0.16.0.1
- cutadapt = 3.0
- bedtools = 2.29.2
- STAR = 2.7.6a
- trim-galore = 0.6.6
- pip = 20.2.4
- pybedtools = 0.8.1
- numpy = 1.19.4
- pandas = 1.1.4
- numpydoc = 1.1.0
- sphinx = 3.3.1
- matplotlib = 3.3.3
- docutils = 0.16
- sphinx-releases = 1.6.1
Loading